Note
Opcode descriptions use a rough pseudocode. r
is the result register, x is the first argument,
y is the second argument, and z is the
third argument. The expression which describes
the operation uses Java-ish syntax but is preceded by type indicators for
each of the values.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ADD
|
| public static final int | AGET
|
| public static final int | AND
|
| public static final int | APUT
|
| public static final int | ARRAY_LENGTH
|
| public static final int | CHECK_CAST
|
| public static final int | CMPG
|
| public static final int | CMPL
|
| public static final int | CONST
|
| public static final int | CONV
|
| public static final int | DIV
|
| public static final int | FILL_ARRAY_DATA
|
| public static final int | FILLED_NEW_ARRAY
|
| public static final int | GET_FIELD
|
| public static final int | GET_STATIC
|
| public static final int | GOTO
|
| public static final int | IF_EQ
|
| public static final int | IF_GE
|
| public static final int | IF_GT
|
| public static final int | IF_LE
|
| public static final int | IF_LT
|
| public static final int | IF_NE
|
| public static final int | INSTANCE_OF
|
| public static final int | INVOKE_DIRECT
|
| public static final int | INVOKE_INTERFACE
|
| public static final int | INVOKE_STATIC
|
| public static final int | INVOKE_SUPER
|
| public static final int | INVOKE_VIRTUAL
|
| public static final int | MARK_LOCAL
|
| public static final int | MONITOR_ENTER
|
| public static final int | MONITOR_EXIT
|
| public static final int | MOVE
|
| public static final int | MOVE_EXCEPTION
Note This opcode should only ever be used in the first instruction of a block, and such blocks must be the start of an exception handler. |
| public static final int | MOVE_PARAM
|
| public static final int | MOVE_RESULT
Note This opcode should only ever be used in the first instruction of a block following an invoke-*. |
| public static final int | MOVE_RESULT_PSEUDO
Note This opcode should only ever be used in the first instruction of a block following a non-invoke throwing insn |
| public static final int | MUL
|
| public static final int | NEG
|
| public static final int | NEW_ARRAY
|
| public static final int | NEW_INSTANCE
|
| public static final int | NOP
|
| public static final int | NOT
|
| public static final int | OR
|
| public static final int | PUT_FIELD
|
| public static final int | PUT_STATIC
|
| public static final int | REM
|
| public static final int | RETURN
|
| public static final int | SHL
|
| public static final int | SHR
|
| public static final int | SUB
|
| public static final int | SWITCH
|
| public static final int | THROW
|
| public static final int | TO_BYTE
|
| public static final int | TO_CHAR
|
| public static final int | TO_SHORT
|
| public static final int | USHR
|
| public static final int | XOR
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: flipped IF RegopAn IF_* RegOp opcode)Given an IF_* RegOp, returns the right-to-left flipped version. |
| public static String |
| ADD | back to summary |
|---|---|
| public static final int ADD
| |
| AGET | back to summary |
|---|---|
| public static final int AGET
| |
| AND | back to summary |
|---|---|
| public static final int AND
| |
| APUT | back to summary |
|---|---|
| public static final int APUT
| |
| ARRAY_LENGTH | back to summary |
|---|---|
| public static final int ARRAY_LENGTH
| |
| CHECK_CAST | back to summary |
|---|---|
| public static final int CHECK_CAST
| |
| CMPG | back to summary |
|---|---|
| public static final int CMPG
| |
| CMPL | back to summary |
|---|---|
| public static final int CMPL
| |
| CONST | back to summary |
|---|---|
| public static final int CONST
| |
| CONV | back to summary |
|---|---|
| public static final int CONV
| |
| DIV | back to summary |
|---|---|
| public static final int DIV
| |
| FILL_ARRAY_DATA | back to summary |
|---|---|
| public static final int FILL_ARRAY_DATA
| |
| FILLED_NEW_ARRAY | back to summary |
|---|---|
| public static final int FILLED_NEW_ARRAY
| |
| GET_FIELD | back to summary |
|---|---|
| public static final int GET_FIELD
| |
| GET_STATIC | back to summary |
|---|---|
| public static final int GET_STATIC
| |
| GOTO | back to summary |
|---|---|
| public static final int GOTO
| |
| IF_EQ | back to summary |
|---|---|
| public static final int IF_EQ
| |
| IF_GE | back to summary |
|---|---|
| public static final int IF_GE
| |
| IF_GT | back to summary |
|---|---|
| public static final int IF_GT
| |
| IF_LE | back to summary |
|---|---|
| public static final int IF_LE
| |
| IF_LT | back to summary |
|---|---|
| public static final int IF_LT
| |
| IF_NE | back to summary |
|---|---|
| public static final int IF_NE
| |
| INSTANCE_OF | back to summary |
|---|---|
| public static final int INSTANCE_OF
| |
| INVOKE_DIRECT | back to summary |
|---|---|
| public static final int INVOKE_DIRECT
| |
| INVOKE_INTERFACE | back to summary |
|---|---|
| public static final int INVOKE_INTERFACE
| |
| INVOKE_STATIC | back to summary |
|---|---|
| public static final int INVOKE_STATIC
| |
| INVOKE_SUPER | back to summary |
|---|---|
| public static final int INVOKE_SUPER
| |
| INVOKE_VIRTUAL | back to summary |
|---|---|
| public static final int INVOKE_VIRTUAL
| |
| MARK_LOCAL | back to summary |
|---|---|
| public static final int MARK_LOCAL
| |
| MONITOR_ENTER | back to summary |
|---|---|
| public static final int MONITOR_ENTER
| |
| MONITOR_EXIT | back to summary |
|---|---|
| public static final int MONITOR_EXIT
| |
| MOVE | back to summary |
|---|---|
| public static final int MOVE
| |
| MOVE_EXCEPTION | back to summary |
|---|---|
| public static final int MOVE_EXCEPTION
Note This opcode should only ever be used in the first instruction of a block, and such blocks must be the start of an exception handler. | |
| MOVE_PARAM | back to summary |
|---|---|
| public static final int MOVE_PARAM
| |
| MOVE_RESULT | back to summary |
|---|---|
| public static final int MOVE_RESULT
Note This opcode should only ever be used in the first instruction of a block following an invoke-*. | |
| MOVE_RESULT_PSEUDO | back to summary |
|---|---|
| public static final int MOVE_RESULT_PSEUDO
Note This opcode should only ever be used in the first instruction of a block following a non-invoke throwing insn | |
| MUL | back to summary |
|---|---|
| public static final int MUL
| |
| NEG | back to summary |
|---|---|
| public static final int NEG
| |
| NEW_ARRAY | back to summary |
|---|---|
| public static final int NEW_ARRAY
| |
| NEW_INSTANCE | back to summary |
|---|---|
| public static final int NEW_INSTANCE
| |
| NOP | back to summary |
|---|---|
| public static final int NOP
| |
| NOT | back to summary |
|---|---|
| public static final int NOT
| |
| OR | back to summary |
|---|---|
| public static final int OR
| |
| PUT_FIELD | back to summary |
|---|---|
| public static final int PUT_FIELD
| |
| PUT_STATIC | back to summary |
|---|---|
| public static final int PUT_STATIC
| |
| REM | back to summary |
|---|---|
| public static final int REM
| |
| RETURN | back to summary |
|---|---|
| public static final int RETURN
| |
| SHL | back to summary |
|---|---|
| public static final int SHL
| |
| SHR | back to summary |
|---|---|
| public static final int SHR
| |
| SUB | back to summary |
|---|---|
| public static final int SUB
| |
| SWITCH | back to summary |
|---|---|
| public static final int SWITCH
| |
| THROW | back to summary |
|---|---|
| public static final int THROW
| |
| TO_BYTE | back to summary |
|---|---|
| public static final int TO_BYTE
| |
| TO_CHAR | back to summary |
|---|---|
| public static final int TO_CHAR
| |
| TO_SHORT | back to summary |
|---|---|
| public static final int TO_SHORT
| |
| USHR | back to summary |
|---|---|
| public static final int USHR
| |
| XOR | back to summary |
|---|---|
| public static final int XOR
| |
| RegOps | back to summary |
|---|---|
| private RegOps() This class is uninstantiable. | |
| flippedIfOpcode | back to summary |
|---|---|
| public static int flippedIfOpcode(final int opcode) Given an IF_* RegOp, returns the right-to-left flipped version. For example, IF_GT becomes IF_LT.
| |
| opName | back to summary |
|---|---|
| public static String opName(int opcode) Gets the name of the given opcode.
| |