|
Eclipse CDT Pre-release 3.0 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Base interface for a declarator.
Field Summary | |
---|---|
static ASTNodeProperty |
DECLARATOR_NAME
DECLARATOR_NAME represents the relationship between an
IASTDeclarator and an IASTName . |
static IASTDeclarator[] |
EMPTY_DECLARATOR_ARRAY
Constant - empty declarator array |
static ASTNodeProperty |
INITIALIZER
INITIALIZER represents the relationship between an
IASTDeclarator and an IASTInitializer . |
static ASTNodeProperty |
NESTED_DECLARATOR
NESTED_DECLARATOR represents the relationship between an
IASTDeclarator and a nested IASTDeclarator . |
static ASTNodeProperty |
POINTER_OPERATOR
POINTER_OPERATOR represents the relationship between an
IASTDeclarator and an IASTPointerOperator . |
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 |
addPointerOperator(IASTPointerOperator operator)
Adds a pointer operator to the declarator. |
IASTInitializer |
getInitializer()
This is the optional initializer for this declarator. |
IASTName |
getName()
This returns the name of the declarator. |
IASTDeclarator |
getNestedDeclarator()
If the declarator is nested in parenthesis, this returns the declarator as found in those parenethesis. |
IASTPointerOperator[] |
getPointerOperators()
This is the list of pointer operators applied to the type for the declarator. |
void |
setInitializer(IASTInitializer initializer)
Set the optional initializer. |
void |
setName(IASTName name)
Set the name of he declarator. |
void |
setNestedDeclarator(IASTDeclarator nested)
|
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode |
---|
accept, contains, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getTranslationUnit, setParent, setPropertyInParent |
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNameOwner |
---|
getRoleForName |
Field Detail |
public static final IASTDeclarator[] EMPTY_DECLARATOR_ARRAY
public static final ASTNodeProperty POINTER_OPERATOR
POINTER_OPERATOR
represents the relationship between an
IASTDeclarator
and an IASTPointerOperator
.
public static final ASTNodeProperty INITIALIZER
INITIALIZER
represents the relationship between an
IASTDeclarator
and an IASTInitializer
.
public static final ASTNodeProperty NESTED_DECLARATOR
NESTED_DECLARATOR
represents the relationship between an
IASTDeclarator
and a nested IASTDeclarator
.
public static final ASTNodeProperty DECLARATOR_NAME
DECLARATOR_NAME
represents the relationship between an
IASTDeclarator
and an IASTName
.
Method Detail |
public IASTPointerOperator[] getPointerOperators()
public void addPointerOperator(IASTPointerOperator operator)
operator
- IASTPointerOperator
to be added.public IASTDeclarator getNestedDeclarator()
public void setNestedDeclarator(IASTDeclarator nested)
public IASTName getName()
public void setName(IASTName name)
name
- IASTName
public IASTInitializer getInitializer()
public void setInitializer(IASTInitializer initializer)
initializer
- IASTInitializer
|
Eclipse CDT Pre-release 3.0 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |