Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.chaoswg.xtc4y.classdesc.code.instructions
Class UnaryInstruction  view UnaryInstruction download UnaryInstruction.java

java.lang.Object
  extended bycom.chaoswg.xtc4y.classdesc.code.instructions.Instruction
      extended bycom.chaoswg.xtc4y.classdesc.code.instructions.UnaryInstruction

public class UnaryInstruction
extends Instruction

An unaryinstruction consists only of a command with no operands. the size of such an instruction is 1 byte


Field Summary
static byte AALOAD
          load local object of array at position stored on stack
static byte AASTORE
          store local object of array at position stored on stack
static byte ACONST_NULL
          null
static byte ALOAD_0
          load local object at indexed position
static byte ALOAD_1
           
static byte ALOAD_2
           
static byte ALOAD_3
           
static byte ARETURN
          return an object
static byte ARRAYLENGTH
          Evaluates the length of an array
static byte ASTORE_0
          store local object at indexed position
static byte ASTORE_1
           
static byte ASTORE_2
           
static byte ASTORE_3
           
static byte ATHROW
          throw an exceptions
static byte BALOAD
          load local byte of array at position stored on stack
static byte BASTORE
          store local byte of array at position stored on stack
static byte BREAKPOINT
          a breakpoint
static byte CALOAD
          load local char of array at position stored on stack
static byte CASTORE
          store local char of array at position stored on stack
static byte D2F
          converts the last double value on the stack to a float value
static byte D2I
          converts the last double value on the stack to a int value
static byte D2L
          converts the last double value on the stack to a long value
static byte DADD
          add the last two double values on the stack
static byte DALOAD
          load local double of array at position stored on stack
static byte DASTORE
          store local double of array at position stored on stack
static byte DCMPG
          compare if the second last double value on the stack is greater than the last one
static byte DCMPL
          compare if the second last double value on the stack is lower than the last one
static byte DCONST_0
          constant double value 0
static byte DCONST_1
          constant double value 1
static byte DDIV
          divide the second last from the last double value on the stack
static byte DLOAD_0
          load local double at indexed position
static byte DLOAD_1
           
static byte DLOAD_2
           
static byte DLOAD_3
           
static byte DMUL
          multiplicate the last two double values on the stack
static byte DNEG
          negate the last double value on the stack
static byte DREM
          calculate the modulus of the last to the second last double value on the stack
static byte DRETURN
          return a double value
static byte DSTORE_0
          store local double at indexed position
static byte DSTORE_1
           
static byte DSTORE_2
           
static byte DSTORE_3
           
static byte DSUB
          subtract the last from the second last double value on the stack
static byte DUP
          duplicate the last value on the stack of a byte, char, short, int, flaot or string value
static byte DUP_X1
          duplicate the last value on the stack of a byte, char, short, int, flaot or string value
static byte DUP_X2
          duplicate the last value on the stack of a byte, char, short, int, flaot or string value
static byte DUP2
          duplicate the last value on the stack of a double or float
static byte DUP2_X1
          duplicate the last value on the stack of a double or float
static byte DUP2_X2
          duplicate the last value on the stack of a double or float
static byte F2D
          converts the last float value on the stack to a double value
static byte F2I
          converts the last float value on the stack to a int value
static byte F2L
          converts the last float value on the stack to a long value
static byte FADD
          add the last two float values on the stack
static byte FALOAD
          load local float of array at position stored on stack
static byte FASTORE
          store local float of array at position stored on stack
static byte FCMPG
          compare if the second last float value on the stack is greater than the last one
static byte FCMPL
          compare if the second last float value on the stack is lower than the last one
static byte FCONST_0
          constant float value 0
static byte FCONST_1
          constant float value 1
static byte FCONST_2
          constant float value 2
static byte FDIV
          divide the second last from the last float value on the stack
static byte FLOAD_0
          load local float at indexed position
static byte FLOAD_1
           
static byte FLOAD_2
           
static byte FLOAD_3
           
static byte FMUL
          multiplicate the last two float values on the stack
static byte FNEG
          negate the last float value on the stack
static byte FREM
          calculate the modulus of the last to the second last float value on the stack
static byte FRETURN
          return a float value
static byte FSTORE_0
          store local float at indexed position
static byte FSTORE_1
           
static byte FSTORE_2
           
static byte FSTORE_3
           
static byte FSUB
          subtract the last from the second last float value on the stack
static byte I2B
          converts the last int value on the stack to a byte value
static byte I2C
          converts the last int value on the stack to a char value
static byte I2D
          converts the last int value on the stack to a double value
static byte I2F
          converts the last int value on the stack to a float value
static byte I2L
          converts the last int value on the stack to a long value
static byte I2S
          converts the last int value on the stack to a short value
static byte IADD
          add the last two int values on the stack
static byte IALOAD
          load local int of array at position stored on stack
static byte IAND
          logical And the last two int values on the stack
static byte IASTORE
          store local int of array at position stored on stack
static byte ICONST_0
          constant int value 0
static byte ICONST_1
          constant int value 1
static byte ICONST_2
          constant int value 2
static byte ICONST_3
          constant int value 3
static byte ICONST_4
          constant int value 4
static byte ICONST_5
          constant int value 5
static byte ICONST_M1
          constant int value -1
static byte IDIV
          divide the second last from the last int value on the stack
static byte ILOAD_0
          load local int at indexed position
static byte ILOAD_1
           
static byte ILOAD_2
           
static byte ILOAD_3
           
static byte IMPDEP1
          impdep1
static byte IMPDEP2
          impdep2
static byte IMUL
          multiplicate the last two int values on the stack
static byte INEG
          negate the last int value on the stack
static byte IOR
          logical or the last two int values on the stack
static byte IREM
          calculate the modulus of the last to the second last int value on the stack
static byte IRETURN
          return an int, byte or short value
static byte ISHL
          shift left the last int value on the stack by one byte
static byte ISHR
          shift right the last int value on the stack by one byte
static byte ISTORE_0
          store local int at indexed position
static byte ISTORE_1
           
static byte ISTORE_2
           
static byte ISTORE_3
           
static byte ISUB
          subtract the last from the second last int value on the stack
static byte IUSHR
          unsigned shift right the last int value on the stack by one byte
static byte IXOR
          logical xor the last two int values on the stack
static byte L2D
          converts the last long value on the stack to a double value
static byte L2F
          converts the last long value on the stack to a float value
static byte L2I
          converts the last long value on the stack to a int value
static byte LADD
          add the last two long values on the stack
static byte LALOAD
          load local long of array at position stored on stack
static byte LAND
          logical And the last two long values on the stack
static byte LASTORE
          store local long of array at position stored on stack
static byte LCMP
          compare a two long value
static byte LCONST_0
          constant long value 0
static byte LCONST_1
          constant long value 1
static byte LDIV
          divide the second last from the last long value on the stack
static byte LLOAD_0
          load local long at indexed position
static byte LLOAD_1
           
static byte LLOAD_2
           
static byte LLOAD_3
           
static byte LMUL
          multiplicate the last two long values on the stack
static byte LNEG
          negate the last long value on the stack
static byte LOR
          logical or the last two long values on the stack
static byte LREM
          calculate the modulus of the last to the second last long value on the stack
static byte LRETURN
          return a long value
static byte LSHL
          shift left the last long value on the stack by one byte
static byte LSHR
          shift right the last long value on the stack by one byte
static byte LSTORE_0
          store local long at indexed position
static byte LSTORE_1
           
static byte LSTORE_2
           
static byte LSTORE_3
           
static byte LSUB
          subtract the last from the second last long value on the stack
static byte LUSHR
          unsigned shift right the last long value on the stack by one byte
static byte LXOR
          logical xor the last two long values on the stack
static byte MONITORENTER
          enters a synchronized area
static byte MONITOREXIT
          ends a synchronized area
static byte NOP
          nop (no operation)
static byte POP
          pop last entry of stack for byte, char, short, int, float and string values
static byte POP2
          pop last entry of stack for long and double values
static byte RETURN
          return void
static byte SALOAD
          load local short of array at position stored on stack
static byte SASTORE
          store local short of array at position stored on stack
static byte SWAP
          swap the last two stack entries
static byte WIDE
          reads a wide value
 
Fields inherited from class com.chaoswg.xtc4y.classdesc.code.instructions.Instruction
 
Constructor Summary
UnaryInstruction(byte command)
          Creates an UnaryInstruction and initializes it from a DataInputStream
 
Method Summary
 int getNumberOfUsedBytes()
           
 
Methods inherited from class com.chaoswg.xtc4y.classdesc.code.instructions.Instruction
getCommand, getIndex, getOpcode, resolveIndices, setIndex, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOP

public static final byte NOP
nop (no operation)

See Also:
Constant Field Values

ACONST_NULL

public static final byte ACONST_NULL
null

See Also:
Constant Field Values

ICONST_M1

public static final byte ICONST_M1
constant int value -1

See Also:
Constant Field Values

ICONST_0

public static final byte ICONST_0
constant int value 0

See Also:
Constant Field Values

ICONST_1

public static final byte ICONST_1
constant int value 1

See Also:
Constant Field Values

ICONST_2

public static final byte ICONST_2
constant int value 2

See Also:
Constant Field Values

ICONST_3

public static final byte ICONST_3
constant int value 3

See Also:
Constant Field Values

ICONST_4

public static final byte ICONST_4
constant int value 4

See Also:
Constant Field Values

ICONST_5

public static final byte ICONST_5
constant int value 5

See Also:
Constant Field Values

LCONST_0

public static final byte LCONST_0
constant long value 0

See Also:
Constant Field Values

LCONST_1

public static final byte LCONST_1
constant long value 1

See Also:
Constant Field Values

FCONST_0

public static final byte FCONST_0
constant float value 0

See Also:
Constant Field Values

FCONST_1

public static final byte FCONST_1
constant float value 1

See Also:
Constant Field Values

FCONST_2

public static final byte FCONST_2
constant float value 2

See Also:
Constant Field Values

DCONST_0

public static final byte DCONST_0
constant double value 0

See Also:
Constant Field Values

DCONST_1

public static final byte DCONST_1
constant double value 1

See Also:
Constant Field Values

ILOAD_0

public static final byte ILOAD_0
load local int at indexed position

See Also:
Constant Field Values

ILOAD_1

public static final byte ILOAD_1
See Also:
Constant Field Values

ILOAD_2

public static final byte ILOAD_2
See Also:
Constant Field Values

ILOAD_3

public static final byte ILOAD_3
See Also:
Constant Field Values

LLOAD_0

public static final byte LLOAD_0
load local long at indexed position

See Also:
Constant Field Values

LLOAD_1

public static final byte LLOAD_1
See Also:
Constant Field Values

LLOAD_2

public static final byte LLOAD_2
See Also:
Constant Field Values

LLOAD_3

public static final byte LLOAD_3
See Also:
Constant Field Values

FLOAD_0

public static final byte FLOAD_0
load local float at indexed position

See Also:
Constant Field Values

FLOAD_1

public static final byte FLOAD_1
See Also:
Constant Field Values

FLOAD_2

public static final byte FLOAD_2
See Also:
Constant Field Values

FLOAD_3

public static final byte FLOAD_3
See Also:
Constant Field Values

DLOAD_0

public static final byte DLOAD_0
load local double at indexed position

See Also:
Constant Field Values

DLOAD_1

public static final byte DLOAD_1
See Also:
Constant Field Values

DLOAD_2

public static final byte DLOAD_2
See Also:
Constant Field Values

DLOAD_3

public static final byte DLOAD_3
See Also:
Constant Field Values

ALOAD_0

public static final byte ALOAD_0
load local object at indexed position

See Also:
Constant Field Values

ALOAD_1

public static final byte ALOAD_1
See Also:
Constant Field Values

ALOAD_2

public static final byte ALOAD_2
See Also:
Constant Field Values

ALOAD_3

public static final byte ALOAD_3
See Also:
Constant Field Values

IALOAD

public static final byte IALOAD
load local int of array at position stored on stack

