org.eclipse.cdt.core.dom.ast.cpp
Interface ICPPASTEnumerationSpecifier
- All Superinterfaces:
- IASTDeclSpecifier, IASTEnumerationSpecifier, IASTNameOwner, IASTNode, ICPPASTDeclSpecifier
public interface ICPPASTEnumerationSpecifier
- extends IASTEnumerationSpecifier, ICPPASTDeclSpecifier
enum struct : unsigned int {...}
- Since:
- 5.2
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode |
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent |
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode |
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent |
BASE_TYPE
static final ASTNodeProperty BASE_TYPE
copy
ICPPASTEnumerationSpecifier 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 interface IASTDeclSpecifier
- Specified by:
copy
in interface IASTEnumerationSpecifier
- Specified by:
copy
in interface IASTNode
- Specified by:
copy
in interface ICPPASTDeclSpecifier
setIsScoped
void setIsScoped(boolean isScoped)
- Not allowed on frozen ast.
isScoped
boolean isScoped()
- An enum is scoped if it uses the enumeration head
enum class
or enum struct
setIsOpaque
void setIsOpaque(boolean isOpaque)
- Not allowed on frozen ast.
isOpaque
boolean isOpaque()
- An opaque specifier does not have a body.
setBaseType
void setBaseType(ICPPASTDeclSpecifier baseType)
- Not allowed on frozen ast.
getBaseType
ICPPASTDeclSpecifier getBaseType()
- Returns the base type for this enum or
null
if it was not specified.
getScope
ICPPScope getScope()
- Returns the scope containing the enumerators of this enumeration, or
null
if the specifier
is opaque.
Copyright (c) IBM Corp. and others 2004, 2010. All Rights Reserved.