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 int | codeLength() Returns the length of the Code array. |
public ClassInfo | declaringClass() Get 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 numbers of the instructions in the method. |
public LocalDebugInfo[] | locals() Get the local variable debug info for 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() Get the index into the constant pool of the name of the method. |
public void | setCode(byte[] bytes) Set the byte code array of the method. |
public void | setExceptionHandlers(Catch[] handlers) Set the exception handlers in the method. |
public void | setLineNumbers(LineNumberDebugInfo[] lineNumbers) Set the line numbers of the instructions in the method. |
public void | setLocals(LocalDebugInfo[] locals) Set the local variable debug info for 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 name) Set the index into the constant pool of the name of the method. |
public void | setTypeIndex(int type) Set the index into the constant pool of the type of the method. |
public String | toString() Returns a string representation of the method. |
public int | typeIndex() Get the index into the constant pool of the type of the method. |
public void | write(DataOutputStream out) Write the method to a class file. |