Interface ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier

    • Method Detail

      • isVirtual

        boolean isVirtual()
        Returns whether this specifies a virtual base.
      • getVisibility

        int getVisibility()
        Returns the accessibility for the base.
      • getName

        @Deprecated
        IASTName getName()
        Deprecated.
        Use getNameSpecifier() instead.
        Restriction:
        This method is not intended to be referenced by clients.
      • getNameSpecifier

        ICPPASTNameSpecifier getNameSpecifier()
        Returns the name specifier inside this base specifier.
        Since:
        5.8
      • copy

        ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier 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 IASTNode
        Since:
        5.1
      • copy

        ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier copy​(IASTNode.CopyStyle style)
        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 IASTNode
        Parameters:
        style - IASTNode.CopyStyle create a copy with or without locations. Please see IASTNode.CopyStyle for restrictions on copies with Locations.
        Since:
        5.3
      • setName

        @Deprecated
        void setName​(IASTName name)
        Deprecated.
        Use setNameSpecifier() instead.
        Restriction:
        This method is not intended to be referenced by clients.
      • setNameSpecifier

        void setNameSpecifier​(ICPPASTNameSpecifier nameSpecifier)
        Sets the name specifier for this base specifier. Not allowed on frozen AST.
        Since:
        5.8
      • setVirtual

        void setVirtual​(boolean value)
        Sets whether this specifier is for a virtual base. Not allowed on frozen AST.
      • setVisibility

        void setVisibility​(int visibility)
        Sets the visibility of this specifier, not allowed on frozen AST.