com.go.trove.classfile
Class Opcode

java.lang.Object
  |
  +--com.go.trove.classfile.Opcode

public class Opcode
extends java.lang.Object

A collection of opcode constants for creating class file byte code. These opcodes are defined in chapter 6 of The Java Virual Machine Specification.

Version:
25 , 9/07/00
Author:
Brian S O'Neill
See Also:
CodeAttr

Field Summary
static byte AALOAD
           
static byte AASTORE
           
static byte ACONST_NULL
           
static byte ALOAD
           
static byte ALOAD_0
           
static byte ALOAD_1
           
static byte ALOAD_2
           
static byte ALOAD_3
           
static byte ANEWARRAY
           
static byte ARETURN
           
static byte ARRAYLENGTH
           
static byte ASTORE
           
static byte ASTORE_0
           
static byte ASTORE_1
           
static byte ASTORE_2
           
static byte ASTORE_3
           
static byte ATHROW
           
static byte BALOAD
           
static byte BASTORE
           
static byte BIPUSH
           
static byte BREAKPOINT
           
static byte CALOAD
           
static byte CASTORE
           
static byte CHECKCAST
           
static byte D2F
           
static byte D2I
           
static byte D2L
           
static byte DADD
           
static byte DALOAD
           
static byte DASTORE
           
static byte DCMPG
           
static byte DCMPL
           
static byte DCONST_0
           
static byte DCONST_1
           
static byte DDIV
           
static byte DLOAD
           
static byte DLOAD_0
           
static byte DLOAD_1
           
static byte DLOAD_2
           
static byte DLOAD_3
           
static byte DMUL
           
static byte DNEG
           
static byte DREM
           
static byte DRETURN
           
static byte DSTORE
           
static byte DSTORE_0
           
static byte DSTORE_1
           
static byte DSTORE_2
           
static byte DSTORE_3
           
static byte DSUB
           
static byte DUP
           
static byte DUP_X1
           
static byte DUP_X2
           
static byte DUP2
           
static byte DUP2_X1
           
static byte DUP2_X2
           
static byte F2D
           
static byte F2I
           
static byte F2L
           
static byte FADD
           
static byte FALOAD
           
static byte FASTORE
           
static byte FCMPG
           
static byte FCMPL
           
static byte FCONST_0
           
static byte FCONST_1
           
static byte FCONST_2
           
static byte FDIV
           
static byte FLOAD
           
static byte FLOAD_0
           
static byte FLOAD_1
           
static byte FLOAD_2
           
static byte FLOAD_3
           
static byte FMUL
           
static byte FNEG
           
static byte FREM
           
static byte FRETURN
           
static byte FSTORE
           
static byte FSTORE_0
           
static byte FSTORE_1
           
static byte FSTORE_2
           
static byte FSTORE_3
           
static byte FSUB
           
static byte GETFIELD
           
static byte GETSTATIC
           
static byte GOTO
           
static byte GOTO_W
           
static byte I2B
           
static byte I2C
           
static byte I2D
           
static byte I2F
           
static byte I2L
           
static byte I2S
           
static byte IADD
           
static byte IALOAD
           
static byte IAND
           
static byte IASTORE
           
static byte ICONST_0
           
static byte ICONST_1
           
static byte ICONST_2
           
static byte ICONST_3
           
static byte ICONST_4
           
static byte ICONST_5
           
static byte ICONST_M1
           
static byte IDIV
           
static byte IF_ACMPEQ
           
static byte IF_ACMPNE
           
static byte IF_ICMPEQ
           
static byte IF_ICMPGE
           
static byte IF_ICMPGT
           
static byte IF_ICMPLE
           
static byte IF_ICMPLT
           
static byte IF_ICMPNE
           
static byte IFEQ
           
static byte IFGE
           
static byte IFGT
           
static byte IFLE
           
static byte IFLT
           
static byte IFNE
           
static byte IFNONNULL
           
static byte IFNULL
           
static byte IINC
           
static byte ILOAD
           
static byte ILOAD_0
           
