Eclipse CDT
Pre-release 3.0

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

All Known Subinterfaces:
IASTArrayDeclarator, IASTCompositeTypeSpecifier, IASTDeclarator, IASTElaboratedTypeSpecifier, IASTEnumerationSpecifier, IASTEnumerationSpecifier.IASTEnumerator, IASTFieldDeclarator, IASTFieldReference, IASTFunctionDeclarator, IASTGotoStatement, IASTIdExpression, IASTLabelStatement, IASTNamedTypeSpecifier, IASTPreprocessorFunctionStyleMacroDefinition, IASTPreprocessorMacroDefinition, IASTPreprocessorObjectStyleMacroDefinition, IASTStandardFunctionDeclarator, ICASTCompositeTypeSpecifier, ICASTElaboratedTypeSpecifier, ICASTEnumerationSpecifier, ICASTKnRFunctionDeclarator, ICASTTypedefNameSpecifier, ICPPASTCompositeTypeSpecifier, ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier, ICPPASTConstructorChainInitializer, ICPPASTElaboratedTypeSpecifier, ICPPASTFieldReference, ICPPASTFunctionDeclarator, ICPPASTFunctionTryBlockDeclarator, ICPPASTNamedTypeSpecifier, ICPPASTNamespaceAlias, ICPPASTNamespaceDefinition, ICPPASTPointerToMember, ICPPASTQualifiedName, ICPPASTSimpleTypeTemplateParameter, ICPPASTTemplatedTypeTemplateParameter, ICPPASTTemplateId, ICPPASTTypenameExpression, ICPPASTUsingDeclaration, ICPPASTUsingDirective, IGPPASTPointerToMember

public interface IASTNameOwner

This interface repesents a mechanism for a name to discover more information about it's parent. All interfaces that claim ownership/residence of a name should extend this interface.


Field Summary
static int r_declaration
          Role of name in this context is a declaration.
static int r_definition
          Role of name in this construct is a definition.
static int r_reference
          Role of name in this construct is a reference.
static int r_unclear
          Role is unclear.
 
Method Summary
 int getRoleForName(IASTName n)
          Get the role for the name.
 

Field Detail

r_declaration

static final int r_declaration
Role of name in this context is a declaration.

See Also:
Constant Field Values

r_reference

static final int r_reference
Role of name in this construct is a reference.

See Also:
Constant Field Values

r_definition

static final int r_definition
Role of name in this construct is a definition.

See Also:
Constant Field Values

r_unclear

static final int r_unclear
Role is unclear.

See Also:
Constant Field Values
Method Detail

getRoleForName

int getRoleForName(IASTName n)
Get the role for the name.

Parameters:
name - IASTName
Returns:
r_declaration, r_reference or r_unclear.

Eclipse CDT
Pre-release 3.0

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