com.jeffpalm.basic.bytecode.instr
Class Instruction

java.lang.Object
  extended by com.jeffpalm.basic.bytecode.instr.Instruction
Direct Known Subclasses:
Aaconst_null, Aaload, Aastore, Aconst_null, Aload, Aload_0, Aload_1, Aload_2, Aload_3, Anewarray, Areturn, Arraylength, Astore, Astore_0, Astore_1, Astore_2, Astore_3, Athrow, Baload, Bastore, Bipush, BranchInstruction, Breakpoint, Caload, Castore, Checkcast, D2f, D2i, D2l, Dadd, Daload, Dastore, Dcmpg, Dcmpl, Dconst_0, Dconst_1, Ddiv, Dload, Dload_0, Dload_1, Dload_2, Dload_3, Dmul, Dneg, Drem, Dreturn, Dstore, Dstore_0, Dstore_1, Dstore_2, Dstore_3, Dsub, Dup, Dup_x1, Dup_x2, Dup2, Dup2_x1, Dup2_x2, F2d, F2i, F2l, Fadd, Faload, Fastore, Fcmpg, Fcmpl, Fconst_0, Fconst_1, Fconst_2, Fdiv, Fload, Fload_0, Fload_1, Fload_2, Fload_3, Fmul, Fneg, Frem, Freturn, Fstore, Fstore_0, Fstore_1, Fstore_2, Fstore_3, Fsub, Getfield, Getstatic, Goto_w, I2b, I2c, I2d, I2f, I2l, I2s, Iadd, Iaload, Iand, Iastore, Iconst_0, Iconst_1, Iconst_2, Iconst_3, Iconst_4, Iconst_5, Iconst_m1, Idiv, Iinc, Iload, Iload_0, Iload_1, Iload_2, Iload_3, Imped1, Imped2, Imul, Ineg, Instanceof, Invokeinterface, Invokespecial, Invokestatic, Invokevirtual, Ior, Irem, Ireturn, Ishl, Ishr, Istore, Istore_0, Istore_1, Istore_2, Istore_3, Isub, Iushr, Ixor, Jsr, Jsr_w, L2d, L2f, L2i, Ladd, Laload, Land, Lastore, Lcmp, Lconst_0, Lconst_1, Ldc, Ldc_w, Ldc2_w, Ldiv, Lload, Lload_0, Lload_1, Lload_2, Lload_3, Lmul, Lneg, Lookupswitch, Lor, Lrem, Lreturn, Lshl, Lshr, Lstore, Lstore_0, Lstore_1, Lstore_2, Lstore_3, Lsub, Lushr, Lxor, Monitorenter, Monitorexit, Multianewarray, New, Newarray, Nop, Pop, Pop2, Putfield, Putstatic, Ret, Return, Saload, Sastore, Sipush, Swap, Tableswitch, Wide

public abstract class Instruction
extends java.lang.Object


Constructor Summary
Instruction()
           
 
Method Summary
 java.lang.String format(IConstantPool cp)
           
abstract  byte[] getBytes()
           
 int getLabel()
           
abstract  java.lang.String getName()
           
 int length()
           
 byte opcode()
           
 void setLabel(int label)
           
protected  java.lang.String toHex(byte b)
           
protected  java.lang.String toHex(int b)
           
protected  int toInt(byte b1, byte b2)
           
protected  int toInt(byte b1, byte b2, byte b3, byte b4)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instruction

public Instruction()
Method Detail

getName

public abstract java.lang.String getName()

getBytes

public abstract byte[] getBytes()

opcode

public final byte opcode()

toHex

protected final java.lang.String toHex(int b)

toInt

protected final int toInt(byte b1,
                          byte b2)

toInt

protected final int toInt(byte b1,
                          byte b2,
                          byte b3,
                          byte b4)

toHex

protected final java.lang.String toHex(byte b)

setLabel

public final void setLabel(int label)

getLabel

public final int getLabel()

length

public int length()

format

public java.lang.String format(IConstantPool cp)