|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--koala.dynamicjava.classinfo.TreeMethodInfo
The instances of this class provides informations about class methods not yet compiled to JVM bytecode.
Constructor Summary | |
TreeMethodInfo(MethodDeclaration f,
ClassFinder cf,
ClassInfo dc)
Creates a new method info |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one |
ClassInfo[] |
getExceptionTypes()
Returns an array of Class infos that represent the types of the exceptions declared to be thrown by the underlying method |
MethodDeclaration |
getMethodDeclaration()
Returns the method declaration |
int |
getModifiers()
Returns the modifiers for the method represented by this object |
java.lang.String |
getName()
Returns the name of the underlying method |
ClassInfo[] |
getParameterTypes()
Returns an array of class infos that represent the parameter types, in declaration order, of the method represented by this object |
ClassInfo |
getReturnType()
Returns a Class object that represents the return type of the method represented by this object |
protected ClassInfo |
lookupClass(java.lang.String s,
ClassInfo c)
Looks for a class from its name |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TreeMethodInfo(MethodDeclaration f, ClassFinder cf, ClassInfo dc)
f
- the method treecf
- the class finderdc
- the declaring classMethod Detail |
public MethodDeclaration getMethodDeclaration()
public int getModifiers()
getModifiers
in interface MethodInfo
public ClassInfo getReturnType()
getReturnType
in interface MethodInfo
public java.lang.String getName()
getName
in interface MethodInfo
public ClassInfo[] getParameterTypes()
getParameterTypes
in interface MethodInfo
public ClassInfo[] getExceptionTypes()
getExceptionTypes
in interface MethodInfo
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
protected ClassInfo lookupClass(java.lang.String s, ClassInfo c)
s
- the name of the class to findc
- the contextNoClassDefFoundError
- if the class cannot be loaded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |