|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A method binding represents a method or constructor of a class or interface.
This interface is not intended to be implemented by clients.
ITypeBinding.getDeclaredMethods()
Field Summary |
Fields inherited from interface org.eclipse.jdt.core.dom.IBinding |
METHOD, PACKAGE, TYPE, VARIABLE |
Method Summary | |
ITypeBinding |
getDeclaringClass()
Returns the type binding representing the class or interface that declares this method or constructor. |
ITypeBinding[] |
getExceptionTypes()
Returns a list of type bindings representing the types of the exceptions thrown by this method or constructor. |
String |
getName()
Returns the name of the method declared in this binding. |
ITypeBinding[] |
getParameterTypes()
Returns a list of type bindings representing the formal parameter types, in declaration order, of this method or constructor. |
ITypeBinding |
getReturnType()
Returns the binding for the return type of this method. |
boolean |
isConstructor()
Returns whether this binding is for a constructor or a method. |
Methods inherited from interface org.eclipse.jdt.core.dom.IBinding |
equals, getKey, getKind, getModifiers, isDeprecated, isSynthetic, toString |
Method Detail |
public boolean isConstructor()
true
if this is the binding for a constructor,
and false
if this is the binding for a methodpublic String getName()
getName
in interface IBinding
public ITypeBinding getDeclaringClass()
public ITypeBinding[] getParameterTypes()
Note: The result does not include synthetic parameters introduced by inner class emulation.
public ITypeBinding getReturnType()
void
return type for constructors.
void
return type for constructorspublic ITypeBinding[] getExceptionTypes()
|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |