|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICPPASTFunctionDeclarator
C++ adds a few things to function declarators.
Field Summary | |
---|---|
static ASTNodeProperty |
CONSTRUCTOR_CHAIN_MEMBER
Deprecated. |
static ASTNodeProperty |
EXCEPTION_TYPEID
EXCEPTION_TYPEID represents the type IDs throws in the
exception specification. |
static IASTTypeId[] |
NO_EXCEPTION_SPECIFICATION
Used as return value for getExceptionSpecification() . |
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)
Deprecated. |
void |
addExceptionSpecificationTypeId(IASTTypeId typeId)
Add an exception specification type Id. |
ICPPASTFunctionDeclarator |
copy()
Returns a mutable copy of the tree rooted at this node. |
ICPPASTConstructorChainInitializer[] |
getConstructorChain()
Deprecated. use ICPPASTFunctionDefinition.getMemberInitializers() , instead. |
IASTTypeId[] |
getExceptionSpecification()
Returns an array of type-ids representing 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 |
setEmptyExceptionSpecification()
Configures the declarator with an empty exception specification (as opposed to having none). |
void |
setPureVirtual(boolean isPureVirtual)
Set this 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, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent |
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNameOwner |
---|
getRoleForName |
Field Detail |
---|
static final IASTTypeId[] NO_EXCEPTION_SPECIFICATION
getExceptionSpecification()
.
static final ASTNodeProperty EXCEPTION_TYPEID
EXCEPTION_TYPEID
represents the type IDs throws in the
exception specification.
@Deprecated static final ASTNodeProperty CONSTRUCTOR_CHAIN_MEMBER
Method Detail |
---|
boolean isConst()
void setConst(boolean value)
boolean isVolatile()
void setVolatile(boolean value)
boolean isPureVirtual()
void setPureVirtual(boolean isPureVirtual)
IASTTypeId[] getExceptionSpecification()
NO_EXCEPTION_SPECIFICATION
indicates that no exceptions are specified, whereas
IASTTypeId.EMPTY_TYPEID_ARRAY
is used for an empty exception specification.
void addExceptionSpecificationTypeId(IASTTypeId typeId)
void setEmptyExceptionSpecification()
ICPPFunctionScope getFunctionScope()
null
, if this declarator does not
declare a function-prototype or function-definition.
getFunctionScope
in interface IASTStandardFunctionDeclarator
@Deprecated ICPPASTConstructorChainInitializer[] getConstructorChain()
ICPPASTFunctionDefinition.getMemberInitializers()
, instead.
@Deprecated void addConstructorToChain(ICPPASTConstructorChainInitializer initializer)
ICPPASTFunctionDeclarator 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.
copy
in interface IASTDeclarator
copy
in interface IASTFunctionDeclarator
copy
in interface IASTNode
copy
in interface IASTStandardFunctionDeclarator
|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |