Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.dom.ast
Interface IASTCompositeTypeSpecifier

All Superinterfaces:
IASTDeclSpecifier, IASTNameOwner, IASTNode
All Known Subinterfaces:
ICASTCompositeTypeSpecifier, ICPPASTCompositeTypeSpecifier

public interface IASTCompositeTypeSpecifier
extends IASTDeclSpecifier, IASTNameOwner

A composite type specifier represents a ocmposite structure (contains declarations).


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 nestedIASTDeclarations.
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_register, sc_static, sc_typedef, sc_unspecified
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNameOwner
r_declaration, r_definition, r_reference, r_unclear
 
Method Summary
 void addMemberDeclaration(IASTDeclaration declaration)
          Add a member declaration.
 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
getRawSignature, getStorageClass, isConst, isInline, isVolatile, setConst, setInline, setStorageClass, setVolatile
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getTranslationUnit, setParent, setPropertyInParent
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNameOwner
getRoleForName
 

Field Detail

TYPE_NAME

static final ASTNodeProperty TYPE_NAME
TYPE_NAME represents the relationship between an IASTCompositeTypeSpecifier and its IASTName.


MEMBER_DECLARATION

static final ASTNodeProperty MEMBER_DECLARATION
MEMBER_DECLARATION represents the relationship between an IASTCompositeTypeSpecifier and its nestedIASTDeclarations.


k_struct

static final int k_struct
k_struct represents 'struct' in C & C++

See Also:
Constant Field Values

k_union

static final int k_union
k_union represents 'union' in C & C++

See Also:
Constant Field Values

k_last

static final int k_last
k_last allows for subinterfaces to continue enumerating keys

See Also:
Constant Field Values
Method Detail

getKey

int getKey()
Get the type (key) of this composite specifier.

Returns:
key for this type

setKey

void setKey(int key)
Set the type (key) of this composite specifier.

Parameters:
key -

getName

IASTName getName()
Return the name for this composite type. If this is an anonymous type, this will return an empty name.

Returns:
the name of the type

setName

void setName(IASTName name)
Set the name for this composite type.

Parameters:
name -

getMembers

IASTDeclaration[] getMembers()
Returns a list of member declarations.

Returns:
List of IASTDeclaration

addMemberDeclaration

void addMemberDeclaration(IASTDeclaration declaration)
Add a member declaration.

Parameters:
declaration -

getScope

IScope getScope()
Get the scope that this interface eludes to in the logical tree.

Returns:

Eclipse CDT
Pre-release 3.0

Copyright (c) IBM Corp. and others 2004. All Rights Reserved.