Package org.eclipse.cdt.core.dom.ast.cpp
Interface ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier
- All Superinterfaces:
IASTNameOwner
,IASTNode
,ICPPASTPackExpandable
- Enclosing interface:
- ICPPASTCompositeTypeSpecifier
public static interface ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier
extends IASTNode, IASTNameOwner, ICPPASTPackExpandable
Base specifiers are where a class expresses from whom it inherits.
- Restriction:
- This interface is not intended to be implemented by clients.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
IASTNode.CopyStyle
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier[]
static final ASTNodeProperty
Deprecated.static final ASTNodeProperty
Relation between base specifier and its name specifier.static final int
static final int
static final int
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNameOwner
r_declaration, r_definition, r_reference, r_unclear
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Returns a mutable copy of the tree rooted at this node.copy
(IASTNode.CopyStyle style) Returns a mutable copy of the tree rooted at this node.getName()
Deprecated.Use getNameSpecifier() instead.Returns the name specifier inside this base specifier.int
Returns the accessibility for the base.boolean
Returns whether this specifies a virtual base.void
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.Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNameOwner
getRoleForName
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent
Methods inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPASTPackExpandable
isPackExpansion, setIsPackExpansion
-
Field Details
-
EMPTY_BASESPECIFIER_ARRAY
-
NAME_SPECIFIER
Relation between base specifier and its name specifier.- Since:
- 5.8
-
NAME
Deprecated.UseNAME_SPECIFIER
instead.- Restriction:
- This field is not intended to be referenced by clients.
-
v_public
static final int v_public- See Also:
-
v_protected
static final int v_protected- See Also:
-
v_private
static final int v_private- See Also:
-
-
Method Details
-
isVirtual
boolean isVirtual()Returns whether this specifies a virtual base. -
getVisibility
int getVisibility()Returns the accessibility for the base. -
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
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)
. -
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 interfaceIASTNode
- Parameters:
style
-IASTNode.CopyStyle
create a copy with or without locations. Please seeIASTNode.CopyStyle
for restrictions on copies with Locations.- Since:
- 5.3
-
setName
Deprecated.Use setNameSpecifier() instead.- Restriction:
- This method is not intended to be referenced by clients.
-
setNameSpecifier
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.
-
NAME_SPECIFIER
instead.