public interface IASTCompositeTypeSpecifier extends IASTDeclSpecifier, IASTNameOwner, IASTDeclarationListOwner
IASTNode.CopyStyle
Modifier and Type | Field and Description |
---|---|
static int |
k_last
k_last allows for subinterfaces to continue enumerating keys. |
static int |
k_struct
k_struct represents 'struct' in C and C++. |
static int |
k_union
k_union represents 'union' in C and C++. |
static ASTNodeProperty |
MEMBER_DECLARATION
MEMBER_DECLARATION represents the relationship between an
IASTCompositeTypeSpecifier and its nestedIASTDeclaration s. |
static ASTNodeProperty |
TYPE_NAME
TYPE_NAME represents the relationship between an
IASTCompositeTypeSpecifier and its IASTName . |
ALIGNMENT_SPECIFIER, sc_auto, sc_extern, sc_mutable, sc_register, sc_static, sc_typedef, sc_unspecified
ATTRIBUTE, ATTRIBUTE_SPECIFIER
EMPTY_NODE_ARRAY
r_declaration, r_definition, r_reference, r_unclear
Modifier and Type | Method and Description |
---|---|
void |
addMemberDeclaration(IASTDeclaration declaration)
Adds a member declaration.
|
IASTCompositeTypeSpecifier |
copy()
Returns a mutable copy of the tree rooted at this node.
|
int |
getKey()
Returns the type (key) of this composite specifier.
|
IASTDeclaration[] |
getMembers()
Returns a list of member declarations.
|
IASTName |
getName()
Returns the name for this composite type.
|
IScope |
getScope()
Returns the scope that this interface eludes to in the logical tree.
|
void |
setKey(int key)
Sets the type (key) of this composite specifier.
|
void |
setName(IASTName name)
Sets the name for this composite type.
|
copy, getAlignmentSpecifiers, getStorageClass, isConst, isInline, isRestrict, isVolatile, setAlignmentSpecifiers, setConst, setInline, setRestrict, setStorageClass, setVolatile
addAttribute, addAttributeSpecifier, getAttributes, getAttributeSpecifiers
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent
getRoleForName
addDeclaration, getDeclarations
static final int k_struct
k_struct
represents 'struct' in C and C++.static final int k_union
k_union
represents 'union' in C and C++.static final int k_last
k_last
allows for subinterfaces to continue enumerating keys.static final ASTNodeProperty TYPE_NAME
TYPE_NAME
represents the relationship between an
IASTCompositeTypeSpecifier
and its IASTName
.static final ASTNodeProperty MEMBER_DECLARATION
MEMBER_DECLARATION
represents the relationship between an
IASTCompositeTypeSpecifier
and its nestedIASTDeclaration
s.int getKey()
void setKey(int key)
IASTName getName()
void setName(IASTName name)
name
- IASTDeclaration[] getMembers()
void addMemberDeclaration(IASTDeclaration declaration)
declaration
- IScope getScope()
IASTCompositeTypeSpecifier 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 IASTDeclSpecifier
copy
in interface IASTNode
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.