Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.dom.ast.cpp
Interface ICPPASTFunctionDeclarator

All Superinterfaces:
IASTDeclarator, IASTFunctionDeclarator, IASTNameOwner, IASTNode, IASTStandardFunctionDeclarator
All Known Subinterfaces:
ICPPASTFunctionTryBlockDeclarator

public interface ICPPASTFunctionDeclarator
extends IASTStandardFunctionDeclarator

C++ adds a few things to function declarators.


Field Summary
static ASTNodeProperty CONSTRUCTOR_CHAIN_MEMBER
          CONSTRUCTOR_CHAIN_MEMBER is the role of a constructor chain initializer.
static ASTNodeProperty EXCEPTION_TYPEID
          EXCEPTION_TYPEID represents the type IDs throws in the exception specification.
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTStandardFunctionDeclarator
FUNCTION_PARAMETER
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTDeclarator
DECLARATOR_NAME, EMPTY_DECLARATOR_ARRAY, INITIALIZER, NESTED_DECLARATOR, POINTER_OPERATOR
 
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 addConstructorToChain(ICPPASTConstructorChainInitializer initializer)
          Add a constructor chain initializer to constructor chain.
 void addExceptionSpecificationTypeId(IASTTypeId typeId)
          Add an exception specification type Id.
 ICPPASTConstructorChainInitializer[] getConstructorChain()
          Get constructor chain.
 IASTTypeId[] getExceptionSpecification()
          Get the exception specification.
 ICPPFunctionScope getFunctionScope()
          Get function scope this node represents.
 boolean isConst()
          Is this a const method?
 boolean isPureVirtual()
          Is the method pure virtual?
 boolean isVolatile()
          Is this a volatile method?
 void setConst(boolean value)
          Set the method to be const or not.
 void setPureVirtual(boolean isPureVirtual)
          Set thid method to be pure virtual.
 void setVolatile(boolean value)
          Set the method to be volatile or not.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTStandardFunctionDeclarator
addParameterDeclaration, getParameters, setVarArgs, takesVarArgs
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTDeclarator
addPointerOperator, getInitializer, getName, getNestedDeclarator, getPointerOperators, setInitializer, setName, setNestedDeclarator
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getTranslationUnit, setParent, setPropertyInParent
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNameOwner
getRoleForName
 

Field Detail

EXCEPTION_TYPEID

static final ASTNodeProperty EXCEPTION_TYPEID
EXCEPTION_TYPEID represents the type IDs throws in the exception specification.


CONSTRUCTOR_CHAIN_MEMBER

static final ASTNodeProperty CONSTRUCTOR_CHAIN_MEMBER
CONSTRUCTOR_CHAIN_MEMBER is the role of a constructor chain initializer.

Method Detail

isConst

boolean isConst()
Is this a const method?

Returns:
boolean

setConst

void setConst(boolean value)
Set the method to be const or not.

Parameters:
value - boolean

isVolatile

boolean isVolatile()
Is this a volatile method?

Returns:
boolean

setVolatile

void setVolatile(boolean value)
Set the method to be volatile or not.

Parameters:
value - boolean

getExceptionSpecification

IASTTypeId[] getExceptionSpecification()
Get the exception specification.

Returns:
IASTTypeId []

addExceptionSpecificationTypeId

void addExceptionSpecificationTypeId(IASTTypeId typeId)
Add an exception specification type Id.

Parameters:
typeId - IASTTypeId

isPureVirtual

boolean isPureVirtual()
Is the method pure virtual?

Returns:
boolean

setPureVirtual

void setPureVirtual(boolean isPureVirtual)
Set thid method to be pure virtual.

Parameters:
isPureVirtual - boolean

getConstructorChain

ICPPASTConstructorChainInitializer[] getConstructorChain()
Get constructor chain.

Returns:
ICPPASTConstructorChainInitializer[]

addConstructorToChain

void addConstructorToChain(ICPPASTConstructorChainInitializer initializer)
Add a constructor chain initializer to constructor chain.

Parameters:
initializer - ICPPASTConstructorChainInitializer

getFunctionScope

ICPPFunctionScope getFunctionScope()
Get function scope this node represents.

Returns:
ICPPFunctionScope scope

Eclipse CDT
Pre-release 3.0

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