|
Eclipse CDT 7.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFunctionDeclaration
Represents a function
Field Summary |
---|
Method Summary | |
---|---|
java.lang.String[] |
getExceptions()
Returns the type signatures of the exceptions this method throws, in the order declared in the source. |
int |
getNumberOfParameters()
Returns the number of parameters of this method. |
java.lang.String |
getParameterInitializer(int pos)
Returns the initializer of parameters position for this method. |
java.lang.String[] |
getParameterTypes()
Returns the type signatures for the parameters of this method. |
java.lang.String |
getReturnType()
Returns the return value of this method. |
java.lang.String |
getSignature()
Returns the signature of the method. |
Methods inherited from interface org.eclipse.cdt.core.model.IDeclaration |
---|
isConst, isStatic, isVolatile |
Methods inherited from interface org.eclipse.cdt.core.model.ICElement |
---|
accept, exists, getAncestor, getCModel, getCProject, getElementName, getElementType, getHandleIdentifier, getLocationURI, getParent, getPath, getResource, getUnderlyingResource, isReadOnly, isStructureKnown |
Methods inherited from interface org.eclipse.cdt.core.model.ISourceManipulation |
---|
copy, delete, move, rename |
Methods inherited from interface org.eclipse.cdt.core.model.ISourceReference |
---|
getIndex, getSource, getSourceRange, getTranslationUnit, isActive |
Method Detail |
---|
java.lang.String[] getExceptions()
For example, a source method declaring "void f(int a) throw (x1, x2);"
,
would return the array {"x1", "x2"}
.
int getNumberOfParameters()
java.lang.String getParameterInitializer(int pos)
For example, a method declared as public void foo(String text, int length=9)
would return the array {"9"}
.
java.lang.String[] getParameterTypes()
For example, a source method declared as void foo(string text, int length)
would return the array {"string","int"}
.
java.lang.String getReturnType()
java.lang.String getSignature() throws CModelException
CModelException
|
Eclipse CDT 7.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |