Eclipse CDT
Pre-release 3.0

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

All Superinterfaces:
IBinding
All Known Subinterfaces:
ICPPConstructor, ICPPFunction, ICPPMethod

public interface IFunction
extends IBinding

This represents a function in the program. A function is also a scope for other bindings.


Field Summary
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IBinding
EMPTY_BINDING_ARRAY
 
Method Summary
 IScope getFunctionScope()
          Get the function scope
 IParameter[] getParameters()
          This gets the parameters to the function
 IFunctionType getType()
          Get the IFunctionType for this function
 boolean isAuto()
           
 boolean isExtern()
           
 boolean isInline()
          is this function inline
 boolean isRegister()
           
 boolean isStatic()
          Does this function have the static storage-class specifier similarily for extern, auto, register
 boolean takesVarArgs()
          Whether or not this function takes variable arguments
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IBinding
getName, getNameCharArray, getScope
 

Method Detail

getParameters

IParameter[] getParameters()
                           throws DOMException
This gets the parameters to the function

Returns:
array of IParameter
Throws:
DOMException - if this is a problem binding

getFunctionScope

IScope getFunctionScope()
                        throws DOMException
Get the function scope

Returns:
Throws:
DOMException - if this is a problem binding

getType

IFunctionType getType()
                      throws DOMException
Get the IFunctionType for this function

Returns:
Throws:
DOMException - if this is a problem binding

isStatic

boolean isStatic()
                 throws DOMException
Does this function have the static storage-class specifier similarily for extern, auto, register

Returns:
Throws:
DOMException

isExtern

boolean isExtern()
                 throws DOMException
Throws:
DOMException

isAuto

boolean isAuto()
               throws DOMException
Throws:
DOMException

isRegister

boolean isRegister()
                   throws DOMException
Throws:
DOMException

isInline

boolean isInline()
                 throws DOMException
is this function inline

Returns:
Throws:
DOMException

takesVarArgs

boolean takesVarArgs()
                     throws DOMException
Whether or not this function takes variable arguments

Returns:
Throws:
DOMException

Eclipse CDT
Pre-release 3.0

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