Class ByteCode
- java.lang.Object
-
- org.biojava.utils.bytecode.ByteCode
-
public class ByteCode extends Object
Factory for objects which encapsulate individual Java bytecode instructions. Most methods in this class are auto-generated.There are two classes of methods. The first ones are for creating objects that directly represent opcodes. These effectively wrap one of the opcode constants. The others do something more clever. For example, make_if emits something that is equivalent to a normal Java if statement.
Generic types are supported using the factory methods that take ParametricType arguments.
- Author:
- Thomas Down, Matthew Pocock
-
-
Field Summary
Fields Modifier and Type Field Description static byteop_aaloadstatic byteop_aastorestatic byteop_aconst_nullstatic byteop_aloadstatic byteop_aload_0static byteop_aload_1static byteop_aload_2static byteop_aload_3static byteop_anewarraystatic byteop_anewarray_quickstatic byteop_areturnstatic byteop_arraylengthstatic byteop_astorestatic byteop_astore_0static byteop_astore_1static byteop_astore_2static byteop_astore_3static byteop_athrowstatic byteop_baloadstatic byteop_bastorestatic byteop_bipushstatic byteop_breakpointstatic byteop_caloadstatic byteop_castorestatic byteop_checkcaststatic byteop_checkcast_quickstatic byteop_d2fstatic byteop_d2istatic byteop_d2lstatic byteop_daddstatic byteop_daloadstatic byteop_dastorestatic byteop_dcmpgstatic byteop_dcmplstatic byteop_dconst_0static byteop_dconst_1static byteop_ddivstatic byteop_dloadstatic byteop_dload_0static byteop_dload_1static byteop_dload_2static byteop_dload_3static byteop_dmulstatic byteop_dnegstatic byteop_dremstatic byteop_dreturnstatic byteop_dstorestatic byteop_dstore_0static byteop_dstore_1static byteop_dstore_2static byteop_dstore_3static byteop_dsubstatic byteop_dupstatic byteop_dup_x1static byteop_dup_x2static byteop_dup2static byteop_dup2_x1static byteop_dup2_x2static byteop_f2dstatic byteop_f2istatic byteop_f2lstatic byteop_faddstatic byteop_faloadstatic byteop_fastorestatic byteop_fcmpgstatic byteop_fcmplstatic byteop_fconst_0static byteop_fconst_1static byteop_fconst_2static byteop_fdivstatic byteop_floadstatic byteop_fload_0static byteop_fload_1static byteop_fload_2static byteop_fload_3static byteop_fmulstatic byteop_fnegstatic byteop_fremstatic byteop_freturnstatic byteop_fstorestatic byteop_fstore_0static byteop_fstore_1static byteop_fstore_2static byteop_fstore_3static byteop_fsubstatic byteop_getfieldstatic byteop_getfield_quickstatic byteop_getfield_quick_wstatic byteop_getfield2_quickstatic byteop_getstaticstatic byteop_getstatic_quickstatic byteop_getstatic2_quickstatic byteop_gotostatic byteop_goto_wstatic byteop_i2bstatic byteop_i2cstatic byteop_i2dstatic byteop_i2fstatic byteop_i2lstatic byteop_i2sstatic byteop_iaddstatic byteop_ialoadstatic byteop_iandstatic byteop_iastorestatic byteop_iconst_0static byteop_iconst_1static byteop_iconst_2static byteop_iconst_3static byteop_iconst_4static byteop_iconst_5static byteop_iconst_m1static byteop_idivstatic byteop_if_acmpeqstatic byteop_if_acmpnestatic byteop_if_icmpeqstatic byteop_if_icmpgestatic byteop_if_icmpgtstatic byteop_if_icmplestatic byteop_if_icmpltstatic byteop_if_icmpnestatic byteop_ifeqstatic byteop_ifgestatic byteop_ifgtstatic byteop_iflestatic byteop_ifltstatic byteop_ifnestatic byteop_ifnonnullstatic byteop_ifnullstatic byteop_iincstatic byteop_iloadstatic byteop_iload_0static byteop_iload_1static byteop_iload_2static byteop_iload_3static byteop_impdep1static byteop_impdep2static byteop_imulstatic byteop_inegstatic byteop_instanceofstatic byteop_instanceof_quickstatic byteop_invokeinterfacestatic byteop_invokeinterface_quickstatic byteop_invokenonvirtual_quickstatic byteop_invokespecialstatic byteop_invokestaticstatic byteop_invokestatic_quickstatic byteop_invokesuper_quickstatic byteop_invokevirtualstatic byteop_invokevirtual_quickstatic byteop_invokevirtual_quick_wstatic byteop_invokevirtualobject_quickstatic byteop_iorstatic byteop_iremstatic byteop_ireturnstatic byteop_ishlstatic byteop_ishrstatic byteop_istorestatic byteop_istore_0static byteop_istore_1static byteop_istore_2static byteop_istore_3static byteop_isubstatic byteop_iushrstatic byteop_ixorstatic byteop_jsrstatic byteop_jsr_wstatic byteop_l2dstatic byteop_l2fstatic byteop_l2istatic byteop_laddstatic byteop_laloadstatic byteop_landstatic byteop_lastorestatic byteop_lcmpstatic byteop_lconst_0static byteop_lconst_1static byteop_ldcstatic byteop_ldc_quickstatic byteop_ldc_wstatic byteop_ldc_w_quickstatic byteop_ldc2_wstatic byteop_ldc2_w_quickstatic byteop_ldivstatic byteop_lloadstatic byteop_lload_0static byteop_lload_1static byteop_lload_2static byteop_lload_3static byteop_lmulstatic byteop_lnegstatic byteop_lookupswitchstatic byteop_lorstatic byteop_lremstatic byteop_lreturnstatic byteop_lshlstatic byteop_lshrstatic byteop_lstorestatic byteop_lstore_0static byteop_lstore_1static byteop_lstore_2static byteop_lstore_3static byteop_lsubstatic byteop_lushrstatic byteop_lxorstatic byteop_monitorenterstatic byteop_monitorexitstatic byteop_multianewarraystatic byteop_multianewarray_quickstatic byteop_newstatic byteop_new_quickstatic byteop_newarraystatic byteop_nopstatic byteop_popstatic byteop_pop2static byteop_putfieldstatic byteop_putfield_quickstatic byteop_putfield_quick_wstatic byteop_putfield2_quickstatic byteop_putstaticstatic byteop_putstatic_quickstatic byteop_putstatic2_quickstatic byteop_retstatic byteop_returnstatic byteop_saloadstatic byteop_sastorestatic byteop_sipushstatic byteop_swapstatic byteop_tableswitchstatic byteop_wide
-
Constructor Summary
Constructors Constructor Description ByteCode()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Instructionmake_aaload()Return the Instruction object for the aaload instruction.static Instructionmake_aastore()Return the Instruction object for the aastore instruction.static Instructionmake_aconst_null()Return the Instruction object for the aconst_null instruction.ParametricCodeGeneratormake_add(ParametricType type)static Instructionmake_aload(LocalVariable lv)ParametricCodeGeneratormake_and(ParametricType type)static Instructionmake_areturn()Return the Instruction object for the areturn instruction.static ParametricCodeGeneratormake_array_load(ParametricType type)Load an element of a parametric type to an array.static Instructionmake_arraylength()Return the Instruction object for the arraylength instruction.static ParametricCodeGeneratormake_arrayStore(ParametricType type)Store an element of a parametric type to an array.static Instructionmake_astore(LocalVariable lv)static Instructionmake_athrow()Return the Instruction object for the athrow instruction.static Instructionmake_baload()Return the Instruction object for the baload instruction.static Instructionmake_bastore()Return the Instruction object for the bastore instruction.static Instructionmake_breakpoint()Return the Instruction object for the breakpoint instruction.static Instructionmake_caload()Return the Instruction object for the caload instruction.PParametricCodeGeneratormake_cast(ParametricType from, ParametricType to)static Instructionmake_castore()Return the Instruction object for the castore instruction.static Instructionmake_checkcast(CodeClass clazz)ParametricCodeGeneratormake_cmpg(ParametricType type)ParametricCodeGeneratormake_cmpl(ParametricType type)static Instructionmake_d2f()Return the Instruction object for the d2f instruction.static Instructionmake_d2i()Return the Instruction object for the d2i instruction.static Instructionmake_d2l()Return the Instruction object for the d2l instruction.static Instructionmake_dadd()Return the Instruction object for the dadd instruction.static Instructionmake_daload()Return the Instruction object for the daload instruction.static Instructionmake_dastore()Return the Instruction object for the dastore instruction.static Instructionmake_dcmpg()Return the Instruction object for the dcmpg instruction.static Instructionmake_dcmpl()Return the Instruction object for the dcmpl instruction.static Instructionmake_dconst(double d)static Instructionmake_ddiv()Return the Instruction object for the ddiv instruction.ParametricCodeGeneratormake_div(ParametricType type)static Instructionmake_dload(LocalVariable lv)static Instructionmake_dmul()Return the Instruction object for the dmul instruction.static Instructionmake_dneg()Return the Instruction object for the dneg instruction.static Instructionmake_drem()Return the Instruction object for the drem instruction.static Instructionmake_dreturn()Return the Instruction object for the dreturn instruction.static Instructionmake_dstore(LocalVariable lv)static Instructionmake_dsub()Return the Instruction object for the dsub instruction.static Instructionmake_dup()Return the Instruction object for the dup instruction.ParametricCodeGeneratormake_dup(ParametricType type)static Instructionmake_dup_x1()Return the Instruction object for the dup_x1 instruction.static Instructionmake_dup_x2()Return the Instruction object for the dup_x2 instruction.static Instructionmake_dup2()Return the Instruction object for the dup2 instruction.static Instructionmake_dup2_x1()Return the Instruction object for the dup2_x1 instruction.static Instructionmake_dup2_x2()Return the Instruction object for the dup2_x2 instruction.static Instructionmake_f2d()Return the Instruction object for the f2d instruction.static Instructionmake_f2i()Return the Instruction object for the f2i instruction.static Instructionmake_f2l()Return the Instruction object for the f2l instruction.static Instructionmake_fadd()Return the Instruction object for the fadd instruction.static Instructionmake_faload()Return the Instruction object for the faload instruction.static Instructionmake_fastore()Return the Instruction object for the fastore instruction.static Instructionmake_fcmpg()Return the Instruction object for the fcmpg instruction.static Instructionmake_fcmpl()Return the Instruction object for the fcmpl instruction.static Instructionmake_fconst(float f)static Instructionmake_fdiv()Return the Instruction object for the fdiv instruction.static Instructionmake_fload(LocalVariable lv)static Instructionmake_fmul()Return the Instruction object for the fmul instruction.static Instructionmake_fneg()Return the Instruction object for the fneg instruction.static Instructionmake_frem()Return the Instruction object for the frem instruction.static Instructionmake_freturn()Return the Instruction object for the freturn instruction.static Instructionmake_fstore(LocalVariable lv)static Instructionmake_fsub()Return the Instruction object for the fsub instruction.static Instructionmake_getfield(CodeField cf)static Instructionmake_getstatic(CodeField cf)static Instructionmake_goto(Label l)static Instructionmake_i2b()Return the Instruction object for the i2b instruction.static Instructionmake_i2c()Return the Instruction object for the i2c instruction.static Instructionmake_i2d()Return the Instruction object for the i2d instruction.static Instructionmake_i2f()Return the Instruction object for the i2f instruction.static Instructionmake_i2l()Return the Instruction object for the i2l instruction.static Instructionmake_i2s()Return the Instruction object for the i2s instruction.static Instructionmake_iadd()Return the Instruction object for the iadd instruction.static Instructionmake_iaload()Return the Instruction object for the iaload instruction.static Instructionmake_iand()Return the Instruction object for the iand instruction.static Instructionmake_iastore()Return the Instruction object for the iastore instruction.static Instructionmake_iconst(int i)static Instructionmake_idiv()Return the Instruction object for the idiv instruction.static Instructionmake_if(byte op, Label lab)Make an if Instruction for the opcode and label.static Instructionmake_if_acmpeq(Label l)Return the Instruction object for the if_acmpeq instruction.static Instructionmake_if_acmpne(Label l)Return the Instruction object for the if_acmpne instruction.static Instructionmake_if_icmpeq(Label l)Return the Instruction object for the if_icmpeq instruction.static Instructionmake_if_icmpge(Label l)Return the Instruction object for the if_icmpge instruction.static Instructionmake_if_icmpgt(Label l)Return the Instruction object for the if_icmpgt instruction.static Instructionmake_if_icmple(Label l)Return the Instruction object for the if_icmple instruction.static Instructionmake_if_icmplt(Label l)Return the Instruction object for the if_icmplt instruction.static Instructionmake_if_icmpne(Label l)Return the Instruction object for the if_icmpne instruction.static Instructionmake_ifeq(Label lab)Return the Instruction object for the ifeq instruction.static Instructionmake_ifge(Label lab)Return the Instruction object for the ifge instruction.static Instructionmake_ifgt(Label lab)Return the Instruction object for the ifgt instruction.static Instructionmake_ifle(Label lab)Return the Instruction object for the ifle instruction.static Instructionmake_iflt(Label lab)Return the Instruction object for the iflt instruction.static Instructionmake_ifne(Label lab)Return the Instruction object for the ifne instruction.static Instructionmake_ifnonnull(Label l)Return the Instruction object for the ifnonnull instruction.static Instructionmake_ifnull(Label l)Return the Instruction object for the ifnull instruction.static Instructionmake_iload(LocalVariable lv)static Instructionmake_impdep1()Return the Instruction object for the impdep1 instruction.static Instructionmake_impdep2()Return the Instruction object for the impdep2 instruction.static Instructionmake_imul()Return the Instruction object for the imul instruction.static Instructionmake_ineg()Return the Instruction object for the ineg instruction.static Instructionmake_instanceof(CodeClass clazz)static Instructionmake_invoke(CodeMethod cm)Make an invoke opcode that is suited to the method.static Instructionmake_invokeinterface(CodeMethod cm)static Instructionmake_invokespecial(CodeMethod cm)static Instructionmake_invokestatic(CodeMethod cm)static Instructionmake_invokevirtual(CodeMethod cm)static Instructionmake_invokevirtual_quick_w()Return the Instruction object for the invokevirtual_quick_w instruction.static Instructionmake_ior()Return the Instruction object for the ior instruction.static Instructionmake_irem()Return the Instruction object for the irem instruction.static Instructionmake_ireturn()Return the Instruction object for the ireturn instruction.static Instructionmake_ishl()Return the Instruction object for the ishl instruction.static Instructionmake_ishr()Return the Instruction object for the ishr instruction.static Instructionmake_istore(LocalVariable lv)static Instructionmake_isub()Return the Instruction object for the isub instruction.static Instructionmake_iushr()Return the Instruction object for the iushr instruction.static Instructionmake_ixor()Return the Instruction object for the ixor instruction.static Instructionmake_jsr(Label l)static Instructionmake_l2d()Return the Instruction object for the l2d instruction.static Instructionmake_l2f()Return the Instruction object for the l2f instruction.static Instructionmake_l2i()Return the Instruction object for the l2i instruction.static Instructionmake_ladd()Return the Instruction object for the ladd instruction.static Instructionmake_laload()Return the Instruction object for the laload instruction.static Instructionmake_land()Return the Instruction object for the land instruction.static Instructionmake_lastore()Return the Instruction object for the lastore instruction.static Instructionmake_lcmp()Return the Instruction object for the lcmp instruction.static Instructionmake_lconst(long l)static Instructionmake_ldiv()Return the Instruction object for the ldiv instruction.static Instructionmake_lload(LocalVariable lv)static Instructionmake_lmul()Return the Instruction object for the lmul instruction.static Instructionmake_lneg()Return the Instruction object for the lneg instruction.ParametricCodeGeneratormake_load(ParametricType type, LocalVariable lv)Load an item of a parametric type from a local variable.static Instructionmake_lor()Return the Instruction object for the lor instruction.static Instructionmake_lrem()Return the Instruction object for the lrem instruction.static Instructionmake_lreturn()Return the Instruction object for the lreturn instruction.static Instructionmake_lshl()Return the Instruction object for the lshl instruction.static Instructionmake_lshr()Return the Instruction object for the lshr instruction.static Instructionmake_lstore(LocalVariable lv)static Instructionmake_lsub()Return the Instruction object for the lsub instruction.static Instructionmake_lushr()Return the Instruction object for the lushr instruction.static Instructionmake_lxor()Return the Instruction object for the lxor instruction.static CodeGeneratormake_markLabel(Label lab)static Instructionmake_monitorenter()Return the Instruction object for the monitorenter instruction.static Instructionmake_monitorexit()Return the Instruction object for the monitorexit instruction.ParametricCodeGeneratormake_mul(ParametricType type)ParametricCodeGeneratormake_neg(ParametricType type)static Instructionmake_new(CodeClass clazz)static Instructionmake_newarray(CodeClass clazz)static ParametricCodeGeneratormake_newraray(ParametricType type)static Instructionmake_nop()Return the Instruction object for the nop instruction.ParametricCodeGeneratormake_or(ParametricType type)static Instructionmake_pop()Return the Instruction object for the pop instruction.static Instructionmake_pop2()Return the Instruction object for the pop2 instruction.static Instructionmake_putfield(CodeField cf)static Instructionmake_putstatic(CodeField cf)ParametricCodeGeneratormake_rem(ParametricType type)static Instructionmake_return()Return the Instruction object for the return instruction.static Instructionmake_return(CodeClass clazz)Creates the return Instruction suitable for a given class or type.static Instructionmake_return(CodeMethod method)A convenient one-stop method to get a return statement suitable for a method.ParametricCodeGeneratormake_return(ParametricType type)Make a return statement for the parametric type.static Instructionmake_saload()Return the Instruction object for the saload instruction.static Instructionmake_sastore()Return the Instruction object for the sastore instruction.ParametricCodeGeneratormake_save(ParametricType type, LocalVariable lv)Store an item of a parametric type to a local variable.static Instructionmake_sconst(String s)ParametricCodeGeneratormake_shiftLeft(ParametricType type)ParametricCodeGeneratormake_shiftRight(ParametricType type)ParametricCodeGeneratormake_shiftRightLogical(ParametricType type)ParametricCodeGeneratormake_sub(ParametricType type)static Instructionmake_swap()Return the Instruction object for the swap instruction.static CodeGeneratormake_synchronizedBlock(CodeGenerator code)Synchronize the processing of an entire block of code on the object on the top of the stack.static CodeGeneratormake_synchronizedBlock(LocalVariable lockVar, CodeGenerator code)Synchronize the processing of an entire block of code on a local variable.static Instructionmake_wide()Return the Instruction object for the wide instruction.ParametricCodeGeneratormake_xor(ParametricType type)
-
-
-
Field Detail
-
op_nop
public static final byte op_nop
- See Also:
- Constant Field Values
-
op_aconst_null
public static final byte op_aconst_null
- See Also:
- Constant Field Values
-
op_iconst_m1
public static final byte op_iconst_m1
- See Also:
- Constant Field Values
-
op_iconst_0
public static final byte op_iconst_0
- See Also:
- Constant Field Values
-
op_iconst_1
public static final byte op_iconst_1
- See Also:
- Constant Field Values
-
op_iconst_2
public static final byte op_iconst_2
- See Also:
- Constant Field Values
-
op_iconst_3
public static final byte op_iconst_3
- See Also:
- Constant Field Values
-
op_iconst_4
public static final byte op_iconst_4
- See Also:
- Constant Field Values
-
op_iconst_5
public static final byte op_iconst_5
- See Also:
- Constant Field Values
-
op_lconst_0
public static final byte op_lconst_0
- See Also:
- Constant Field Values
-
op_lconst_1
public static final byte op_lconst_1
- See Also:
- Constant Field Values
-
op_fconst_0
public static final byte op_fconst_0
- See Also:
- Constant Field Values
-
op_fconst_1
public static final byte op_fconst_1
- See Also:
- Constant Field Values
-
op_fconst_2
public static final byte op_fconst_2
- See Also:
- Constant Field Values
-
op_dconst_0
public static final byte op_dconst_0
- See Also:
- Constant Field Values
-
op_dconst_1
public static final byte op_dconst_1
- See Also:
- Constant Field Values
-
op_bipush
public static final byte op_bipush
- See Also:
- Constant Field Values
-
op_sipush
public static final byte op_sipush
- See Also:
- Constant Field Values
-
op_ldc
public static final byte op_ldc
- See Also:
- Constant Field Values
-
op_ldc_w
public static final byte op_ldc_w
- See Also:
- Constant Field Values
-
op_ldc2_w
public static final byte op_ldc2_w
- See Also:
- Constant Field Values
-
op_iload
public static final byte op_iload
- See Also:
- Constant Field Values
-
op_lload
public static final byte op_lload
- See Also:
- Constant Field Values
-
op_fload
public static final byte op_fload
- See Also:
- Constant Field Values
-
op_dload
public static final byte op_dload
- See Also:
- Constant Field Values
-
op_aload
public static final byte op_aload
- See Also:
- Constant Field Values
-
op_iload_0
public static final byte op_iload_0
- See Also:
- Constant Field Values
-
op_iload_1
public static final byte op_iload_1
- See Also:
- Constant Field Values
-
op_iload_2
public static final byte op_iload_2
- See Also:
- Constant Field Values
-
op_iload_3
public static final byte op_iload_3
- See Also:
- Constant Field Values
-
op_lload_0
public static final byte op_lload_0
- See Also:
- Constant Field Values
-
op_lload_1
public static final byte op_lload_1
- See Also:
- Constant Field Values
-
op_lload_2
public static final byte op_lload_2
- See Also:
- Constant Field Values
-
op_lload_3
public static final byte op_lload_3
- See Also:
- Constant Field Values
-
op_fload_0
public static final byte op_fload_0
- See Also:
- Constant Field Values
-
op_fload_1
public static final byte op_fload_1
- See Also:
- Constant Field Values
-
op_fload_2
public static final byte op_fload_2
- See Also:
- Constant Field Values
-
op_fload_3
public static final byte op_fload_3
- See Also:
- Constant Field Values
-
op_dload_0
public static final byte op_dload_0
- See Also:
- Constant Field Values
-
op_dload_1
public static final byte op_dload_1
- See Also:
- Constant Field Values
-
op_dload_2
public static final byte op_dload_2
- See Also:
- Constant Field Values
-
op_dload_3
public static final byte op_dload_3
- See Also:
- Constant Field Values
-
op_aload_0
public static final byte op_aload_0
- See Also:
- Constant Field Values
-
op_aload_1
public static final byte op_aload_1
- See Also:
- Constant Field Values
-
op_aload_2
public static final byte op_aload_2
- See Also:
- Constant Field Values
-
op_aload_3
public static final byte op_aload_3
- See Also:
- Constant Field Values
-
op_iaload
public static final byte op_iaload
- See Also:
- Constant Field Values
-
op_laload
public static final byte op_laload
- See Also:
- Constant Field Values
-
op_faload
public static final byte op_faload
- See Also:
- Constant Field Values
-
op_daload
public static final byte op_daload
- See Also:
- Constant Field Values
-
op_aaload
public static final byte op_aaload
- See Also:
- Constant Field Values
-
op_baload
public static final byte op_baload
- See Also:
- Constant Field Values
-
op_caload
public static final byte op_caload
- See Also:
- Constant Field Values
-
op_saload
public static final byte op_saload
- See Also:
- Constant Field Values
-
op_istore
public static final byte op_istore
- See Also:
- Constant Field Values
-
op_lstore
public static final byte op_lstore
- See Also:
- Constant Field Values
-
op_fstore
public static final byte op_fstore
- See Also:
- Constant Field Values
-
op_dstore
public static final byte op_dstore
- See Also:
- Constant Field Values
-
op_astore
public static final byte op_astore
- See Also:
- Constant Field Values
-
op_istore_0
public static final byte op_istore_0
- See Also:
- Constant Field Values
-
op_istore_1
public static final byte op_istore_1
- See Also:
- Constant Field Values
-
op_istore_2
public static final byte op_istore_2
- See Also:
- Constant Field Values
-
op_istore_3
public static final byte op_istore_3
- See Also:
- Constant Field Values
-
op_lstore_0
public static final byte op_lstore_0
- See Also:
- Constant Field Values
-
op_lstore_1
public static final byte op_lstore_1
- See Also:
- Constant Field Values
-
op_lstore_2
public static final byte op_lstore_2
- See Also:
- Constant Field Values
-
op_lstore_3
public static final byte op_lstore_3
- See Also:
- Constant Field Values
-
op_fstore_0
public static final byte op_fstore_0
- See Also:
- Constant Field Values
-
op_fstore_1
public static final byte op_fstore_1
- See Also:
- Constant Field Values
-
op_fstore_2
public static final byte op_fstore_2
- See Also:
- Constant Field Values
-
op_fstore_3
public static final byte op_fstore_3
- See Also:
- Constant Field Values
-
op_dstore_0
public static final byte op_dstore_0
- See Also:
- Constant Field Values
-
op_dstore_1
public static final byte op_dstore_1
- See Also:
- Constant Field Values
-
op_dstore_2
public static final byte op_dstore_2
- See Also:
- Constant Field Values
-
op_dstore_3
public static final byte op_dstore_3
- See Also:
- Constant Field Values
-
op_astore_0
public static final byte op_astore_0
- See Also:
- Constant Field Values
-
op_astore_1
public static final byte op_astore_1
- See Also:
- Constant Field Values
-
op_astore_2
public static final byte op_astore_2
- See Also:
- Constant Field Values
-
op_astore_3
public static final byte op_astore_3
- See Also:
- Constant Field Values
-
op_iastore
public static final byte op_iastore
- See Also:
- Constant Field Values
-
op_lastore
public static final byte op_lastore
- See Also:
- Constant Field Values
-
op_fastore
public static final byte op_fastore
- See Also:
- Constant Field Values
-
op_dastore
public static final byte op_dastore
- See Also:
- Constant Field Values
-
op_aastore
public static final byte op_aastore
- See Also:
- Constant Field Values
-
op_bastore
public static final byte op_bastore
- See Also:
- Constant Field Values
-
op_castore
public static final byte op_castore
- See Also:
- Constant Field Values
-
op_sastore
public static final byte op_sastore
- See Also:
- Constant Field Values
-
op_pop
public static final byte op_pop
- See Also:
- Constant Field Values
-
op_pop2
public static final byte op_pop2
- See Also:
- Constant Field Values
-
op_dup
public static final byte op_dup
- See Also:
- Constant Field Values
-
op_dup_x1
public static final byte op_dup_x1
- See Also:
- Constant Field Values
-
op_dup_x2
public static final byte op_dup_x2
- See Also:
- Constant Field Values
-
op_dup2
public static final byte op_dup2
- See Also:
- Constant Field Values
-
op_dup2_x1
public static final byte op_dup2_x1
- See Also:
- Constant Field Values
-
op_dup2_x2
public static final byte op_dup2_x2
- See Also:
- Constant Field Values
-
op_swap
public static final byte op_swap
- See Also:
- Constant Field Values
-
op_iadd
public static final byte op_iadd
- See Also:
- Constant Field Values
-
op_ladd
public static final byte op_ladd
- See Also:
- Constant Field Values
-
op_fadd
public static final byte op_fadd
- See Also:
- Constant Field Values
-
op_dadd
public static final byte op_dadd
- See Also:
- Constant Field Values
-
op_isub
public static final byte op_isub
- See Also:
- Constant Field Values
-
op_lsub
public static final byte op_lsub
- See Also:
- Constant Field Values
-
op_fsub
public static final byte op_fsub
- See Also:
- Constant Field Values
-
op_dsub
public static final byte op_dsub
- See Also:
- Constant Field Values
-
op_imul
public static final byte op_imul
- See Also:
- Constant Field Values
-
op_lmul
public static final byte op_lmul
- See Also:
- Constant Field Values
-
op_fmul
public static final byte op_fmul
- See Also:
- Constant Field Values
-
op_dmul
public static final byte op_dmul
- See Also:
- Constant Field Values
-
op_idiv
public static final byte op_idiv
- See Also:
- Constant Field Values
-
op_ldiv
public static final byte op_ldiv
- See Also:
- Constant Field Values
-
op_fdiv
public static final byte op_fdiv
- See Also:
- Constant Field Values
-
op_ddiv
public static final byte op_ddiv
- See Also:
- Constant Field Values
-
op_irem
public static final byte op_irem
- See Also:
- Constant Field Values
-
op_lrem
public static final byte op_lrem
- See Also:
- Constant Field Values
-
op_frem
public static final byte op_frem
- See Also:
- Constant Field Values
-
op_drem
public static final byte op_drem
- See Also:
- Constant Field Values
-
op_ineg
public static final byte op_ineg
- See Also:
- Constant Field Values
-
op_lneg
public static final byte op_lneg
- See Also:
- Constant Field Values
-
op_fneg
public static final byte op_fneg
- See Also:
- Constant Field Values
-
op_dneg
public static final byte op_dneg
- See Also:
- Constant Field Values
-
op_ishl
public static final byte op_ishl
- See Also:
- Constant Field Values
-
op_lshl
public static final byte op_lshl
- See Also:
- Constant Field Values
-
op_ishr
public static final byte op_ishr
- See Also:
- Constant Field Values
-
op_lshr
public static final byte op_lshr
- See Also:
- Constant Field Values
-
op_iushr
public static final byte op_iushr
- See Also:
- Constant Field Values
-
op_lushr
public static final byte op_lushr
- See Also:
- Constant Field Values
-
op_iand
public static final byte op_iand
- See Also:
- Constant Field Values
-
op_land
public static final byte op_land
- See Also:
- Constant Field Values
-
op_ior
public static final byte op_ior
- See Also:
- Constant Field Values
-
op_lor
public static final byte op_lor
- See Also:
- Constant Field Values
-
op_ixor
public static final byte op_ixor
- See Also:
- Constant Field Values
-
op_lxor
public static final byte op_lxor
- See Also:
- Constant Field Values
-
op_iinc
public static final byte op_iinc
- See Also:
- Constant Field Values
-
op_i2l
public static final byte op_i2l
- See Also:
- Constant Field Values
-
op_i2f
public static final byte op_i2f
- See Also:
- Constant Field Values
-
op_i2d
public static final byte op_i2d
- See Also:
- Constant Field Values
-
op_l2i
public static final byte op_l2i
- See Also:
- Constant Field Values
-
op_l2f
public static final byte op_l2f
- See Also:
- Constant Field Values
-
op_l2d
public static final byte op_l2d
- See Also:
- Constant Field Values
-
op_f2i
public static final byte op_f2i
- See Also:
- Constant Field Values
-
op_f2l
public static final byte op_f2l
- See Also:
- Constant Field Values
-
op_f2d
public static final byte op_f2d
- See Also:
- Constant Field Values
-
op_d2i
public static final byte op_d2i
- See Also:
- Constant Field Values
-
op_d2l
public static final byte op_d2l
- See Also:
- Constant Field Values
-
op_d2f
public static final byte op_d2f
- See Also:
- Constant Field Values
-
op_i2b
public static final byte op_i2b
- See Also:
- Constant Field Values
-
op_i2c
public static final byte op_i2c
- See Also:
- Constant Field Values
-
op_i2s
public static final byte op_i2s
- See Also:
- Constant Field Values
-
op_lcmp
public static final byte op_lcmp
- See Also:
- Constant Field Values
-
op_fcmpl
public static final byte op_fcmpl
- See Also:
- Constant Field Values
-
op_fcmpg
public static final byte op_fcmpg
- See Also:
- Constant Field Values
-
op_dcmpl
public static final byte op_dcmpl
- See Also:
- Constant Field Values
-
op_dcmpg
public static final byte op_dcmpg
- See Also:
- Constant Field Values
-
op_ifeq
public static final byte op_ifeq
- See Also:
- Constant Field Values
-
op_ifne
public static final byte op_ifne
- See Also:
- Constant Field Values
-
op_iflt
public static final byte op_iflt
- See Also:
- Constant Field Values
-
op_ifge
public static final byte op_ifge
- See Also:
- Constant Field Values
-
op_ifgt
public static final byte op_ifgt
- See Also:
- Constant Field Values
-
op_ifle
public static final byte op_ifle
- See Also:
- Constant Field Values
-
op_if_icmpeq
public static final byte op_if_icmpeq
- See Also:
- Constant Field Values
-
op_if_icmpne
public static final byte op_if_icmpne
- See Also:
- Constant Field Values
-
op_if_icmplt
public static final byte op_if_icmplt
- See Also:
- Constant Field Values
-
op_if_icmpge
public static final byte op_if_icmpge
- See Also:
- Constant Field Values
-
op_if_icmpgt
public static final byte op_if_icmpgt
- See Also:
- Constant Field Values
-
op_if_icmple
public static final byte op_if_icmple
- See Also:
- Constant Field Values
-
op_if_acmpeq
public static final byte op_if_acmpeq
- See Also:
- Constant Field Values
-
op_if_acmpne
public static final byte op_if_acmpne
- See Also:
- Constant Field Values
-
op_goto
public static final byte op_goto
- See Also:
- Constant Field Values
-
op_jsr
public static final byte op_jsr
- See Also:
- Constant Field Values
-
op_ret
public static final byte op_ret
- See Also:
- Constant Field Values
-
op_tableswitch
public static final byte op_tableswitch
- See Also:
- Constant Field Values
-
op_lookupswitch
public static final byte op_lookupswitch
- See Also:
- Constant Field Values
-
op_ireturn
public static final byte op_ireturn
- See Also:
- Constant Field Values
-
op_lreturn
public static final byte op_lreturn
- See Also:
- Constant Field Values
-
op_freturn
public static final byte op_freturn
- See Also:
- Constant Field Values
-
op_dreturn
public static final byte op_dreturn
- See Also:
- Constant Field Values
-
op_areturn
public static final byte op_areturn
- See Also:
- Constant Field Values
-
op_return
public static final byte op_return
- See Also:
- Constant Field Values
-
op_getstatic
public static final byte op_getstatic
- See Also:
- Constant Field Values
-
op_putstatic
public static final byte op_putstatic
- See Also:
- Constant Field Values
-
op_getfield
public static final byte op_getfield
- See Also:
- Constant Field Values
-
op_putfield
public static final byte op_putfield
- See Also:
- Constant Field Values
-
op_invokevirtual
public static final byte op_invokevirtual
- See Also:
- Constant Field Values
-
op_invokespecial
public static final byte op_invokespecial
- See Also:
- Constant Field Values
-
op_invokestatic
public static final byte op_invokestatic
- See Also:
- Constant Field Values
-
op_invokeinterface
public static final byte op_invokeinterface
- See Also:
- Constant Field Values
-
op_new
public static final byte op_new
- See Also:
- Constant Field Values
-
op_newarray
public static final byte op_newarray
- See Also:
- Constant Field Values
-
op_anewarray
public static final byte op_anewarray
- See Also:
- Constant Field Values
-
op_arraylength
public static final byte op_arraylength
- See Also:
- Constant Field Values
-
op_athrow
public static final byte op_athrow
- See Also:
- Constant Field Values
-
op_checkcast
public static final byte op_checkcast
- See Also:
- Constant Field Values
-
op_instanceof
public static final byte op_instanceof
- See Also:
- Constant Field Values
-
op_monitorenter
public static final byte op_monitorenter
- See Also:
- Constant Field Values
-
op_monitorexit
public static final byte op_monitorexit
- See Also:
- Constant Field Values
-
op_wide
public static final byte op_wide
- See Also:
- Constant Field Values
-
op_multianewarray
public static final byte op_multianewarray
- See Also:
- Constant Field Values
-
op_ifnull
public static final byte op_ifnull
- See Also:
- Constant Field Values
-
op_ifnonnull
public static final byte op_ifnonnull
- See Also:
- Constant Field Values
-
op_goto_w
public static final byte op_goto_w
- See Also:
- Constant Field Values
-
op_jsr_w
public static final byte op_jsr_w
- See Also:
- Constant Field Values
-
op_breakpoint
public static final byte op_breakpoint
- See Also:
- Constant Field Values
-
op_ldc_quick
public static final byte op_ldc_quick
- See Also:
- Constant Field Values
-
op_ldc_w_quick
public static final byte op_ldc_w_quick
- See Also:
- Constant Field Values
-
op_ldc2_w_quick
public static final byte op_ldc2_w_quick
- See Also:
- Constant Field Values
-
op_getfield_quick
public static final byte op_getfield_quick
- See Also:
- Constant Field Values
-
op_putfield_quick
public static final byte op_putfield_quick
- See Also:
- Constant Field Values
-
op_getfield2_quick
public static final byte op_getfield2_quick
- See Also:
- Constant Field Values
-
op_putfield2_quick
public static final byte op_putfield2_quick
- See Also:
- Constant Field Values
-
op_getstatic_quick
public static final byte op_getstatic_quick
- See Also:
- Constant Field Values
-
op_putstatic_quick
public static final byte op_putstatic_quick
- See Also:
- Constant Field Values
-
op_getstatic2_quick
public static final byte op_getstatic2_quick
- See Also:
- Constant Field Values
-
op_putstatic2_quick
public static final byte op_putstatic2_quick
- See Also:
- Constant Field Values
-
op_invokevirtual_quick
public static final byte op_invokevirtual_quick
- See Also:
- Constant Field Values
-
op_invokenonvirtual_quick
public static final byte op_invokenonvirtual_quick
- See Also:
- Constant Field Values
-
op_invokesuper_quick
public static final byte op_invokesuper_quick
- See Also:
- Constant Field Values
-
op_invokestatic_quick
public static final byte op_invokestatic_quick
- See Also:
- Constant Field Values
-
op_invokeinterface_quick
public static final byte op_invokeinterface_quick
- See Also:
- Constant Field Values
-
op_invokevirtualobject_quick
public static final byte op_invokevirtualobject_quick
- See Also:
- Constant Field Values
-
op_new_quick
public static final byte op_new_quick
- See Also:
- Constant Field Values
-
op_anewarray_quick
public static final byte op_anewarray_quick
- See Also:
- Constant Field Values
-
op_multianewarray_quick
public static final byte op_multianewarray_quick
- See Also:
- Constant Field Values
-
op_checkcast_quick
public static final byte op_checkcast_quick
- See Also:
- Constant Field Values
-
op_instanceof_quick
public static final byte op_instanceof_quick
- See Also:
- Constant Field Values
-
op_invokevirtual_quick_w
public static final byte op_invokevirtual_quick_w
- See Also:
- Constant Field Values
-
op_getfield_quick_w
public static final byte op_getfield_quick_w
- See Also:
- Constant Field Values
-
op_putfield_quick_w
public static final byte op_putfield_quick_w
- See Also:
- Constant Field Values
-
op_impdep1
public static final byte op_impdep1
- See Also:
- Constant Field Values
-
op_impdep2
public static final byte op_impdep2
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ByteCode
public ByteCode()
-
-
Method Detail
-
make_iconst
public static Instruction make_iconst(int i)
-
make_sconst
public static Instruction make_sconst(String s)
-
make_dconst
public static Instruction make_dconst(double d)
-
make_lconst
public static Instruction make_lconst(long l)
-
make_fconst
public static Instruction make_fconst(float f)
-
make_invokevirtual
public static Instruction make_invokevirtual(CodeMethod cm)
-
make_invokespecial
public static Instruction make_invokespecial(CodeMethod cm)
-
make_invokestatic
public static Instruction make_invokestatic(CodeMethod cm)
-
make_invokeinterface
public static Instruction make_invokeinterface(CodeMethod cm)
-
make_getfield
public static Instruction make_getfield(CodeField cf)
-
make_putfield
public static Instruction make_putfield(CodeField cf)
-
make_getstatic
public static Instruction make_getstatic(CodeField cf)
-
make_putstatic
public static Instruction make_putstatic(CodeField cf)
-
make_iload
public static Instruction make_iload(LocalVariable lv) throws CodeException
- Throws:
CodeException
-
make_lload
public static Instruction make_lload(LocalVariable lv) throws CodeException
- Throws:
CodeException
-
make_fload
public static Instruction make_fload(LocalVariable lv) throws CodeException
- Throws:
CodeException
-
make_dload
public static Instruction make_dload(LocalVariable lv) throws CodeException
- Throws:
CodeException
-
make_aload
public static Instruction make_aload(LocalVariable lv) throws CodeException
- Throws:
CodeException
-
make_istore
public static Instruction make_istore(LocalVariable lv) throws CodeException
- Throws:
CodeException
-
make_lstore
public static Instruction make_lstore(LocalVariable lv) throws CodeException
- Throws:
CodeException
-
make_fstore
public static Instruction make_fstore(LocalVariable lv) throws CodeException
- Throws:
CodeException
-
make_dstore
public static Instruction make_dstore(LocalVariable lv) throws CodeException
- Throws:
CodeException
-
make_astore
public static Instruction make_astore(LocalVariable lv) throws CodeException
- Throws:
CodeException
-
make_ifeq
public static Instruction make_ifeq(Label lab)
Return the Instruction object for the ifeq instruction.
-
make_ifne
public static Instruction make_ifne(Label lab)
Return the Instruction object for the ifne instruction.
-
make_iflt
public static Instruction make_iflt(Label lab)
Return the Instruction object for the iflt instruction.
-
make_ifge
public static Instruction make_ifge(Label lab)
Return the Instruction object for the ifge instruction.
-
make_ifgt
public static Instruction make_ifgt(Label lab)
Return the Instruction object for the ifgt instruction.
-
make_ifle
public static Instruction make_ifle(Label lab)
Return the Instruction object for the ifle instruction.
-
make_if_icmpeq
public static Instruction make_if_icmpeq(Label l)
Return the Instruction object for the if_icmpeq instruction.
-
make_if_icmpne
public static Instruction make_if_icmpne(Label l)
Return the Instruction object for the if_icmpne instruction.
-
make_if_icmplt
public static Instruction make_if_icmplt(Label l)
Return the Instruction object for the if_icmplt instruction.
-
make_if_icmpge
public static Instruction make_if_icmpge(Label l)
Return the Instruction object for the if_icmpge instruction.
-
make_if_icmpgt
public static Instruction make_if_icmpgt(Label l)
Return the Instruction object for the if_icmpgt instruction.
-
make_if_icmple
public static Instruction make_if_icmple(Label l)
Return the Instruction object for the if_icmple instruction.
-
make_if_acmpeq
public static Instruction make_if_acmpeq(Label l)
Return the Instruction object for the if_acmpeq instruction.
-
make_if_acmpne
public static Instruction make_if_acmpne(Label l)
Return the Instruction object for the if_acmpne instruction.
-
make_ifnull
public static Instruction make_ifnull(Label l)
Return the Instruction object for the ifnull instruction.
-
make_ifnonnull
public static Instruction make_ifnonnull(Label l)
Return the Instruction object for the ifnonnull instruction.
-
make_goto
public static Instruction make_goto(Label l)
-
make_jsr
public static Instruction make_jsr(Label l)
-
make_nop
public static Instruction make_nop()
Return the Instruction object for the nop instruction.
-
make_aconst_null
public static Instruction make_aconst_null()
Return the Instruction object for the aconst_null instruction.
-
make_iaload
public static Instruction make_iaload()
Return the Instruction object for the iaload instruction.
-
make_laload
public static Instruction make_laload()
Return the Instruction object for the laload instruction.
-
make_faload
public static Instruction make_faload()
Return the Instruction object for the faload instruction.
-
make_daload
public static Instruction make_daload()
Return the Instruction object for the daload instruction.
-
make_aaload
public static Instruction make_aaload()
Return the Instruction object for the aaload instruction.
-
make_baload
public static Instruction make_baload()
Return the Instruction object for the baload instruction.
-
make_caload
public static Instruction make_caload()
Return the Instruction object for the caload instruction.
-
make_saload
public static Instruction make_saload()
Return the Instruction object for the saload instruction.
-
make_iastore
public static Instruction make_iastore()
Return the Instruction object for the iastore instruction.
-
make_lastore
public static Instruction make_lastore()
Return the Instruction object for the lastore instruction.
-
make_fastore
public static Instruction make_fastore()
Return the Instruction object for the fastore instruction.
-
make_dastore
public static Instruction make_dastore()
Return the Instruction object for the dastore instruction.
-
make_aastore
public static Instruction make_aastore()
Return the Instruction object for the aastore instruction.
-
make_bastore
public static Instruction make_bastore()
Return the Instruction object for the bastore instruction.
-
make_castore
public static Instruction make_castore()
Return the Instruction object for the castore instruction.
-
make_sastore
public static Instruction make_sastore()
Return the Instruction object for the sastore instruction.
-
make_pop
public static Instruction make_pop()
Return the Instruction object for the pop instruction.
-
make_pop2
public static Instruction make_pop2()
Return the Instruction object for the pop2 instruction.
-
make_dup
public static Instruction make_dup()
Return the Instruction object for the dup instruction.
-
make_dup_x1
public static Instruction make_dup_x1()
Return the Instruction object for the dup_x1 instruction.
-
make_dup_x2
public static Instruction make_dup_x2()
Return the Instruction object for the dup_x2 instruction.
-
make_dup2
public static Instruction make_dup2()
Return the Instruction object for the dup2 instruction.
-
make_dup2_x1
public static Instruction make_dup2_x1()
Return the Instruction object for the dup2_x1 instruction.
-
make_dup2_x2
public static Instruction make_dup2_x2()
Return the Instruction object for the dup2_x2 instruction.
-
make_swap
public static Instruction make_swap()
Return the Instruction object for the swap instruction.
-
make_iadd
public static Instruction make_iadd()
Return the Instruction object for the iadd instruction.
-
make_ladd
public static Instruction make_ladd()
Return the Instruction object for the ladd instruction.
-
make_fadd
public static Instruction make_fadd()
Return the Instruction object for the fadd instruction.
-
make_dadd
public static Instruction make_dadd()
Return the Instruction object for the dadd instruction.
-
make_isub
public static Instruction make_isub()
Return the Instruction object for the isub instruction.
-
make_lsub
public static Instruction make_lsub()
Return the Instruction object for the lsub instruction.
-
make_fsub
public static Instruction make_fsub()
Return the Instruction object for the fsub instruction.
-
make_dsub
public static Instruction make_dsub()
Return the Instruction object for the dsub instruction.
-
make_imul
public static Instruction make_imul()
Return the Instruction object for the imul instruction.
-
make_lmul
public static Instruction make_lmul()
Return the Instruction object for the lmul instruction.
-
make_fmul
public static Instruction make_fmul()
Return the Instruction object for the fmul instruction.
-
make_dmul
public static Instruction make_dmul()
Return the Instruction object for the dmul instruction.
-
make_idiv
public static Instruction make_idiv()
Return the Instruction object for the idiv instruction.
-
make_ldiv
public static Instruction make_ldiv()
Return the Instruction object for the ldiv instruction.
-
make_fdiv
public static Instruction make_fdiv()
Return the Instruction object for the fdiv instruction.
-
make_ddiv
public static Instruction make_ddiv()
Return the Instruction object for the ddiv instruction.
-
make_irem
public static Instruction make_irem()
Return the Instruction object for the irem instruction.
-
make_lrem
public static Instruction make_lrem()
Return the Instruction object for the lrem instruction.
-
make_frem
public static Instruction make_frem()
Return the Instruction object for the frem instruction.
-
make_drem
public static Instruction make_drem()
Return the Instruction object for the drem instruction.
-
make_ineg
public static Instruction make_ineg()
Return the Instruction object for the ineg instruction.
-
make_lneg
public static Instruction make_lneg()
Return the Instruction object for the lneg instruction.
-
make_fneg
public static Instruction make_fneg()
Return the Instruction object for the fneg instruction.
-
make_dneg
public static Instruction make_dneg()
Return the Instruction object for the dneg instruction.
-
make_ishl
public static Instruction make_ishl()
Return the Instruction object for the ishl instruction.
-
make_lshl
public static Instruction make_lshl()
Return the Instruction object for the lshl instruction.
-
make_ishr
public static Instruction make_ishr()
Return the Instruction object for the ishr instruction.
-
make_lshr
public static Instruction make_lshr()
Return the Instruction object for the lshr instruction.
-
make_iushr
public static Instruction make_iushr()
Return the Instruction object for the iushr instruction.
-
make_lushr
public static Instruction make_lushr()
Return the Instruction object for the lushr instruction.
-
make_iand
public static Instruction make_iand()
Return the Instruction object for the iand instruction.
-
make_land
public static Instruction make_land()
Return the Instruction object for the land instruction.
-
make_ior
public static Instruction make_ior()
Return the Instruction object for the ior instruction.
-
make_lor
public static Instruction make_lor()
Return the Instruction object for the lor instruction.
-
make_ixor
public static Instruction make_ixor()
Return the Instruction object for the ixor instruction.
-
make_lxor
public static Instruction make_lxor()
Return the Instruction object for the lxor instruction.
-
make_i2l
public static Instruction make_i2l()
Return the Instruction object for the i2l instruction.
-
make_i2f
public static Instruction make_i2f()
Return the Instruction object for the i2f instruction.
-
make_i2d
public static Instruction make_i2d()
Return the Instruction object for the i2d instruction.
-
make_l2i
public static Instruction make_l2i()
Return the Instruction object for the l2i instruction.
-
make_l2f
public static Instruction make_l2f()
Return the Instruction object for the l2f instruction.
-
make_l2d
public static Instruction make_l2d()
Return the Instruction object for the l2d instruction.
-
make_f2i
public static Instruction make_f2i()
Return the Instruction object for the f2i instruction.
-
make_f2l
public static Instruction make_f2l()
Return the Instruction object for the f2l instruction.
-
make_f2d
public static Instruction make_f2d()
Return the Instruction object for the f2d instruction.
-
make_d2i
public static Instruction make_d2i()
Return the Instruction object for the d2i instruction.
-
make_d2l
public static Instruction make_d2l()
Return the Instruction object for the d2l instruction.
-
make_d2f
public static Instruction make_d2f()
Return the Instruction object for the d2f instruction.
-
make_i2b
public static Instruction make_i2b()
Return the Instruction object for the i2b instruction.
-
make_i2c
public static Instruction make_i2c()
Return the Instruction object for the i2c instruction.
-
make_i2s
public static Instruction make_i2s()
Return the Instruction object for the i2s instruction.
-
make_lcmp
public static Instruction make_lcmp()
Return the Instruction object for the lcmp instruction.
-
make_fcmpl
public static Instruction make_fcmpl()
Return the Instruction object for the fcmpl instruction.
-
make_fcmpg
public static Instruction make_fcmpg()
Return the Instruction object for the fcmpg instruction.
-
make_dcmpl
public static Instruction make_dcmpl()
Return the Instruction object for the dcmpl instruction.
-
make_dcmpg
public static Instruction make_dcmpg()
Return the Instruction object for the dcmpg instruction.
-
make_ireturn
public static Instruction make_ireturn()
Return the Instruction object for the ireturn instruction.
-
make_lreturn
public static Instruction make_lreturn()
Return the Instruction object for the lreturn instruction.
-
make_freturn
public static Instruction make_freturn()
Return the Instruction object for the freturn instruction.
-
make_dreturn
public static Instruction make_dreturn()
Return the Instruction object for the dreturn instruction.
-
make_areturn
public static Instruction make_areturn()
Return the Instruction object for the areturn instruction.
-
make_return
public static Instruction make_return()
Return the Instruction object for the return instruction.
-
make_arraylength
public static Instruction make_arraylength()
Return the Instruction object for the arraylength instruction.
-
make_athrow
public static Instruction make_athrow()
Return the Instruction object for the athrow instruction.
-
make_monitorenter
public static Instruction make_monitorenter()
Return the Instruction object for the monitorenter instruction.
-
make_monitorexit
public static Instruction make_monitorexit()
Return the Instruction object for the monitorexit instruction.
-
make_wide
public static Instruction make_wide()
Return the Instruction object for the wide instruction.
-
make_breakpoint
public static Instruction make_breakpoint()
Return the Instruction object for the breakpoint instruction.
-
make_invokevirtual_quick_w
public static Instruction make_invokevirtual_quick_w()
Return the Instruction object for the invokevirtual_quick_w instruction. Apparently now undocumented. Presumably deprecated.
-
make_impdep1
public static Instruction make_impdep1()
Return the Instruction object for the impdep1 instruction.
-
make_impdep2
public static Instruction make_impdep2()
Return the Instruction object for the impdep2 instruction.
-
make_checkcast
public static Instruction make_checkcast(CodeClass clazz)
-
make_instanceof
public static Instruction make_instanceof(CodeClass clazz)
-
make_new
public static Instruction make_new(CodeClass clazz)
-
make_newarray
public static Instruction make_newarray(CodeClass clazz) throws CodeException
- Throws:
CodeException
-
make_return
public static Instruction make_return(CodeMethod method)
A convenient one-stop method to get a return statement suitable for a method.- Parameters:
method- the CodeMethod to return from- Returns:
- a return Instruction that fits this method's return type
-
make_return
public static Instruction make_return(CodeClass clazz)
Creates the return Instruction suitable for a given class or type.- Parameters:
clazz- the CodeClass representing the class or type to return- Returns:
- the apropreate return instruction
-
make_invoke
public static Instruction make_invoke(CodeMethod cm)
Make an invoke opcode that is suited to the method.Constructors and private methods are invoked by invokespecial. Static methods are invoked by invokestatic. Methods referred to by interface are invoked by invokeinterface, and methods referred to by classes are invoked by invokeabstract.
- Parameters:
cm- the CodeMethod to invoke- Returns:
- an invocation Instruction suited to the method
-
make_synchronizedBlock
public static CodeGenerator make_synchronizedBlock(LocalVariable lockVar, CodeGenerator code) throws CodeException
Synchronize the processing of an entire block of code on a local variable. The local variable must refer to a Java object. It is safe to replace the value of the local variable within the block.- Parameters:
lockVar- Label for the local variable to lock oncode- the CodeGenerator that will make the body of the synchronized block- Throws:
CodeException- if locVar holds a primative value
-
make_synchronizedBlock
public static CodeGenerator make_synchronizedBlock(CodeGenerator code)
Synchronize the processing of an entire block of code on the object on the top of the stack.- Parameters:
lockVar- Label for the local variable to lock oncode- the CodeGenerator that will make the body of the synchronized block
-
make_markLabel
public static CodeGenerator make_markLabel(Label lab)
-
make_if
public static Instruction make_if(byte op, Label lab)
Make an if Instruction for the opcode and label.Obcodes for IF jump to the label if the condition is true, or execute the next instruction ontherwise. In this case, op will be used to compare the top of the stack and if the condition is true, will cause a jump to the label. Otherwise, the next instruction in the stream will be used.
- Parameters:
op- if opcodelab- Label to jump to- Returns:
- an Instruction that will perform an if
- Throws:
IllegalArgumentException- if the op code is not an if instruction
-
make_newraray
public static ParametricCodeGenerator make_newraray(ParametricType type)
-
make_array_load
public static ParametricCodeGenerator make_array_load(ParametricType type)
Load an element of a parametric type to an array.This is the parametric version of the make_<x>aload() factory methods.
- Parameters:
type- the ParametricType giving the element type of the array- Returns:
- a ParametricCodeGenerator that will load the correct type.
-
make_arrayStore
public static ParametricCodeGenerator make_arrayStore(ParametricType type)
Store an element of a parametric type to an array.This is the parametric version of the make_<x>astore() factory methods.
- Parameters:
type- the ParametricType giving the element type of the array- Returns:
- a ParametricCodeGenerator that will store the correct type.
-
make_load
public ParametricCodeGenerator make_load(ParametricType type, LocalVariable lv) throws CodeException
Load an item of a parametric type from a local variable.This is the parametric version of the make_<x>load() factory methods.
- Parameters:
type- the ParametricType giving the type to loadlv- the LocalVariable to load from- Returns:
- a ParametricCodeGenerator that will load the correct type.
- Throws:
CodeException
-
make_save
public ParametricCodeGenerator make_save(ParametricType type, LocalVariable lv) throws CodeException
Store an item of a parametric type to a local variable.This is the parametric version of the make_<x>save() factory methods.
- Parameters:
type- the ParametricType giving the type to savelv- the LocalVariable to load from- Returns:
- a ParametricCodeGenerator that will save the correct type.
- Throws:
CodeException
-
make_return
public ParametricCodeGenerator make_return(ParametricType type)
Make a return statement for the parametric type.- Parameters:
type- the ParametricType to return
-
make_cast
public PParametricCodeGenerator make_cast(ParametricType from, ParametricType to) throws CodeException
- Throws:
CodeException
-
make_add
public ParametricCodeGenerator make_add(ParametricType type) throws CodeException
- Throws:
CodeException
-
make_sub
public ParametricCodeGenerator make_sub(ParametricType type) throws CodeException
- Throws:
CodeException
-
make_mul
public ParametricCodeGenerator make_mul(ParametricType type) throws CodeException
- Throws:
CodeException
-
make_div
public ParametricCodeGenerator make_div(ParametricType type) throws CodeException
- Throws:
CodeException
-
make_rem
public ParametricCodeGenerator make_rem(ParametricType type) throws CodeException
- Throws:
CodeException
-
make_neg
public ParametricCodeGenerator make_neg(ParametricType type) throws CodeException
- Throws:
CodeException
-
make_shiftLeft
public ParametricCodeGenerator make_shiftLeft(ParametricType type) throws CodeException
- Throws:
CodeException
-
make_shiftRight
public ParametricCodeGenerator make_shiftRight(ParametricType type) throws CodeException
- Throws:
CodeException
-
make_shiftRightLogical
public ParametricCodeGenerator make_shiftRightLogical(ParametricType type) throws CodeException
- Throws:
CodeException
-
make_and
public ParametricCodeGenerator make_and(ParametricType type) throws CodeException
- Throws:
CodeException
-
make_or
public ParametricCodeGenerator make_or(ParametricType type) throws CodeException
- Throws:
CodeException
-
make_xor
public ParametricCodeGenerator make_xor(ParametricType type) throws CodeException
- Throws:
CodeException
-
make_cmpg
public ParametricCodeGenerator make_cmpg(ParametricType type) throws CodeException
- Throws:
CodeException
-
make_cmpl
public ParametricCodeGenerator make_cmpl(ParametricType type) throws CodeException
- Throws:
CodeException
-
make_dup
public ParametricCodeGenerator make_dup(ParametricType type) throws CodeException
- Throws:
CodeException
-
-