See Also:
Constant Field Values

LALOAD

public static final byte LALOAD
load local long of array at position stored on stack

See Also:
Constant Field Values

FALOAD

public static final byte FALOAD
load local float of array at position stored on stack

See Also:
Constant Field Values

DALOAD

public static final byte DALOAD
load local double of array at position stored on stack

See Also:
Constant Field Values

AALOAD

public static final byte AALOAD
load local object of array at position stored on stack

See Also:
Constant Field Values

BALOAD

public static final byte BALOAD
load local byte of array at position stored on stack

See Also:
Constant Field Values

CALOAD

public static final byte CALOAD
load local char of array at position stored on stack

See Also:
Constant Field Values

SALOAD

public static final byte SALOAD
load local short of array at position stored on stack

See Also:
Constant Field Values

ISTORE_0

public static final byte ISTORE_0
store local int at indexed position

See Also:
Constant Field Values

ISTORE_1

public static final byte ISTORE_1
See Also:
Constant Field Values

ISTORE_2

public static final byte ISTORE_2
See Also:
Constant Field Values

ISTORE_3

public static final byte ISTORE_3
See Also:
Constant Field Values

LSTORE_0

public static final byte LSTORE_0
store local long at indexed position

See Also:
Constant Field Values

LSTORE_1

public static final byte LSTORE_1
See Also:
Constant Field Values

LSTORE_2

public static final byte LSTORE_2
See Also:
Constant Field Values

LSTORE_3

public static final byte LSTORE_3
See Also:
Constant Field Values

FSTORE_0

public static final byte FSTORE_0
store local float at indexed position

See Also:
Constant Field Values

FSTORE_1

public static final byte FSTORE_1
See Also:
Constant Field Values

FSTORE_2

public static final byte FSTORE_2
See Also:
Constant Field Values

FSTORE_3

public static final byte FSTORE_3
See Also:
Constant Field Values

DSTORE_0

public static final byte DSTORE_0
store local double at indexed position

See Also:
Constant Field Values

DSTORE_1

public static final byte DSTORE_1
See Also:
Constant Field Values

DSTORE_2

public static final byte DSTORE_2
See Also:
Constant Field Values

DSTORE_3

public static final byte DSTORE_3
See Also:
Constant Field Values

ASTORE_0

public static final byte ASTORE_0
store local object at indexed position

See Also:
Constant Field Values

ASTORE_1

public static final byte ASTORE_1
See Also:
Constant Field Values

ASTORE_2

public static final byte ASTORE_2
See Also:
Constant Field Values

ASTORE_3

public static final byte ASTORE_3
See Also:
Constant Field Values

IASTORE

public static final byte IASTORE
store local int of array at position stored on stack

See Also:
Constant Field Values

LASTORE

public static final byte LASTORE
store local long of array at position stored on stack

See Also:
Constant Field Values

FASTORE

public static final byte FASTORE
store local float of array at position stored on stack

See Also:
Constant Field Values

DASTORE

public static final byte DASTORE
store local double of array at position stored on stack

See Also:
Constant Field Values

AASTORE

public static final byte AASTORE
store local object of array at position stored on stack

See Also:
Constant Field Values

BASTORE

public static final byte BASTORE
store local byte of array at position stored on stack

See Also:
Constant Field Values

CASTORE

public static final byte CASTORE
store local char of array at position stored on stack

See Also:
Constant Field Values

SASTORE

public static final byte SASTORE
store local short of array at position stored on stack

See Also:
Constant Field Values

POP

public static final byte POP
pop last entry of stack for byte, char, short, int, float and string values

See Also:
Constant Field Values

POP2

public static final byte POP2
pop last entry of stack for long and double values

See Also:
Constant Field Values

DUP

public static final byte DUP
duplicate the last value on the stack of a byte, char, short, int, flaot or string value

See Also:
Constant Field Values

DUP_X1

public static final byte DUP_X1
duplicate the last value on the stack of a byte, char, short, int, flaot or string value

See Also:
Constant Field Values

DUP_X2

public static final byte DUP_X2
duplicate the last value on the stack of a byte, char, short, int, flaot or string value

See Also:
Constant Field Values

DUP2

public static final byte DUP2
duplicate the last value on the stack of a double or float

See Also:
Constant Field Values

DUP2_X1

public static final byte DUP2_X1
duplicate the last value on the stack of a double or float

See Also:
Constant Field Values

DUP2_X2

public static final byte DUP2_X2
duplicate the last value on the stack of a double or float

See Also:
Constant Field Values

SWAP

public static final byte SWAP
swap the last two stack entries

See Also:
Constant Field Values

IADD

public static final byte IADD
add the last two int values on the stack

See Also:
Constant Field Values

LADD

public static final byte LADD
add the last two long values on the stack

See Also:
Constant Field Values

FADD

public static final byte FADD
add the last two float values on the stack

See Also:
Constant Field Values

DADD

public static final byte DADD
add the last two double values on the stack

See Also:
Constant Field Values

ISUB

public static final byte ISUB
subtract the last from the second last int value on the stack

See Also:
Constant Field Values

LSUB

public static final byte LSUB
subtract the last from the second last long value on the stack

See Also:
Constant Field Values

FSUB

public static final byte FSUB
subtract the last from the second last float value on the stack

See Also:
Constant Field Values

DSUB

public static final byte DSUB
subtract the last from the second last double value on the stack

See Also:
Constant Field Values

IMUL

public static final byte IMUL
multiplicate the last two int values on the stack

See Also:
Constant Field Values

LMUL

public static final byte LMUL
multiplicate the last two long values on the stack

See Also:
Constant Field Values

FMUL

public static final byte FMUL
multiplicate the last two float values on the stack

See Also:
Constant Field Values

DMUL

public static final byte DMUL
multiplicate the last two double values on the stack

See Also:
Constant Field Values

IDIV

public static final byte IDIV
divide the second last from the last int value on the stack

See Also:
Constant Field Values

LDIV

public static final byte LDIV
divide the second last from the last long value on the stack

See Also:
Constant Field Values

FDIV

public static final byte FDIV
divide the second last from the last float value on the stack

See Also:
Constant Field Values

DDIV

public static final byte DDIV
divide the second last from the last double value on the stack

See Also:
Constant Field Values

IREM

public static final byte IREM
calculate the modulus of the last to the second last int value on the stack

See Also:
Constant Field Values

LREM

public static final byte LREM
calculate the modulus of the last to the second last long value on the stack

See Also:
Constant Field Values

FREM

public static final byte FREM
calculate the modulus of the last to the second last float value on the stack

See Also:
Constant Field Values

DREM

public static final byte DREM
calculate the modulus of the last to the second last double value on the stack

See Also:
Constant Field Values

INEG

public static final byte INEG
negate the last int value on the stack

See Also:
Constant Field Values

LNEG

public static final byte LNEG
negate the last long value on the stack

See Also:
Constant Field Values

FNEG

public static final byte FNEG
negate the last float value on the stack

See Also:
Constant Field Values

DNEG

public static final byte DNEG
negate the last double value on the stack

See Also:
Constant Field Values

ISHL

public static final byte ISHL
shift left the last int value on the stack by one byte

See Also:
Constant Field Values

LSHL

public static final byte LSHL
shift left the last long value on the stack by one byte

See Also:
Constant Field Values

ISHR

public static final byte ISHR
shift right the last int value on the stack by one byte

See Also:
Constant Field Values

LSHR

public static final byte LSHR
shift right the last long value on the stack by one byte

See Also:
Constant Field Values

IUSHR

public static final byte IUSHR
unsigned shift right the last int value on the stack by one byte

See Also:
Constant Field Values

LUSHR

public static final byte LUSHR
unsigned shift right the last long value on the stack by one byte

See Also:
Constant Field Values

IAND

public static final byte IAND
logical And the last two int values on the stack

See Also:
Constant Field Values

LAND

public static final byte LAND
logical And the last two long values on the stack

See Also:
Constant Field Values

IOR

public static final byte IOR
logical or the last two int values on the stack

See Also:
Constant Field Values

LOR

