    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class jas.Insn

    java.lang.Object
       |
       +----jas.Insn

public class Insn
extends Object
implements RuntimeConstants

##

Insn(int)
  Instructions with no arguments are built with this constructor.
Insn(int, int)
  Instructions that take a single numeric argument.
Insn(int, Label)
  Instructions that take a Label as an argument.
Insn(int, CP)
  This constructor is used for instructions that take a CP item as their argument.

##

Insn

      public Insn(int opc) throws jasError

  Instructions with no arguments are built with this constructor.

Insn

      public Insn(int opc,
                  int val) throws jasError

  Instructions that take a single numeric argument. These are opc_bipush, opc_sipush, opc_ret, opc_iload, opc_lload, opc_fload, opc_dload, opc_aload, opc_istore, opc_lstore, opc_fstore, opc_dstore, opc_astore, opc_newarray Note that an extra wide prefix is automatically added for the following instructions if the numeric argument is larger than 256. Also note that while the spec makes no mention of opc_ret as being a "wideable" opcode, thats how the VM is implemented. opc_ret: opc_iload: opc_lload: opc_fload: opc_dload: opc_aload: opc_istore: opc_lstore: opc_fstore: opc_dstore: opc_astore:

Insn

      public Insn(int opc,
                  Label target) throws jasError

  Instructions that take a Label as an argument. These are opc_jsr, opc_goto, opc_if_acmpne, opc_if_acmpeq, opc_if_icmpge, opc_if_icmple, opc_if_icmpgt, opc_if_icmplt, opc_if_icmpne, opc_if_icmpeq, opc_ifge, opc_ifgt, opc_ifne, opc_ifle, opc_iflt, opc_ifeq, opc_ifnull, opc_ifnonnull, opc_goto_w, opc_jsr_w

Insn

      public Insn(int opc,
                  CP arg) throws jasError

  This constructor is used for instructions that take a CP item as their argument. These are opc_anewarray, opc_ldc_w, opc_ldc2_w, opc_invokenonvirtual, opc_invokestatic, opc_invokevirtual, opc_new, opc_checkcast, opc_instanceof, opc_getstatic, opc_putstatic, opc_getfield, opc_putfield, opc_ldc

    All Packages  Class Hierarchy  This Package  Previous  Next  Index