static byte ILOAD_1
           
static byte ILOAD_2
           
static byte ILOAD_3
           
static byte IMUL
           
static byte INEG
           
static byte INSTANCEOF
           
static byte INVOKEINTERFACE
           
static byte INVOKESPECIAL
           
static byte INVOKESTATIC
           
static byte INVOKEVIRTUAL
           
static byte IOR
           
static byte IREM
           
static byte IRETURN
           
static byte ISHL
           
static byte ISHR
           
static byte ISTORE
           
static byte ISTORE_0
           
static byte ISTORE_1
           
static byte ISTORE_2
           
static byte ISTORE_3
           
static byte ISUB
           
static byte IUSHR
           
static byte IXOR
           
static byte JSR
           
static byte JSR_W
           
static byte L2D
           
static byte L2F
           
static byte L2I
           
static byte LADD
           
static byte LALOAD
           
static byte LAND
           
static byte LASTORE
           
static byte LCMP
           
static byte LCONST_0
           
static byte LCONST_1
           
static byte LDC
           
static byte LDC_W
           
static byte LDC2_W
           
static byte LDIV
           
static byte LLOAD
           
static byte LLOAD_0
           
static byte LLOAD_1
           
static byte LLOAD_2
           
static byte LLOAD_3
           
static byte LMUL
           
static byte LNEG
           
static byte LOOKUPSWITCH
           
static byte LOR
           
static byte LREM
           
static byte LRETURN
           
static byte LSHL
           
static byte LSHR
           
static byte LSTORE
           
static byte LSTORE_0
           
static byte LSTORE_1
           
static byte LSTORE_2
           
static byte LSTORE_3
           
static byte LSUB
           
static byte LUSHR
           
static byte LXOR
           
static byte MONITORENTER
           
static byte MONITOREXIT
           
static byte MULTIANEWARRAY
           
static byte NEW
           
static byte NEWARRAY
           
static byte NOP
           
static byte POP
           
static byte POP2
           
static byte PUTFIELD
           
static byte PUTSTATIC
           
static byte RET
           
static byte RETURN
           
static byte SALOAD
           
static byte SASTORE
           
static byte SIPUSH
           
static byte SWAP
           
static byte TABLESWITCH
           
static byte UNUSED
           
static byte WIDE
           
 
Constructor Summary
Opcode()
           
 
Method Summary
static java.lang.String getMnemonic(byte opcode)
           
static byte reverseIfOpcode(byte opcode)
          Reverses the condition for an "if" opcode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOP

public static final byte NOP

ACONST_NULL

public static final byte ACONST_NULL

ICONST_M1

public static final byte ICONST_M1

ICONST_0

public static final byte ICONST_0

ICONST_1

public static final byte ICONST_1

ICONST_2

public static final byte ICONST_2

ICONST_3

public static final byte ICONST_3

ICONST_4

public static final byte ICONST_4

ICONST_5

public static final byte ICONST_5

LCONST_0

public static final byte LCONST_0

LCONST_1

public static final byte LCONST_1

FCONST_0

public static final byte FCONST_0

FCONST_1

public static final byte FCONST_1

FCONST_2

public static final byte FCONST_2

DCONST_0

public static final byte DCONST_0

DCONST_1

public static final byte DCONST_1

BIPUSH

public static final byte BIPUSH

SIPUSH

public static final byte SIPUSH

LDC

public static final byte LDC

LDC_W

public static final byte LDC_W

LDC2_W

public static final byte LDC2_W

ILOAD

public static final byte ILOAD

LLOAD

public static final byte LLOAD

FLOAD

public static final byte FLOAD

DLOAD

public static final byte DLOAD

ALOAD

public static final byte ALOAD

ILOAD_0

public static final byte ILOAD_0

ILOAD_1

public static final byte ILOAD_1

ILOAD_2

public static final byte ILOAD_2

ILOAD_3

public static final byte ILOAD_3

LLOAD_0

public static final byte LLOAD_0

LLOAD_1

public static final byte LLOAD_1

LLOAD_2

