|
Eclipse JDT Release 3.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. |
ITypeBinding[] |
getTypeParameters()
Returns the type parameters of this method or constructor binding. |
boolean |
isConstructor()
Returns whether this binding is for a constructor or a method. |
boolean |
isDefaultConstructor()
Returns whether this binding is known to be a compiler-generated default constructor. |
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 boolean isDefaultConstructor()
This method returns false
for:
true
if this is known to be the binding for a
compiler-generated default constructor, and false
otherwisepublic 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()
public ITypeBinding[] getTypeParameters()
Note: Support for new language features proposed for the upcoming 1.5 release of J2SE is tentative and subject to change.
ITypeBinding.isTypeVariable()
|
Eclipse JDT Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |