Method Summary |
|
public Object | clone() Creates a clone of this MethodInfo except that its declaring
class does not know about it. |
public byte[] | code() Get the byte code array of the method. |
public ClassInfo | declaringClass() Returns the class which declared the method. |
public Catch[] | exceptionHandlers() Get the exception handlers in the method. |
public int[] | exceptionTypes() Get the indices into the constant pool of the types of the exceptions
thrown by the method. |
public LineNumberDebugInfo[] | lineNumbers() Get the line number debug info of the instructions in the method.
The line numbers of the instructions in the method. |
public LocalDebugInfo[] | locals() Get the local variable debug information for the method.
The local variables in the method. |
public int | maxLocals() Get the maximum number of locals used in the method. |
public int | maxStack() Get the maximum height of the operand stack. |
public int | modifiers() Get the modifiers of the method. |
public int | nameIndex() Returns the index into the constant pool of the name of the method. |
public void | setCode(byte[] code) Set the byte code array of the method. |
public void | setExceptionHandlers(Catch[] exceptions) Set the exception handlers in the method. |
public void | setLineNumbers(LineNumberDebugInfo[] lineNumbers) Set the line number debug info of the instructions in the method.
Parameters: lineNumbers - The line numbers of the instructions in the method. |
public void | setLocals(LocalDebugInfo[] locals) Set the local variables in the method. |
public void | setMaxLocals(int maxLocals) Set the maximum number of locals used in the method. |
public void | setMaxStack(int maxStack) Set the maximum height of the operand stack. |
public void | setModifiers(int modifiers) Set the modifiers of the method. |
public void | setNameIndex(int index) Sets the index into the constant pool of the name of the method. |
public void | setTypeIndex(int index) Set the index into the constant pool of the type of the method. |
public int | typeIndex() Returns the index into the constant pool of the type of the method. |