Package org.eclipse.m2m.atl.engine.emfvm
Class Bytecode
java.lang.Object
org.eclipse.m2m.atl.engine.emfvm.Bytecode
Defines the ATL VM bytecodes.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Call a method.static final int
Deletes an element.static final int
Duplicate the top operand stack value.static final int
Duplicate the top operand stack value and insert two values down.static final int
Delimitate the end of iteration on collection elements.static final int
Fetch a classifier.static final int
Fetch field from object.static final int
Fetch the asm element.static final int
Branch always.static final int
Branch if boolean value b is true.static final int
Delimitate the beginning of iteration on collection elements.static final int
Load value from local variable.static final int
Creates a new element.static final int
Creates a new element in the specified model.static final String[]
List of codes.static final int
Call a procedure (i.e., an operation with no returned value).static final int
Pop the top operand stack value.static final int
Push string constant.static final int
Push double constant.static final int
Push false boolean constant.static final int
Push int constant.static final int
Push true boolean constant.static final int
Set field in object.static final int
Store value into local variable.static final int
Swap the two top operand stack values. -
Constructor Summary
-
Method Summary
-
Field Details
-
PUSH
public static final int PUSHPush string constant.- See Also:
-
PUSHI
public static final int PUSHIPush int constant.- See Also:
-
PUSHD
public static final int PUSHDPush double constant.- See Also:
-
PUSHT
public static final int PUSHTPush true boolean constant.- See Also:
-
PUSHF
public static final int PUSHFPush false boolean constant.- See Also:
-
CALL
public static final int CALLCall a method.- See Also:
-
LOAD
public static final int LOADLoad value from local variable.- See Also:
-
STORE
public static final int STOREStore value into local variable.- See Also:
-
NEW
public static final int NEWCreates a new element.- See Also:
-
ITERATE
public static final int ITERATEDelimitate the beginning of iteration on collection elements.- See Also:
-
ENDITERATE
public static final int ENDITERATEDelimitate the end of iteration on collection elements.- See Also:
-
DUP
public static final int DUPDuplicate the top operand stack value.- See Also:
-
SET
public static final int SETSet field in object.- See Also:
-
GET
public static final int GETFetch field from object.- See Also:
-
POP
public static final int POPPop the top operand stack value.- See Also:
-
GETASM
public static final int GETASMFetch the asm element.- See Also:
-
IF
public static final int IFBranch if boolean value b is true.- See Also:
-
GOTO
public static final int GOTOBranch always.- See Also:
-
SWAP
public static final int SWAPSwap the two top operand stack values.- See Also:
-
FINDME
public static final int FINDMEFetch a classifier.- See Also:
-
DUP_X1
public static final int DUP_X1Duplicate the top operand stack value and insert two values down.- See Also:
-
DELETE
public static final int DELETEDeletes an element.- See Also:
-
PCALL
public static final int PCALLCall a procedure (i.e., an operation with no returned value).- See Also:
-
NEWIN
public static final int NEWINCreates a new element in the specified model.- See Also:
-
OPCODENAMES
List of codes.
-
-
Constructor Details
-
Bytecode
Bytecode constructor, for bytecodes which needs an operand.- Parameters:
opcode
- the bytecode name
-
Bytecode
Bytecode constructor, for bytecodes which needs an operand.- Parameters:
opcode
- the bytecode nameoperand
- the operand
-
-
Method Details