public static final byte LOR
logical or the last two long values on the stack

See Also:
Constant Field Values

IXOR

public static final byte IXOR
logical xor the last two int values on the stack

See Also:
Constant Field Values

LXOR

public static final byte LXOR
logical xor the last two long values on the stack

See Also:
Constant Field Values

I2L

public static final byte I2L
converts the last int value on the stack to a long value

See Also:
Constant Field Values

I2F

public static final byte I2F
converts the last int value on the stack to a float value

See Also:
Constant Field Values

I2D

public static final byte I2D
converts the last int value on the stack to a double value

See Also:
Constant Field Values

L2I

public static final byte L2I
converts the last long value on the stack to a int value

See Also:
Constant Field Values

L2F

public static final byte L2F
converts the last long value on the stack to a float value

See Also:
Constant Field Values

L2D

public static final byte L2D
converts the last long value on the stack to a double value

See Also:
Constant Field Values

F2I

public static final byte F2I
converts the last float value on the stack to a int value

See Also:
Constant Field Values

F2L

public static final byte F2L
converts the last float value on the stack to a long value

See Also:
Constant Field Values

F2D

public static final byte F2D
converts the last float value on the stack to a double value

See Also:
Constant Field Values

D2I

public static final byte D2I
converts the last double value on the stack to a int value

See Also:
Constant Field Values

D2L

public static final byte D2L
converts the last double value on the stack to a long value

See Also:
Constant Field Values

D2F

public static final byte D2F
converts the last double value on the stack to a float value

See Also:
Constant Field Values

I2B

public static final byte I2B
converts the last int value on the stack to a byte value

See Also:
Constant Field Values

I2C

public static final byte I2C
converts the last int value on the stack to a char value

See Also:
Constant Field Values

I2S

public static final byte I2S
converts the last int value on the stack to a short value

See Also:
Constant Field Values

LCMP

public static final byte LCMP
compare a two long value

See Also:
Constant Field Values

FCMPL

public static final byte FCMPL
compare if the second last float value on the stack is lower than the last one

See Also:
Constant Field Values

FCMPG

public static final byte FCMPG
compare if the second last float value on the stack is greater than the last one

See Also:
Constant Field Values

DCMPL

public static final byte DCMPL
compare if the second last double value on the stack is lower than the last one

See Also:
Constant Field Values

DCMPG

public static final byte DCMPG
compare if the second last double value on the stack is greater than the last one

See Also:
Constant Field Values

IRETURN

public static final byte IRETURN
return an int, byte or short value

See Also:
Constant Field Values

LRETURN

public static final byte LRETURN
return a long value

See Also:
Constant Field Values

FRETURN

public static final byte FRETURN
return a float value

See Also:
Constant Field Values

DRETURN

public static final byte DRETURN
return a double value

See Also:
Constant Field Values

ARETURN

public static final byte ARETURN
return an object

See Also:
Constant Field Values

RETURN

public static final byte RETURN
return void

See Also:
Constant Field Values

ARRAYLENGTH

public static final byte ARRAYLENGTH
Evaluates the length of an array

See Also:
Constant Field Values

ATHROW

public static final byte ATHROW
throw an exceptions

See Also:
Constant Field Values

MONITORENTER

public static final byte MONITORENTER
enters a synchronized area

See Also:
Constant Field Values

MONITOREXIT

public static final byte MONITOREXIT
ends a synchronized area

See Also:
Constant Field Values

WIDE

public static final byte WIDE
reads a wide value

See Also:
Constant Field Values

BREAKPOINT

public static final byte BREAKPOINT
a breakpoint

See Also:
Constant Field Values

IMPDEP1

public static final byte IMPDEP1
impdep1

See Also:
Constant Field Values

IMPDEP2

public static final byte IMPDEP2
impdep2

See Also:
Constant Field Values
Constructor Detail

UnaryInstruction

public UnaryInstruction(byte command)
Creates an UnaryInstruction and initializes it from a DataInputStream

Method Detail

getNumberOfUsedBytes

public final int getNumberOfUsedBytes()
Specified by:
getNumberOfUsedBytes in class Instruction