|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectalt.jiapi.reflect.JiapiMethod
public class JiapiMethod
This class represents a Method.
Constructor Summary | |
---|---|
JiapiMethod(Method m)
Constructor for JiapiMethod. |
Method Summary | |
---|---|
LocalVariable |
addLocalVariable(java.lang.String type,
java.lang.String name)
Adds a local variable for this method. |
JiapiAnnotation[] |
getDeclaredAnnotations()
Get all the declared annotations of this method. |
JiapiClass |
getDeclaringClass()
Gets the class that declared this JiapiMethod. |
java.lang.String[] |
getExceptionNames()
Gets the names of exceptions this method can throw. |
JiapiClass[] |
getExceptionTypes()
Gets the parameter types of exceptions this method can throw. |
InstructionFactory |
getInstructionFactory()
Get the InstructionFactory. |
InstructionList |
getInstructionList()
Get an InstructionList, that represents a byte-code of this method. |
java.util.List[] |
getInvisibleParameterAnnotations()
Get all the invisible parameter annotations of this method. |
int |
getMaxLocals()
|
int |
getMaxStack()
|
int |
getModifiers()
Gets modifiers of this Method. |
java.lang.String |
getName()
Get the name of this Method. |
java.lang.String[] |
getParameterTypeNames()
Gets the names of parameter types in this method's signature. |
JiapiClass[] |
getParameterTypes()
Gets the parameter types in this method's signature. |
java.lang.String |
getReturnType()
Gets the return type of a method. |
Signature |
getSignature()
Gets the signature of this method. |
java.util.List[] |
getVisibleParameterAnnotations()
Get all the visible parameter annotations of this method. |
boolean |
isSynthetic()
Checks, whether or not this JiapiMethod is synthetic. |
java.lang.String |
toString()
Convert this JiapiMethod to String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JiapiMethod(Method m)
Method Detail |
---|
public LocalVariable addLocalVariable(java.lang.String type, java.lang.String name)
type
- a type of the local variablename
- a name of the local variable
public JiapiAnnotation[] getDeclaredAnnotations()
public JiapiClass getDeclaringClass()
public java.lang.String[] getExceptionNames()
public JiapiClass[] getExceptionTypes() throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
- is thrown, if one of the types
could not be loadedgetExceptionNames()
public InstructionFactory getInstructionFactory()
public InstructionList getInstructionList()
public java.util.List[] getInvisibleParameterAnnotations()
public int getMaxLocals()
public int getMaxStack()
public int getModifiers()
Modifier
public java.lang.String getName()
public java.lang.String[] getParameterTypeNames()
public JiapiClass[] getParameterTypes() throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
- is thrown, if one of the types
could not be loadedgetParameterTypeNames()
public java.lang.String getReturnType()
public Signature getSignature()
public java.util.List[] getVisibleParameterAnnotations()
public boolean isSynthetic()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |