public interface ICPPASTQualifiedName extends ICPPASTName, IASTNameOwner
IASTNode.CopyStyle
Modifier and Type | Field and Description |
---|---|
static ASTNodeProperty |
SEGMENT_NAME
Each ICPPASTNameSpecifier segment has property being
SEGMENT_NAME . |
EMPTY_NAME_ARRAY
EMPTY_NAME_SPECIFIER_ARRAY
EMPTY_NODE_ARRAY
r_declaration, r_definition, r_reference, r_unclear
Modifier and Type | Method and Description |
---|---|
void |
addName(IASTName name)
Adds a name segment.
|
void |
addNameSpecifier(ICPPASTNameSpecifier nameSpecifier)
Adds a segment to the end of the qualifier.
|
ICPPASTQualifiedName |
copy()
Returns a mutable copy of the tree rooted at this node.
|
ICPPASTQualifiedName |
copy(IASTNode.CopyStyle style)
Returns a mutable copy of the tree rooted at this node.
|
ICPPASTNameSpecifier[] |
getAllSegments()
Returns all segments of the name.
|
IASTName |
getLastName()
The last name is often semantically significant.
|
ICPPASTNameSpecifier[] |
getQualifier()
Returns all segments of the name but the last.
|
boolean |
isConversionOrOperator()
Returns
true if last segment is an ICPPASTConversionName or an ICPPASTOperatorName. |
boolean |
isFullyQualified()
Is this name fully qualified?
|
void |
setFullyQualified(boolean value)
Sets this name to be fully qualified or not (true/false).
|
void |
setLastName(ICPPASTName name)
Sets the last name.
|
getBinding, getCompletionContext, getImageLocation, getLinkage, getLookupKey, getPreBinding, getRoleOfName, isQualified, resolveBinding, resolvePreBinding, setBinding, toCharArray, toString
getFileLocation, getSimpleID, isDeclaration, isDefinition, isReference
resolveBinding, resolvePreBinding, toCharArray
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent
getRoleForName
static final ASTNodeProperty SEGMENT_NAME
SEGMENT_NAME
.void addName(IASTName name)
name
- IASTName
void addNameSpecifier(ICPPASTNameSpecifier nameSpecifier)
void setLastName(ICPPASTName name)
ICPPASTNameSpecifier[] getQualifier()
ICPPASTNameSpecifier[] getAllSegments()
IASTName getLastName()
getLastName
in interface IASTName
boolean isFullyQualified()
void setFullyQualified(boolean value)
value
- booleanboolean isConversionOrOperator()
true
if last segment is an ICPPASTConversionName or an ICPPASTOperatorName.ICPPASTQualifiedName 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)
.
copy
in interface IASTName
copy
in interface IASTNode
copy
in interface ICPPASTName
copy
in interface ICPPASTNameSpecifier
ICPPASTQualifiedName 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 IASTName
copy
in interface IASTNode
copy
in interface ICPPASTName
copy
in interface ICPPASTNameSpecifier
style
- IASTNode.CopyStyle
create a copy with or without locations. Please see
IASTNode.CopyStyle
for restrictions on copies with Locations.Copyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.