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