Interface ICPPASTEnumerationSpecifier

All Superinterfaces:
IASTAttributeOwner, IASTDeclSpecifier, IASTEnumerationSpecifier, IASTNameOwner, IASTNode, ICPPASTDeclSpecifier

public interface ICPPASTEnumerationSpecifier extends IASTEnumerationSpecifier, ICPPASTDeclSpecifier
enum struct : unsigned int {...}
Since:
5.2
Restriction:
This interface is not intended to be implemented by clients.
Restriction:
This interface is not intended to be extended by clients.
  • Field Details

  • Method Details

    • copy

      Description copied from interface: IASTNode
      Returns a mutable copy of the tree rooted at this node. The following postconditions hold:
       copy.getParent() == null
       copy.getPropertyInParent() == null
       copy.isFrozen() == false
       
      Preprocessor nodes do not currently support being copied. Implicit name nodes are not copied, instead they can be regenerated if required.

      Calling this method is equivalent to copy(CopyStyle.withoutLocations).

      Specified by:
      copy in interface IASTDeclSpecifier
      Specified by:
      copy in interface IASTEnumerationSpecifier
      Specified by:
      copy in interface IASTNode
      Specified by:
      copy in interface ICPPASTDeclSpecifier
    • copy

      Description copied from interface: IASTNode
      Returns a mutable copy of the tree rooted at this node. The following postconditions hold:
       copy.getParent() == null
       copy.getPropertyInParent() == null
       copy.isFrozen() == false
       
      Preprocessor nodes do not currently support being copied. Implicit name nodes are not copied, instead they can be regenerated if required.
      Specified by:
      copy in interface IASTDeclSpecifier
      Specified by:
      copy in interface IASTEnumerationSpecifier
      Specified by:
      copy in interface IASTNode
      Specified by:
      copy in interface ICPPASTDeclSpecifier
      Parameters:
      style - IASTNode.CopyStyle create a copy with or without locations. Please see IASTNode.CopyStyle for restrictions on copies with Locations.
      Since:
      5.3
    • setIsScoped

      @Deprecated void setIsScoped(boolean isScoped)
      Deprecated.
      Use setScopeToken instead If isScoped == true is passed, the ScopeToken.CLASS scope token is assumed.
      Not allowed on frozen AST.
    • setScopeStyle

      void setScopeStyle(ICPPASTEnumerationSpecifier.ScopeStyle scopeStyle)
      Not allowed on frozen AST.
      Since:
      6.6
    • getScopeStyle

      Since:
      6.6
    • isScoped

      boolean isScoped()
      An enum is scoped if it uses the enumeration head enum class or enum struct.
    • setIsOpaque

      void setIsOpaque(boolean isOpaque)
      Not allowed on frozen AST.
    • isOpaque

      boolean isOpaque()
      An opaque specifier does not have a body.
    • setBaseType

      void setBaseType(ICPPASTDeclSpecifier baseType)
      Not allowed on frozen ast.
    • getBaseType

      ICPPASTDeclSpecifier getBaseType()
      Returns the base type for this enum or null if it was not specified.
    • getScope

      ICPPScope getScope()
      Returns the scope containing the enumerators of this enumeration, or null if the specifier is opaque.