public static final byte LLOAD_2

LLOAD_3

public static final byte LLOAD_3

FLOAD_0

public static final byte FLOAD_0

FLOAD_1

public static final byte FLOAD_1

FLOAD_2

public static final byte FLOAD_2

FLOAD_3

public static final byte FLOAD_3

DLOAD_0

public static final byte DLOAD_0

DLOAD_1

public static final byte DLOAD_1

DLOAD_2

public static final byte DLOAD_2

DLOAD_3

public static final byte DLOAD_3

ALOAD_0

public static final byte ALOAD_0

ALOAD_1

public static final byte ALOAD_1

ALOAD_2

public static final byte ALOAD_2

ALOAD_3

public static final byte ALOAD_3

IALOAD

public static final byte IALOAD

LALOAD

public static final byte LALOAD

FALOAD

public static final byte FALOAD

DALOAD

public static final byte DALOAD

AALOAD

public static final byte AALOAD

BALOAD

public static final byte BALOAD

CALOAD

public static final byte CALOAD

SALOAD

public static final byte SALOAD

ISTORE

public static final byte ISTORE

LSTORE

public static final byte LSTORE

FSTORE

public static final byte FSTORE

DSTORE

public static final byte DSTORE

ASTORE

public static final byte ASTORE

ISTORE_0

public static final byte ISTORE_0

ISTORE_1

public static final byte ISTORE_1

ISTORE_2

public static final byte ISTORE_2

ISTORE_3

public static final byte ISTORE_3

LSTORE_0

public static final byte LSTORE_0

LSTORE_1

public static final byte LSTORE_1

LSTORE_2

public static final byte LSTORE_2

LSTORE_3

public static final byte LSTORE_3

FSTORE_0

public static final byte FSTORE_0

FSTORE_1

public static final byte FSTORE_1

FSTORE_2

public static final byte FSTORE_2

FSTORE_3

public static final byte FSTORE_3

DSTORE_0

public static final byte DSTORE_0

DSTORE_1

public static final byte DSTORE_1

DSTORE_2

public static final byte DSTORE_2

DSTORE_3

public static final byte DSTORE_3

ASTORE_0

public static final byte ASTORE_0

ASTORE_1

public static final byte ASTORE_1

ASTORE_2

public static final byte ASTORE_2

ASTORE_3

public static final byte ASTORE_3

IASTORE

public static final byte IASTORE

LASTORE

public static final byte LASTORE

FASTORE

public static final byte FASTORE

DASTORE

public static final byte DASTORE

AASTORE

public static final byte AASTORE

BASTORE

public static final byte BASTORE

CASTORE

public static final byte CASTORE

SASTORE

public static final byte SASTORE

POP

public static final byte POP

POP2

public static final byte POP2

DUP

public static final byte DUP

DUP_X1

public static final byte DUP_X1

DUP_X2

public static final byte DUP_X2

DUP2

public static final byte DUP2

DUP2_X1

public static final byte DUP2_X1

DUP2_X2

public static final byte DUP2_X2

SWAP

public static final byte SWAP

IADD

public static final byte IADD

LADD

public static final byte LADD

FADD

public static final byte FADD

DADD

public static final byte DADD

ISUB

public static final byte ISUB

LSUB

public static final byte LSUB

FSUB

public static final byte FSUB

DSUB

public static final byte DSUB

IMUL

public static final byte IMUL

LMUL

public static final byte LMUL

FMUL

public static final byte FMUL

DMUL

public static final byte DMUL

IDIV

public static final byte IDIV

LDIV

public static final byte LDIV

FDIV

public static final byte FDIV

DDIV

public static final byte DDIV

IREM

public static final byte IREM

LREM

public static final byte LREM

FREM

public static final byte FREM

DREM

public static final byte DREM

INEG

public static final byte INEG

LNEG

public static final byte LNEG

FNEG

public static final byte FNEG

DNEG

public static final byte DNEG

ISHL

public static final byte ISHL

LSHL

public static final byte LSHL

ISHR

public static final byte ISHR

