Example usage for Java org.aspectj.apache.bcel.generic MethodGen fields, constructors, methods, implement or subclass
The text is from its open source code.
MethodGen(Method m, String class_name, ConstantPool cp) Instantiate from existing method. |
CodeExceptionGen | addExceptionHandler(InstructionHandle start_pc, InstructionHandle end_pc, InstructionHandle handler_pc, ObjectType catch_type) Add an exception handler, i.e., specify region where a handler is active and an instruction where the actual handling is done. |
String[] | getArgumentNames() |
String | getClassName() |
ConstantPool | getConstantPool() |
InstructionList | getInstructionList() |
LineNumberGen[] | getLineNumbers() |
int | getMaxLocals() |
int | getMaxStack() |
Method | getMethod() Get method object. |
String | getName() |
String | getSignature() |
boolean | isStatic() |
void | setMaxLocals() Compute maximum number of local variables based on the parameter count and bytecode usage of variables. |
void | setMaxStack(int m) Set maximum stack size for this method. |
void | setMaxStack() Computes max. |
void | setName(String name) |