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
FieldsModifier and TypeFieldDescriptionstatic final ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier[]static final ASTNodePropertyDeprecated.static final ASTNodePropertyRelation between base specifier and its name specifier.static final intstatic final intstatic final intFields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNameOwner
r_declaration, r_definition, r_reference, r_unclearFields 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.intReturns the accessibility for the base.booleanReturns whether this specifies a virtual base.voidDeprecated.Use setNameSpecifier() instead.voidsetNameSpecifier(ICPPASTNameSpecifier nameSpecifier) Sets the name specifier for this base specifier.voidsetVirtual(boolean value) Sets whether this specifier is for a virtual base.voidsetVisibility(int visibility) Sets the visibility of this specifier, not allowed on frozen AST.Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNameOwner
getRoleForNameMethods 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, setPropertyInParentMethods 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_SPECIFIERinstead.- 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:IASTNodeReturns 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:IASTNodeReturns 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:
copyin interfaceIASTNode- Parameters:
style-IASTNode.CopyStylecreate a copy with or without locations. Please seeIASTNode.CopyStylefor 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_SPECIFIERinstead.