|
Eclipse CDT 7.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IASTCompositeTypeSpecifier
A composite type specifier represents a composite structure (contains declarations).
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode |
---|
IASTNode.CopyStyle |
Field Summary | |
---|---|
static int |
k_last
k_last allows for subinterfaces to continue enumerating
keys |
static int |
k_struct
k_struct represents 'struct' in C & C++ |
static int |
k_union
k_union represents 'union' in C & 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 . |
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTDeclSpecifier |
---|
sc_auto, sc_extern, sc_last, sc_mutable, sc_register, sc_static, sc_typedef, sc_unspecified |
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNameOwner |
---|
r_declaration, r_definition, r_reference, r_unclear |
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode |
---|
EMPTY_NODE_ARRAY |
Method Summary | |
---|---|
void |
addMemberDeclaration(IASTDeclaration declaration)
Add a member declaration. |
IASTCompositeTypeSpecifier |
copy()
Returns a mutable copy of the tree rooted at this node. |
int |
getKey()
Get the type (key) of this composite specifier. |
IASTDeclaration[] |
getMembers()
Returns a list of member declarations. |
IASTName |
getName()
Return the name for this composite type. |
IScope |
getScope()
Get the scope that this interface eludes to in the logical tree. |
void |
setKey(int key)
Set the type (key) of this composite specifier. |
void |
setName(IASTName name)
Set the name for this composite type. |
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTDeclSpecifier |
---|
copy, getStorageClass, isConst, isInline, isRestrict, isVolatile, setConst, setInline, setRestrict, setStorageClass, setVolatile |
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNameOwner |
---|
getRoleForName |
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTDeclarationListOwner |
---|
addDeclaration, getDeclarations |
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 |
Field Detail |
---|
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.
static final int k_struct
k_struct
represents 'struct' in C & C++
static final int k_union
k_union
represents 'union' in C & C++
static final int k_last
k_last
allows for subinterfaces to continue enumerating
keys
Method Detail |
---|
int getKey()
void setKey(int key)
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() == 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
copy
in interface IASTDeclSpecifier
copy
in interface IASTNode
|
Eclipse CDT 7.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |