Eclipse CDT
7.0

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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
IASTNode.CopyStyle
 
Field Summary
static ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier[] EMPTY_BASESPECIFIER_ARRAY
           
static ASTNodeProperty NAME
          Relation between base specifier and its name.
static int v_private
           
static int v_protected
           
static int v_public
           
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNameOwner
r_declaration, r_definition, r_reference, r_unclear
 
Method Summary
 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()
          Returns the name of this specifier.
 int getVisibility()
          Returns the accessibility for the base.
 boolean isVirtual()
          Returns whether this specifies a virtual base.
 void setName(IASTName name)
          Sets the name for this specifier, not allowed on frozen AST.
 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.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.IASTNameOwner
getRoleForName
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPASTPackExpandable
isPackExpansion, setIsPackExpansion
 

Field Detail

EMPTY_BASESPECIFIER_ARRAY

static final ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier[] EMPTY_BASESPECIFIER_ARRAY

NAME

static final ASTNodeProperty NAME
Relation between base specifier and its name.


v_public

static final int v_public
See Also:
Constant Field Values

v_protected

static final int v_protected
See Also:
Constant Field Values

v_private

static final int v_private
See Also:
Constant Field Values
Method Detail

isVirtual

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


getVisibility

int getVisibility()
Returns the accessibility for the base.


getName

IASTName getName()
Returns the name of this specifier.


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

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

void setName(IASTName name)
Sets the name for this specifier, not allowed on frozen AST.


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.


Eclipse CDT
7.0

Copyright (c) IBM Corp. and others 2004, 2012. All Rights Reserved.