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
FieldsModifier and TypeFieldDescriptionstatic final intCall a method.static final intDeletes an element.static final intDuplicate the top operand stack value.static final intDuplicate the top operand stack value and insert two values down.static final intDelimitate the end of iteration on collection elements.static final intFetch a classifier.static final intFetch field from object.static final intFetch the asm element.static final intBranch always.static final intBranch if boolean value b is true.static final intDelimitate the beginning of iteration on collection elements.static final intLoad value from local variable.static final intCreates a new element.static final intCreates a new element in the specified model.static final String[]List of codes.static final intCall a procedure (i.e., an operation with no returned value).static final intPop the top operand stack value.static final intPush string constant.static final intPush double constant.static final intPush false boolean constant.static final intPush int constant.static final intPush true boolean constant.static final intSet field in object.static final intStore value into local variable.static final intSwap the two top operand stack values. -
Constructor Summary
Constructors -
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