Example usage for Java org.objectweb.asm.commons GeneratorAdapter fields, constructors, methods, implement or subclass
The text is from its open source code.
int | ADD Constant for the #math method. |
int | SUB Constant for the #math method. |
int | MUL Constant for the #math method. |
int | DIV Constant for the #math method. |
int | REM Constant for the #math method. |
int | NEG Constant for the #math method. |
int | SHL Constant for the #math method. |
int | SHR Constant for the #math method. |
int | USHR Constant for the #math method. |
int | AND Constant for the #math method. |
int | OR Constant for the #math method. |
int | XOR Constant for the #math method. |
int | EQ Constant for the #ifCmp method. |
int | NE Constant for the #ifCmp method. |
int | LT Constant for the #ifCmp method. |
int | GE Constant for the #ifCmp method. |
int | GT Constant for the #ifCmp method. |
int | LE Constant for the #ifCmp method. |
GeneratorAdapter(final MethodVisitor methodVisitor, final int access, final String name, final String descriptor) Constructs a new GeneratorAdapter . | |
GeneratorAdapter(final int api, final MethodVisitor methodVisitor, final int access, final String name, final String descriptor) Constructs a new GeneratorAdapter . | |
GeneratorAdapter(final int access, final Method method, final String signature, final Type[] exceptions, final ClassVisitor classVisitor) Constructs a new GeneratorAdapter . | |
GeneratorAdapter(final int access, final Method method, final MethodVisitor methodVisitor) Constructs a new GeneratorAdapter . |
void | arrayLength() Generates the instruction to compute the length of an array. |
void | arrayLoad(final Type type) Generates the instruction to load an element from an array. |
void | arrayStore(final Type type) Generates the instruction to store an element in an array. |
void | box(final Type type) Generates the instructions to box the top stack value. |
void | cast(final Type from, final Type to) Generates the instructions to cast a numerical value from one type to another. |
void | catchException(final Label start, final Label end, final Type exception) Marks the start of an exception handler. |
void | checkCast(final Type type) Generates the instruction to check that the top stack value is of the given type. |
void | dup() Generates a DUP instruction. |
void | dup2() Generates a DUP2 instruction. |
void | endMethod() Marks the end of the visited method. |
Type[] | getArgumentTypes() |
void | getField(final Type owner, final String name, final Type type) Generates the instruction to push the value of a non static field on the stack. |
Type | getReturnType() |
void | getStatic(final Type owner, final String name, final Type type) Generates the instruction to push the value of a static field on the stack. |
void | goTo(final Label label) Generates the instruction to jump to the given label. |
void | ifCmp(final Type type, final int mode, final Label label) Generates the instructions to jump to a label based on the comparison of the top two stack values. |
void | ifICmp(final int mode, final Label label) Generates the instructions to jump to a label based on the comparison of the top two integer stack values. |
void | ifNonNull(final Label label) Generates the instruction to jump to the given label if the top stack value is not null. |
void | ifNull(final Label label) Generates the instruction to jump to the given label if the top stack value is null. |
void | ifZCmp(final int mode, final Label label) Generates the instructions to jump to a label based on the comparison of the top integer stack value with zero. |
void | iinc(final int local, final int amount) Generates the instruction to increment the given local variable. |
void | invokeConstructor(final Type type, final Method method) Generates the instruction to invoke a constructor. |
void | invokeDynamic(final String name, final String descriptor, final Handle bootstrapMethodHandle, final Object... bootstrapMethodArguments) Generates an invokedynamic instruction. |
void | invokeInterface(final Type owner, final Method method) Generates the instruction to invoke an interface method. |
void | invokeStatic(final Type owner, final Method method) Generates the instruction to invoke a static method. |
void | invokeVirtual(final Type owner, final Method method) Generates the instruction to invoke a normal method. |
void | loadArg(final int arg) Generates the instruction to load the given method argument on the stack. |
void | loadArgArray() Generates the instructions to load all the method arguments on the stack, as a single object array. |
void | loadArgs() Generates the instructions to load all the method arguments on the stack. |
void | loadArgs(final int arg, final int count) Generates the instructions to load the given method arguments on the stack. |
void | loadLocal(final int local) Generates the instruction to load the given local variable on the stack. |
void | loadLocal(final int local, final Type type) Generates the instruction to load the given local variable on the stack. |
void | loadThis() Generates the instruction to load 'this' on the stack. |
void | mark(final Label label) Marks the current code position with the given label. |
Label | mark() Marks the current code position with a new label. |
void | math(final int op, final Type type) Generates the instruction to do the specified mathematical or logical operation. |
void | newArray(final Type type) Generates the instruction to create a new array. |
void | newInstance(final Type type) Generates the instruction to create a new object. |
Label | newLabel() Constructs a new Label . |
void | pop() Generates a POP instruction. |
void | pop2() Generates a POP2 instruction. |
void | push(final boolean value) Generates the instruction to push the given value on the stack. |
void | push(final int value) Generates the instruction to push the given value on the stack. |
void | push(final long value) Generates the instruction to push the given value on the stack. |
void | push(final float value) Generates the instruction to push the given value on the stack. |
void | push(final double value) Generates the instruction to push the given value on the stack. |
void | push(final String value) Generates the instruction to push the given value on the stack. |
void | push(final Type value) Generates the instruction to push the given value on the stack. |
void | push(final Handle handle) Generates the instruction to push a handle on the stack. |
void | push(final ConstantDynamic constantDynamic) Generates the instruction to push a constant dynamic on the stack. |
void | putField(final Type owner, final String name, final Type type) Generates the instruction to store the top stack value in a non static field. |
void | putStatic(final Type owner, final String name, final Type type) Generates the instruction to store the top stack value in a static field. |
void | returnValue() Generates the instruction to return the top stack value to the caller. |
void | storeLocal(final int local) Generates the instruction to store the top stack value in the given local variable. |
void | storeLocal(final int local, final Type type) Generates the instruction to store the top stack value in the given local variable. |
void | swap() Generates a SWAP instruction. |
void | swap(final Type prev, final Type type) Generates the instructions to swap the top two stack values. |
void | throwException(final Type type, final String message) Generates the instructions to create and throw an exception. |
void | throwException() Generates the instruction to throw an exception. |
void | unbox(final Type type) Generates the instructions to unbox the top stack value. |
void | valueOf(final Type type) Generates the instructions to box the top stack value using Java 5's valueOf() method. |