public interface ICPPASTCompositeTypeSpecifier extends IASTCompositeTypeSpecifier, ICPPASTDeclSpecifier
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier
Base Specifiers are where a class expresses from whom it inherits.
|
IASTNode.CopyStyle| Modifier and Type | Field and Description |
|---|---|
static ASTNodeProperty |
BASE_SPECIFIER
BASE_SPECIFIER expresses the subclass role. |
static ASTNodeProperty |
CLASS_VIRT_SPECIFIER |
static int |
k_class
k_class C++ introduces the class concept for composite types. |
static int |
k_last
k_last allows for subinterfaces to extend the kind type. |
static ASTNodeProperty |
VISIBILITY_LABEL
VISIBILITY_LABEL is used to express the relationship for a
visibility label "declaration". |
k_struct, k_union, MEMBER_DECLARATION, TYPE_NAMEr_declaration, r_definition, r_reference, r_unclearsc_lastsc_auto, sc_extern, sc_mutable, sc_register, sc_static, sc_typedef, sc_unspecifiedATTRIBUTE, ATTRIBUTE_SPECIFIEREMPTY_NODE_ARRAY| Modifier and Type | Method and Description |
|---|---|
void |
addBaseSpecifier(ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier baseSpec)
Adds a base specifier.
|
ICPPASTCompositeTypeSpecifier |
copy()
Returns a mutable copy of the tree rooted at this node.
|
ICPPASTCompositeTypeSpecifier |
copy(IASTNode.CopyStyle style)
Returns a mutable copy of the tree rooted at this node.
|
ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier[] |
getBaseSpecifiers()
Returns the base specifiers.
|
ICPPClassScope |
getScope()
Get the scope that this interface eludes to in the logical tree.
|
ICPPASTClassVirtSpecifier |
getVirtSpecifier()
Returns the class-virt-specifier of this class, or null if it doesn't have one.
|
boolean |
isFinal()
Queries whether the type is final.
|
void |
setFinal(boolean isFinal)
Deprecated.
Use setVirtSpecifier() instead.
|
void |
setVirtSpecifier(ICPPASTClassVirtSpecifier virtSpecifier)
Set the class-virt-specifier for this class.
|
addMemberDeclaration, getKey, getMembers, getName, setKey, setNamegetRoleForNameaddDeclaration, getDeclarationsisConstexpr, isExplicit, isFriend, isThreadLocal, isVirtual, setConstexpr, setExplicit, setFriend, setThreadLocal, setVirtualgetStorageClass, isConst, isInline, isRestrict, isVolatile, setConst, setInline, setRestrict, setStorageClass, setVolatileaddAttribute, addAttributeSpecifier, getAttributes, getAttributeSpecifiersaccept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParentstatic final int k_class
k_class C++ introduces the class concept for composite types.static final int k_last
k_last allows for subinterfaces to extend the kind type.static final ASTNodeProperty VISIBILITY_LABEL
VISIBILITY_LABEL is used to express the relationship for a
visibility label "declaration".static final ASTNodeProperty BASE_SPECIFIER
BASE_SPECIFIER expresses the subclass role.static final ASTNodeProperty CLASS_VIRT_SPECIFIER
ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier[] getBaseSpecifiers()
ICPPASTBaseSpecifier[]void addBaseSpecifier(ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier baseSpec)
baseSpec - ICPPASTBaseSpecifierICPPClassScope getScope()
IASTCompositeTypeSpecifiergetScope in interface IASTCompositeTypeSpecifierICPPASTCompositeTypeSpecifier copy()
IASTNodecopy.getParent() == null copy.getPropertyInParent() == null copy.isFrozen() == falsePreprocessor 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).
copy in interface IASTCompositeTypeSpecifiercopy in interface IASTDeclSpecifiercopy in interface IASTNodecopy in interface ICPPASTDeclSpecifierICPPASTCompositeTypeSpecifier copy(IASTNode.CopyStyle style)
IASTNodecopy.getParent() == null copy.getPropertyInParent() == null copy.isFrozen() == falsePreprocessor nodes do not currently support being copied. Implicit name nodes are not copied, instead they can be regenerated if required.
copy in interface IASTDeclSpecifiercopy in interface IASTNodecopy in interface ICPPASTDeclSpecifierstyle - IASTNode.CopyStyle create a copy with or without locations. Please see
IASTNode.CopyStyle for restrictions on copies with Locations.boolean isFinal()
@Deprecated void setFinal(boolean isFinal)
ICPPASTClassVirtSpecifier getVirtSpecifier()
void setVirtSpecifier(ICPPASTClassVirtSpecifier virtSpecifier)
Copyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.