|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JBytecodeParser
The bytecode parser class allows an application to parse a bytecode array into a set of opcodes and their operands.
| Field Summary | |
|---|---|
static int |
AALOAD
The aaload instruction opcode. |
static int |
AASTORE
The aastore instruction opcode. |
static int |
ACONST_NULL
The aconst_null instruction opcode. |
static int |
ALOAD
The aload instruction opcode. |
static int |
ALOAD_0
The aload_0 instruction opcode. |
static int |
ALOAD_1
The aload_1 instruction opcode. |
static int |
ALOAD_2
The aload_2 instruction opcode. |
static int |
ALOAD_3
The aload_3 instruction opcode. |
static int |
ANEWARRAY
The anewarray instruction opcode. |
static int |
ARETURN
The areturn instruction opcode. |
static int |
ARRAYLENGTH
The arraylength instruction opcode. |
static int |
ASTORE
The astore instruction opcode. |
static int |
ASTORE_0
The astore_0 instruction opcode. |
static int |
ASTORE_1
The astore_0 instruction opcode. |
static int |
ASTORE_2
The astore_0 instruction opcode. |
static int |
ASTORE_3
The astore_0 instruction opcode. |
static int |
ATHROW
The athrow instruction opcode. |
static int |
BALOAD
The baload instruction opcode. |
static int |
BASTORE
The bastore instruction opcode. |
static int |
BIPUSH
The bipush instruction opcode. |
static int |
CALOAD
The caload instruction opcode. |
static int |
CASTORE
The castore instruction opcode. |
static int |
CHECKCAST
The checkcast instruction opcode. |
static int |
D2F
The d2f instruction opcode. |
static int |
D2I
The d2i instruction opcode. |
static int |
D2L
The d2i instruction opcode. |
static int |
DADD
The dadd instruction opcode. |
static int |
DALOAD
The daload instruction opcode. |
static int |
DASTORE
The dastore instruction opcode. |
static int |
DCMPG
The dcmpg instruction opcode. |
static int |
DCMPL
The dcmpl instruction opcode. |
static int |
DCONST_0
The dconst_0 instruction opcode. |
static int |
DCONST_1
The dconst_1 instruction opcode. |
static int |
DDIV
The ddiv instruction opcode. |
static int |
DLOAD
The dload instruction opcode. |
static int |
DLOAD_0
The dload_0 instruction opcode. |
static int |
DLOAD_1
The dload_1 instruction opcode. |
static int |
DLOAD_2
The dload_2 instruction opcode. |
static int |
DLOAD_3
The dload_3 instruction opcode. |
static int |
DMUL
The dmul instruction opcode. |
static int |
DNEG
The dneg instruction opcode. |
static int |
DREM
The drem instruction opcode. |
static int |
DRETURN
The dreturn instruction opcode. |
static int |
DSTORE
The dstore instruction opcode. |
static int |
DSTORE_0
The dstore_0 instruction opcode. |
static int |
DSTORE_1
The dstore_1 instruction opcode. |
static int |
DSTORE_2
The dstore_2 instruction opcode. |
static int |
DSTORE_3
The dstore_3 instruction opcode. |
static int |
DSUB
The dsub instruction opcode. |
static int |
DUP
The dup instruction opcode. |
static int |
DUP_X1
The dup_x1 instruction opcode. |
static int |
DUP_X2
The dup_x2 instruction opcode. |
static int |
DUP2
The dup2 instruction opcode. |
static int |
DUP2_X1
The dup2_x1 instruction opcode. |
static int |
DUP2_X2
The dup2_x2 instruction opcode. |
static int |
F2D
The f2d instruction opcode. |
static int |
F2I
The f2i instruction opcode. |
static int |
F2L
The f2l instruction opcode. |
static int |
FADD
The fadd instruction opcode. |
static int |
FALOAD
The faload instruction opcode. |
static int |
FASTORE
The fastore instruction opcode. |
static int |
FCMPG
The fcmpg instruction opcode. |
static int |
FCMPL
The fcmpl instruction opcode. |
static int |
FCONST_0
The fconst_0 instruction opcode. |
static int |
FCONST_1
The fconst_1 instruction opcode. |
static int |
FCONST_2
The fconst_2 instruction opcode. |
static int |
FDIV
The fdiv instruction opcode. |
static int |
FLOAD
The fload instruction opcode. |
static int |
FLOAD_0
The fload_0 instruction opcode. |
static int |
FLOAD_1
The fload_1 instruction opcode. |
static int |
FLOAD_2
The fload_2 instruction opcode. |
static int |
FLOAD_3
The fload_3 instruction opcode. |
static int |
FMUL
The fmul instruction opcode. |
static int |
FNEG
The fneg instruction opcode. |
static int |
FREM
The frem instruction opcode. |
static int |
FRETURN
The freturn instruction opcode. |
static int |
FSTORE
The fstore instruction opcode. |
static int |
FSTORE_0
The fstore_0 instruction opcode. |
static int |
FSTORE_1
The fstore_1 instruction opcode. |
static int |
FSTORE_2
The fstore_2 instruction opcode. |
static int |
FSTORE_3
The fstore_3 instruction opcode. |
static int |
FSUB
The fsub instruction opcode. |
static int |
GETFIELD
The getfield instruction opcode. |
static int |
GETSTATIC
The getstatic instruction opcode. |
static int |
GOTO
The goto instruction opcode. |
static int |
GOTO_W
The goto_w instruction opcode. |
static int |
I2B
The i2b instruction opcode. |
static int |
I2C
The i2c instruction opcode. |
static int |
I2D
The i2d instruction opcode. |
static int |
I2F
The i2f instruction opcode. |
static int |
I2L
The i2l instruction opcode. |
static int |
I2S
The i2s instruction opcode. |
static int |
IADD
The iadd instruction opcode. |
static int |
IALOAD
The iaload instruction opcode. |
static int |
IAND
The iand instruction opcode. |
static int |
IASTORE
The iastore instruction opcode. |
static int |
ICONST_0
The iconst_0 instruction opcode. |
static int |
ICONST_1
The iconst_1 instruction opcode. |
static int |
ICONST_2
The iconst_2 instruction opcode. |
static int |
ICONST_3
The iconst_3 instruction opcode. |
static int |
ICONST_4
The iconst_4 instruction opcode. |
static int |
ICONST_5
The iconst_5 instruction opcode. |
static int |
ICONST_M1
The iconst_m1 instruction opcode. |
static int |
IDIV
The idiv instruction opcode. |
static int |
IF_ACMPEQ
The if_acmpeq instruction opcode. |
static int |
IF_ACMPNE
The if_acmpne instruction opcode. |
static int |
IF_ICMPEQ
The if_icmpeq instruction opcode. |
static int |
IF_ICMPGE
The if_icmpge instruction opcode. |
static int |
IF_ICMPGT
The if_icmpgt instruction opcode. |
static int |
IF_ICMPLE
The if_icmple instruction opcode. |
static int |
IF_ICMPLT
The if_icmplt instruction opcode. |
static int |
IF_ICMPNE
The if_icmpne instruction opcode. |
static int |
IFEQ
The ifeq instruction opcode. |
static int |
IFGE
The ifge instruction opcode. |
static int |
IFGT
The ifgt instruction opcode. |
static int |
IFLE
The ifle instruction opcode. |
static int |
IFLT
The iflt instruction opcode. |
static int |
IFNE
The ifne instruction opcode. |
static int |
IFNONNULL
The ifnonnull instruction opcode. |
static int |
IFNULL
The ifnullinstruction opcode. |
static int |
IINC
The iinc instruction opcode. |
static int |
ILOAD
The iload instruction opcode. |
static int |
ILOAD_0
The iload_0 instruction opcode. |
static int |
ILOAD_1
The iload_1 instruction opcode. |
static int |
ILOAD_2
The iload_2 instruction opcode. |
static int |
ILOAD_3
The iload_3 instruction opcode. |
static int |
IMUL
The imul instruction opcode. |
static int |
INEG
The ineg instruction opcode. |
static int |
INSTANCEOF
The instanceof instruction opcode. |
static int |
INVOKEINTERFACE
The invokeinterface instruction opcode. |
static int |
INVOKESPECIAL
The invokespecial instruction opcode. |
static int |
INVOKESTATIC
The invokestatic instruction opcode. |
static int |
INVOKEVIRTUAL
The invokevirtual instruction opcode. |
static int |
IOR
The ior instruction opcode. |
static int |
IREM
The irem instruction opcode. |
static int |
IRETURN
The ireturn instruction opcode. |
static int |
ISHL
The ishl instruction opcode. |
static int |
ISHR
The ishr instruction opcode. |
static int |
ISTORE
The istore instruction opcode. |
static int |
ISTORE_0
The istore_0 instruction opcode. |
static int |
ISTORE_1
The istore_1 instruction opcode. |
static int |
ISTORE_2
The istore_2 instruction opcode. |
static int |
ISTORE_3
The istore_3 instruction opcode. |
static int |
ISUB
The isub instruction opcode. |
static int |
IUSHR
The iushr instruction opcode. |
static int |
IXOR
The ixor instruction opcode. |
static int |
JSR
The jsr instruction opcode. |
static int |
JSR_W
The jsr_w instruction opcode. |
static int |
L2D
The l2d instruction opcode. |
static int |
L2F
The l2f instruction opcode. |
static int |
L2I
The l2i instruction opcode. |
static int |
LADD
The ladd instruction opcode. |
static int |
LALOAD
The laload instruction opcode. |
static int |
LAND
The land instruction opcode. |
static int |
LASTORE
The lastore instruction opcode. |
static int |
LCMP
The lcmp instruction opcode. |
static int |
LCONST_0
The lconst_0 instruction opcode. |
static int |
LCONST_1
The lconst_1 instruction opcode. |
static int |
LDC
The ldc instruction opcode. |
static int |
LDC_W
The ldc_w instruction opcode. |
static int |
LDC2_W
The ldc2_w instruction opcode. |
static int |
LDIV
The ldiv instruction opcode. |
static int |
LLOAD
The lload instruction opcode. |
static int |
LLOAD_0
The lload_0 instruction opcode. |
static int |
LLOAD_1
The lload_1 instruction opcode. |
static int |
LLOAD_2
The lload_2 instruction opcode. |
static int |
LLOAD_3
The lload_3 instruction opcode. |
static int |
LMUL
The lmul instruction opcode. |
static int |
LNEG
The lneg instruction opcode. |
static int |
LOOKUPSWITCH
The lookupswitch instruction opcode. |
static int |
LOR
The lor instruction opcode. |
static int |
LREM
The lrem instruction opcode. |
static int |
LRETURN
The lreturn instruction opcode. |
static int |
LSHL
The lshl instruction opcode. |
static int |
LSHR
The lshr instruction opcode. |
static int |
LSTORE
The lstore instruction opcode. |
static int |
LSTORE_0
The lstore_0 instruction opcode. |
static int |
LSTORE_1
The lstore_1 instruction opcode. |
static int |
LSTORE_2
The lstore_2 instruction opcode. |
static int |
LSTORE_3
The lstore_3 instruction opcode. |
static int |
LSUB
The lsub instruction opcode. |
static int |
LUSHR
The lushr instruction opcode. |
static int |
LXOR
The lxor instruction opcode. |
static int |
MONITORENTER
The monitorenter instruction opcode. |
static int |
MONITOREXIT
The monitorexit instruction opcode. |
static int |
MULTIANEWARRAY
The multianewarray instruction opcode. |
static int |
NEW
The new instruction opcode. |
static int |
NEWARRAY
The newarray instruction opcode. |
static int |
NOP
The nop instruction opcode. |
static int |
POP
The pop instruction opcode. |
static int |
POP2
The pop2 instruction opcode. |
static int |
PUTFIELD
The putfield instruction opcode. |
static int |
PUTSTATIC
The putstatic instruction opcode. |
static int |
RET
The ret instruction opcode. |
static int |
RETURN
The return instruction opcode. |
static int |
SALOAD
The saload instruction opcode. |
static int |
SASTORE
The sastore instruction opcode. |
static int |
SIPUSH
The sipush instruction opcode. |
static int |
SWAP
The swap instruction opcode. |
static int |
TABLESWITCH
The tableswitch instruction opcode. |
static int |
WIDE
The wide instruction opcode. |
| Method Summary | |
|---|---|
void |
fillInput(byte[] b,
int off,
int len)
Resets the bytecode parsing and initializes it with the len bytes of the specified bytes array, starting at the off position. |
java.lang.String |
getMnemonic()
Returns the mnemonic of the next instruction opcode read from this bytecode parser. |
int |
getOpcodeCount()
Calculates the number of times that this bytecode parser's nextOpcode method can be called before it generates an exception. |
int |
getOperandCount()
Returns the number of operands of the current instruction read with the nextOpcode method. |
int |
getPosition()
Returns the current opcode position in the bytecodes flow. |
boolean |
hasMoreOpcode()
Tests if there are more instruction opcode available from this bytecode parser. |
int |
nextOpcode()
Returns the next instruction opcode read from this bytecode parser. |
int |
readOperands(byte[] b,
int off,
int len)
Reads up to len operand of the current instruction, read with the nextOpcode method, into an array of bytes. |
| Field Detail |
|---|
static final int NOP
static final int ACONST_NULL
static final int ICONST_M1
static final int ICONST_0
static final int ICONST_1
static final int ICONST_2
static final int ICONST_3
static final int ICONST_4
static final int ICONST_5
static final int LCONST_0
static final int LCONST_1
static final int FCONST_0
static final int FCONST_1
static final int FCONST_2
static final int DCONST_0
static final int DCONST_1
static final int BIPUSH
static final int SIPUSH
static final int LDC
static final int LDC_W
static final int LDC2_W
static final int ILOAD
static final int LLOAD
static final int FLOAD
static final int DLOAD
static final int ALOAD
static final int ILOAD_0
static final int ILOAD_1
static final int ILOAD_2
static final int ILOAD_3
static final int LLOAD_0
static final int LLOAD_1
static final int LLOAD_2
static final int LLOAD_3
static final int FLOAD_0
static final int FLOAD_1
static final int FLOAD_2
static final int FLOAD_3
static final int DLOAD_0
static final int DLOAD_1
static final int DLOAD_2
static final int DLOAD_3
static final int ALOAD_0
static final int ALOAD_1
static final int ALOAD_2
static final int ALOAD_3
static final int IALOAD
static final int LALOAD
static final int FALOAD
static final int DALOAD
static final int AALOAD
static final int BALOAD
static final int CALOAD
static final int SALOAD
static final int ISTORE
static final int LSTORE
static final int FSTORE
static final int DSTORE
static final int ASTORE
static final int ISTORE_0
static final int ISTORE_1
static final int ISTORE_2
static final int ISTORE_3
static final int LSTORE_0
static final int LSTORE_1
static final int LSTORE_2
static final int LSTORE_3
static final int FSTORE_0
static final int FSTORE_1
static final int FSTORE_2
static final int FSTORE_3
static final int DSTORE_0
static final int DSTORE_1
static final int DSTORE_2
static final int DSTORE_3
static final int ASTORE_0
static final int ASTORE_1
static final int ASTORE_2
static final int ASTORE_3
static final int IASTORE
static final int LASTORE
static final int FASTORE
static final int DASTORE
static final int AASTORE
static final int BASTORE
static final int CASTORE
static final int SASTORE
static final int POP
static final int POP2
static final int DUP
static final int DUP_X1
static final int DUP_X2
static final int DUP2
static final int DUP2_X1
static final int DUP2_X2
static final int SWAP
static final int IADD
static final int LADD
static final int FADD
static final int DADD
static final int ISUB
static final int LSUB
static final int FSUB
static final int DSUB
static final int IMUL
static final int LMUL
static final int FMUL
static final int DMUL
static final int IDIV
static final int LDIV
static final int FDIV
static final int DDIV
static final int IREM
static final int LREM
static final int FREM
static final int DREM
static final int INEG
static final int LNEG
static final int FNEG
static final int DNEG
static final int ISHL
static final int LSHL
static final int ISHR
static final int LSHR
static final int IUSHR
static final int LUSHR
static final int IAND
static final int LAND
static final int IOR
static final int LOR
static final int IXOR
static final int LXOR
static final int IINC
static final int I2L
static final int I2F
static final int I2D
static final int L2I
static final int L2F
static final int L2D
static final int F2I
static final int F2L
static final int F2D
static final int D2I
static final int D2L
static final int D2F
static final int I2B
static final int I2C
static final int I2S
static final int LCMP
static final int FCMPL
static final int FCMPG
static final int DCMPL
static final int DCMPG
static final int IFEQ
static final int IFNE
static final int IFLT
static final int IFGE
static final int IFGT
static final int IFLE
static final int IF_ICMPEQ
static final int IF_ICMPNE
static final int IF_ICMPLT
static final int IF_ICMPGE
static final int IF_ICMPGT
static final int IF_ICMPLE
static final int IF_ACMPEQ
static final int IF_ACMPNE
static final int GOTO
static final int JSR
static final int RET
static final int TABLESWITCH
static final int LOOKUPSWITCH
static final int IRETURN
static final int LRETURN
static final int FRETURN
static final int DRETURN
static final int ARETURN
static final int RETURN
static final int GETSTATIC
static final int PUTSTATIC
static final int GETFIELD
static final int PUTFIELD
static final int INVOKEVIRTUAL
static final int INVOKESPECIAL
static final int INVOKESTATIC
static final int INVOKEINTERFACE
static final int NEW
static final int NEWARRAY
static final int ANEWARRAY
static final int ARRAYLENGTH
static final int ATHROW
static final int CHECKCAST
static final int INSTANCEOF
static final int MONITORENTER
static final int MONITOREXIT
static final int WIDE
static final int MULTIANEWARRAY
static final int IFNULL
static final int IFNONNULL
static final int GOTO_W
static final int JSR_W
| Method Detail |
|---|
boolean hasMoreOpcode()
int nextOpcode()
java.util.NoSuchElementException - if there are no more
instruction opcode in this bytecode parserreadOperands(byte[], int, int)java.lang.String getMnemonic()
int getPosition()
int readOperands(byte[] b,
int off,
int len)
b - the buffer into which the operands are read.off - the start offset in array b at which the operands
are writtenlen - the maximum number of operands to read
int getOpcodeCount()
int getOperandCount()
void fillInput(byte[] b,
int off,
int len)
b - the bytecode of a methodoff - the start offset in array b at which the parsing is
processedlen - the maximum number of bytes to analyse
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||