LSHR

public static final byte LSHR

IUSHR

public static final byte IUSHR

LUSHR

public static final byte LUSHR

IAND

public static final byte IAND

LAND

public static final byte LAND

IOR

public static final byte IOR

LOR

public static final byte LOR

IXOR

public static final byte IXOR

LXOR

public static final byte LXOR

IINC

public static final byte IINC

I2L

public static final byte I2L

I2F

public static final byte I2F

I2D

public static final byte I2D

L2I

public static final byte L2I

L2F

public static final byte L2F

L2D

public static final byte L2D

F2I

public static final byte F2I

F2L

public static final byte F2L

F2D

public static final byte F2D

D2I

public static final byte D2I

D2L

public static final byte D2L

D2F

public static final byte D2F

I2B

public static final byte I2B

I2C

public static final byte I2C

I2S

public static final byte I2S

LCMP

public static final byte LCMP

FCMPL

public static final byte FCMPL

FCMPG

public static final byte FCMPG

DCMPL

public static final byte DCMPL

DCMPG

public static final byte DCMPG

IFEQ

public static final byte IFEQ

IFNE

public static final byte IFNE

IFLT

public static final byte IFLT

IFGE

public static final byte IFGE

IFGT

public static final byte IFGT

IFLE

public static final byte IFLE

IF_ICMPEQ

public static final byte IF_ICMPEQ

IF_ICMPNE

public static final byte IF_ICMPNE

IF_ICMPLT

public static final byte IF_ICMPLT

IF_ICMPGE

public static final byte IF_ICMPGE

IF_ICMPGT

public static final byte IF_ICMPGT

IF_ICMPLE

public static final byte IF_ICMPLE

IF_ACMPEQ

public static final byte IF_ACMPEQ

IF_ACMPNE

public static final byte IF_ACMPNE

GOTO

public static final byte GOTO

JSR

public static final byte JSR

RET

public static final byte RET

TABLESWITCH

public static final byte TABLESWITCH

LOOKUPSWITCH

public static final byte LOOKUPSWITCH

IRETURN

public static final byte IRETURN

LRETURN

public static final byte LRETURN

FRETURN

public static final byte FRETURN

DRETURN

public static final byte DRETURN

ARETURN

public static final byte ARETURN

RETURN

public static final byte RETURN

GETSTATIC

public static final byte GETSTATIC

PUTSTATIC

public static final byte PUTSTATIC

GETFIELD

public static final byte GETFIELD

PUTFIELD

public static final byte PUTFIELD

INVOKEVIRTUAL

public static final byte INVOKEVIRTUAL

INVOKESPECIAL

public static final byte INVOKESPECIAL

INVOKESTATIC

public static final byte INVOKESTATIC

INVOKEINTERFACE

public static final byte INVOKEINTERFACE

UNUSED

public static final byte UNUSED

NEW

public static final byte NEW

NEWARRAY

public static final byte NEWARRAY

ANEWARRAY

public static final byte ANEWARRAY

ARRAYLENGTH

public static final byte ARRAYLENGTH

ATHROW

public static final byte ATHROW

CHECKCAST

public static final byte CHECKCAST

INSTANCEOF

public static final byte INSTANCEOF

MONITORENTER

public static final byte MONITORENTER

MONITOREXIT

public static final byte MONITOREXIT

WIDE

public static final byte WIDE

MULTIANEWARRAY

public static final byte MULTIANEWARRAY

IFNULL

public static final byte IFNULL

IFNONNULL

public static final byte IFNONNULL

GOTO_W

public static final byte GOTO_W

JSR_W

public static final byte JSR_W

BREAKPOINT

public static final byte BREAKPOINT
Constructor Detail

Opcode

public Opcode()
Method Detail

getMnemonic

public static final java.lang.String getMnemonic(byte opcode)
                                          throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException - if opcode is invalid

reverseIfOpcode

public static final byte reverseIfOpcode(byte opcode)
Reverses the condition for an "if" opcode. i.e. IFEQ is changed to IFNE.