Constants
| Modifier and Type | Field and Description |
|---|---|
| protected ClassGen | |
| protected ConstantPool | |
| private static final char[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Instruction | |
| public static Instruction | |
| public static Instruction | |
| public static Instruction | |
| public static InstructionBranch | createBranchInstruction(short opcode, InstructionHandle target)
Create branch instruction by given opcode, except LOOKUPSWITCH and TABLESWITCH. |
| public Instruction | createCast(Type src_type, Type dest_type)
Create conversion operation for two stack operands, this may be an I2C, instruction, e.g., if the operands are basic types and CHECKCAST if they are reference types. |
| public Instruction | |
| public Instruction | createConstant(Object
must be of type Number, Boolean, Character or String value)Uses PUSH to push a constant value onto the stack. |
| public static Instruction | |
| public static Instruction | |
| public static Instruction | |
| public FieldInstruction | createFieldAccess(String
name of the accessed class class_name, String name of the referenced field name, Type type of field type, short how to access, i.e., GETFIELD, PUTFIELD, GETSTATIC, PUTSTATIC kind)Create a field instruction. |
| public FieldInstruction | |
| public FieldInstruction | |
| public Instruction | |
| public InvokeInstruction | |
| public InvokeInstruction | createInvoke(String
name of the called class class_name, String name of the called method name, Type return type of method ret_type, Type[] argument types of method arg_types, short how to invoke, i.e., INVOKEINTERFACE, INVOKESTATIC, INVOKEVIRTUAL, or INVOKESPECIAL kind, boolean for an invokestatic on an interface allows us to tell this method the target is an interface isInterface)Create an invoke instruction. |
| public InvokeInstruction | |
| public static InstructionLV | |
| public Instruction | |
| public Instruction | |
| public Instruction | Returns: an instruction that creates the corresponding array at runtime, i.e. is an AllocationInstructionCreate new array of given size and type. |
| public static Instruction | |
| public static Instruction | |
| public FieldInstruction | |
| public FieldInstruction | |
| public static Instruction | |
| public static InstructionLV | |
| public static Instruction | |
| public ClassGen | |
| public ConstantPool | |
| public static Instruction | PUSH(ConstantPool cp, int value)
Returns the right instruction for putting whatever you want onto the stack |
| public static Instruction | |
| public static Instruction | |
| public static Instruction | |
| public static Instruction | |
| public static Instruction | |
| public static Instruction | |
| public static Instruction | |
| public static Instruction | |
| public static Instruction | |
| public InstructionList | PUSHCLASS(ConstantPool cp, String className)
Return a list that will load the Class object - on 1.5 or later use the class variant of ldc, whilst on earlier JVMs use the regular Class.forName. |
| public void | |
| public void |
| cg | back to summary |
|---|---|
| protected ClassGen cg | |
| cp | back to summary |
|---|---|
| protected ConstantPool cp | |
| shortNames | back to summary |
|---|---|
| private static final char[] shortNames | |
| InstructionFactory | back to summary |
|---|---|
| public InstructionFactory(ClassGen cg, ConstantPool cp) | |
| InstructionFactory | back to summary |
|---|---|
| public InstructionFactory(ClassGen cg) | |
| InstructionFactory | back to summary |
|---|---|
| public InstructionFactory(ConstantPool cp) | |
| createALOAD | back to summary |
|---|---|
| public static Instruction createALOAD(int n) | |
| createArrayLoad | back to summary |
|---|---|
public static Instruction createArrayLoad(Type type)
| |
| createArrayStore | back to summary |
|---|---|
public static Instruction createArrayStore(Type type)
| |
| createASTORE | back to summary |
|---|---|
| public static Instruction createASTORE(int n) | |
| createBranchInstruction | back to summary |
|---|---|
| public static InstructionBranch createBranchInstruction(short opcode, InstructionHandle target) Create branch instruction by given opcode, except LOOKUPSWITCH and TABLESWITCH. For those you should use the SWITCH compound instruction. | |
| createCast | back to summary |
|---|---|
| public Instruction createCast(Type src_type, Type dest_type) Create conversion operation for two stack operands, this may be an I2C, instruction, e.g., if the operands are basic types and CHECKCAST if they are reference types. | |
| createCheckCast | back to summary |
|---|---|
| public Instruction createCheckCast(ReferenceType t) | |
| createConstant | back to summary |
|---|---|
| public Instruction createConstant(Object value) Uses PUSH to push a constant value onto the stack.
| |
| createDup | back to summary |
|---|---|
public static Instruction createDup(int size)
| |
| createDup_1 | back to summary |
|---|---|
public static Instruction createDup_1(int size)
| |
| createDup_2 | back to summary |
|---|---|
public static Instruction createDup_2(int size)
| |
| createFieldAccess | back to summary |
|---|---|
| public FieldInstruction createFieldAccess(String class_name, String name, Type type, short kind) Create a field instruction. | |
| createGetField | back to summary |
|---|---|
| public FieldInstruction createGetField(String class_name, String name, Type t) | |
| createGetStatic | back to summary |
|---|---|
| public FieldInstruction createGetStatic(String class_name, String name, Type t) | |
| createInstanceOf | back to summary |
|---|---|
| public Instruction createInstanceOf(ReferenceType t) | |
| createInvoke | back to summary |
|---|---|
| public InvokeInstruction createInvoke(String class_name, String name, Type ret_type, Type[] arg_types, short kind) | |
| createInvoke | back to summary |
|---|---|
| public InvokeInstruction createInvoke(String class_name, String name, Type ret_type, Type[] arg_types, short kind, boolean isInterface) Create an invoke instruction.
| |
| createInvoke | back to summary |
|---|---|
| public InvokeInstruction createInvoke(String class_name, String name, String signature, short kind) | |
| createLoad | back to summary |
|---|---|
public static InstructionLV createLoad(Type type, int index)
| |
| createNew | back to summary |
|---|---|
| public Instruction createNew(ObjectType t) | |
| createNew | back to summary |
|---|---|
| public Instruction createNew(String s) | |
| createNewArray | back to summary |
|---|---|
| public Instruction createNewArray(Type t, short dim) Create new array of given size and type.
| |
| createNull | back to summary |
|---|---|
| public static Instruction createNull(Type type) Create "null" value for reference types, 0 for basic types like int | |
| createPop | back to summary |
|---|---|
public static Instruction createPop(int size)
| |
| createPutField | back to summary |
|---|---|
| public FieldInstruction createPutField(String class_name, String name, Type t) | |
| createPutStatic | back to summary |
|---|---|
| public FieldInstruction createPutStatic(String class_name, String name, Type t) | |
| createReturn | back to summary |
|---|---|
| public static Instruction createReturn(Type type) Create typed return | |
| createStore | back to summary |
|---|---|
public static InstructionLV createStore(Type type, int index)
| |
| createThis | back to summary |
|---|---|
| public static Instruction createThis() Create reference to `this' | |
| getClassGen | back to summary |
|---|---|
| public ClassGen getClassGen() | |
| getConstantPool | back to summary |
|---|---|
| public ConstantPool getConstantPool() | |
| PUSH | back to summary |
|---|---|
| public static Instruction PUSH(ConstantPool cp, int value) Returns the right instruction for putting whatever you want onto the stack | |
| PUSH | back to summary |
|---|---|
| public static Instruction PUSH(ConstantPool cp, ObjectType t) | |
| PUSH | back to summary |
|---|---|
| public static Instruction PUSH(ConstantPool cp, boolean value) | |
| PUSH | back to summary |
|---|---|
| public static Instruction PUSH(ConstantPool cp, float value) | |
| PUSH | back to summary |
|---|---|
| public static Instruction PUSH(ConstantPool cp, long value) | |
| PUSH | back to summary |
|---|---|
| public static Instruction PUSH(ConstantPool cp, double value) | |
| PUSH | back to summary |
|---|---|
| public static Instruction PUSH(ConstantPool cp, String value) | |
| PUSH | back to summary |
|---|---|
| public static Instruction PUSH(ConstantPool cp, Number value) | |
| PUSH | back to summary |
|---|---|
| public static Instruction PUSH(ConstantPool cp, Character value) | |
| PUSH | back to summary |
|---|---|
| public static Instruction PUSH(ConstantPool cp, Boolean value) | |
| PUSHCLASS | back to summary |
|---|---|
| public InstructionList PUSHCLASS(ConstantPool cp, String className) Return a list that will load the Class object - on 1.5 or later use the class variant of ldc, whilst on earlier JVMs use the regular Class.forName. | |
| setClassGen | back to summary |
|---|---|
| public void setClassGen(ClassGen c) | |
| setConstantPool | back to summary |
|---|---|
| public void setConstantPool(ConstantPool c) | |