|
Eclipse CDT Pre-release 3.0 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a function
Field Summary |
---|
Method Summary | |
---|---|
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. |
String |
getParameterInitializer(int pos)
Returns the initializer of parameters position for this method. |
String[] |
getParameterTypes()
Returns the type signatures for the parameters of this method. |
String |
getReturnType()
Returns the return value of this method. |
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, 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 |
---|
getSource, getSourceRange, getTranslationUnit |
Method Detail |
public String[] getExceptions()
For example, a source method declaring "void f(int a) throw (x1, x2);"
,
would return the array {"x1", "x2"}
.
CModelException
- if this element does not exist or if an
exception occurs while accessing its corresponding resource.Signature
public int getNumberOfParameters()
public String getParameterInitializer(int pos)
For example, a method declared as public void foo(String text, int length=9)
would return the array {"9"}
.
CModelException
- if this argument does not exist or if an
exception occurs while accessing its corresponding resource.public String[] getParameterTypes()
For example, a source method declared as void foo(string text, int length)
would return the array {"string","int"}
.
Signature
public String getReturnType()
public String getSignature() throws CModelException
CModelException
|
Eclipse CDT Pre-release 3.0 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |