public class JiapiMethod
extends java.lang.Object
Constructor and Description |
---|
JiapiMethod(Method m)
Constructor for JiapiMethod.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public JiapiMethod(Method m)
public LocalVariable addLocalVariable(java.lang.String type, java.lang.String name)
type
- a type of the local variablename
- a name of the local variablepublic 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
Copyright © 2001. Documenation generated October 18 2013.