public static interface IASTEnumerationSpecifier.IASTEnumerator extends IASTNode, IASTNameOwner
IASTNode.CopyStyle
Modifier and Type | Field and Description |
---|---|
static IASTEnumerationSpecifier.IASTEnumerator[] |
EMPTY_ENUMERATOR_ARRAY
Empty array (constant).
|
static ASTNodeProperty |
ENUMERATOR_NAME
ENUMERATOR_NAME describes the relationship between
IASTEnumerator and IASTName . |
static ASTNodeProperty |
ENUMERATOR_VALUE
ENUMERATOR_VALUE describes the relationship between
IASTEnumerator and IASTExpression . |
EMPTY_NODE_ARRAY
r_declaration, r_definition, r_reference, r_unclear
Modifier and Type | Method and Description |
---|---|
IASTEnumerationSpecifier.IASTEnumerator |
copy()
Returns a mutable copy of the tree rooted at this node.
|
IASTEnumerationSpecifier.IASTEnumerator |
copy(IASTNode.CopyStyle style)
Returns a mutable copy of the tree rooted at this node.
|
IASTName |
getName()
Get the enumerator's name.
|
IASTExpression |
getValue()
Returns enumerator value.
|
void |
setName(IASTName name)
Set the enumerator's name.
|
void |
setValue(IASTExpression expression)
Sets enumerator value.
|
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent
getRoleForName
static final IASTEnumerationSpecifier.IASTEnumerator[] EMPTY_ENUMERATOR_ARRAY
static final ASTNodeProperty ENUMERATOR_NAME
ENUMERATOR_NAME
describes the relationship between
IASTEnumerator
and IASTName
.static final ASTNodeProperty ENUMERATOR_VALUE
ENUMERATOR_VALUE
describes the relationship between
IASTEnumerator
and IASTExpression
.void setName(IASTName name)
name
- IASTName getName()
IASTName
void setValue(IASTExpression expression)
expression
- IASTExpression getValue()
IASTExpression
valueIASTEnumerationSpecifier.IASTEnumerator 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)
.
IASTEnumerationSpecifier.IASTEnumerator 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.Copyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.