public static interface ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier extends IASTNode, IASTNameOwner, ICPPASTPackExpandable
IASTNode.CopyStyle
Modifier and Type | Field and Description |
---|---|
static ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier[] |
EMPTY_BASESPECIFIER_ARRAY |
static ASTNodeProperty |
NAME
Deprecated.
Use
NAME_SPECIFIER instead. |
static ASTNodeProperty |
NAME_SPECIFIER
Relation between base specifier and its name specifier.
|
static int |
v_private |
static int |
v_protected |
static int |
v_public |
EMPTY_NODE_ARRAY
r_declaration, r_definition, r_reference, r_unclear
Modifier and Type | Method and Description |
---|---|
ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier |
copy()
Returns a mutable copy of the tree rooted at this node.
|
ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier |
copy(IASTNode.CopyStyle style)
Returns a mutable copy of the tree rooted at this node.
|
IASTName |
getName()
Deprecated.
Use getNameSpecifier() instead.
|
ICPPASTNameSpecifier |
getNameSpecifier()
Returns the name specifier inside this base specifier.
|
int |
getVisibility()
Returns the accessibility for the base.
|
boolean |
isVirtual()
Returns whether this specifies a virtual base.
|
void |
setName(IASTName name)
Deprecated.
Use setNameSpecifier() instead.
|
void |
setNameSpecifier(ICPPASTNameSpecifier nameSpecifier)
Sets the name specifier for this base specifier.
|
void |
setVirtual(boolean value)
Sets whether this specifier is for a virtual base.
|
void |
setVisibility(int visibility)
Sets the visibility of this specifier, not allowed on frozen AST.
|
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent
getRoleForName
isPackExpansion, setIsPackExpansion
static final ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier[] EMPTY_BASESPECIFIER_ARRAY
static final ASTNodeProperty NAME_SPECIFIER
@Deprecated static final ASTNodeProperty NAME
NAME_SPECIFIER
instead.static final int v_public
static final int v_protected
static final int v_private
boolean isVirtual()
int getVisibility()
@Deprecated IASTName getName()
ICPPASTNameSpecifier getNameSpecifier()
ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier copy()
IASTNode
copy.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)
.
ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier copy(IASTNode.CopyStyle style)
IASTNode
copy.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 IASTNode
style
- IASTNode.CopyStyle
create a copy with or without locations. Please see
IASTNode.CopyStyle
for restrictions on copies with Locations.@Deprecated void setName(IASTName name)
void setNameSpecifier(ICPPASTNameSpecifier nameSpecifier)
void setVirtual(boolean value)
void setVisibility(int visibility)
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.