Interface ICPPASTEnumerationSpecifier

    • Method Detail

      • copy

        ICPPASTEnumerationSpecifier 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
      • 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.
      • 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.
      • 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.