|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.m2m.atl.engine.emfvm.Bytecode
public class Bytecode
Defines the ATL VM bytecodes.
Field Summary | |
---|---|
static int |
CALL
Call a method. |
static int |
DELETE
Deletes an element. |
static int |
DUP
Duplicate the top operand stack value. |
static int |
DUP_X1
Duplicate the top operand stack value and insert two values down. |
static int |
ENDITERATE
Delimitate the end of iteration on collection elements. |
static int |
FINDME
Fetch a classifier. |
static int |
GET
Fetch field from object. |
static int |
GETASM
Fetch the asm element. |
static int |
GOTO
Branch always. |
static int |
IF
Branch if boolean value b is true. |
static int |
ITERATE
Delimitate the beginning of iteration on collection elements. |
static int |
LOAD
Load value from local variable. |
static int |
NEW
Call a method. |
static java.lang.String[] |
OPCODENAMES
List of codes. |
static int |
POP
Pop the top operand stack value. |
static int |
PUSH
Push string constant. |
static int |
PUSHD
Push double constant. |
static int |
PUSHF
Push false boolean constant. |
static int |
PUSHI
Push int constant. |
static int |
PUSHT
Push true boolean constant. |
static int |
SET
Set field in object. |
static int |
STORE
Store value into local variable. |
static int |
SWAP
Swap the two top operand stack values. |
Constructor Summary | |
---|---|
Bytecode(java.lang.String opcode)
Bytecode constructor, for bytecodes which needs an operand. |
|
Bytecode(java.lang.String opcode,
java.lang.String operand)
Bytecode constructor, for bytecodes which needs an operand. |
Method Summary | |
---|---|
int |
getOpcode()
|
java.lang.Object |
getOperand()
|
int |
getValue()
|
int |
getValue2()
|
void |
setOperand(java.lang.Object operand)
|
void |
setValue(int value)
|
void |
setValue2(int value2)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PUSH
public static final int PUSHI
public static final int PUSHD
public static final int PUSHT
public static final int PUSHF
public static final int CALL
public static final int LOAD
public static final int STORE
public static final int NEW
public static final int ITERATE
public static final int ENDITERATE
public static final int DUP
public static final int SET
public static final int GET
public static final int POP
public static final int GETASM
public static final int IF
public static final int GOTO
public static final int SWAP
public static final int FINDME
public static final int DUP_X1
public static final int DELETE
public static final java.lang.String[] OPCODENAMES
Constructor Detail |
---|
public Bytecode(java.lang.String opcode)
opcode
- the bytecode namepublic Bytecode(java.lang.String opcode, java.lang.String operand)
opcode
- the bytecode nameoperand
- the operandMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int getOpcode()
public java.lang.Object getOperand()
public void setOperand(java.lang.Object operand)
public int getValue()
public int getValue2()
public void setValue2(int value2)
public void setValue(int value)
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |