Class Operation
java.lang.Object
org.eclipse.m2m.atl.engine.emfvm.lib.Operation
- Direct Known Subclasses:
ASMOperation
The abstract Operation class.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Object
exec
(AbstractStackFrame frame) Executes an operation.List<?>
int
getName()
resolveLineNumber
(int l) Returns the line at the specified number.resolveVariableName
(int slot, int l) Resolves a variable name by its slot number and its index.void
-
Field Details
-
maxLocals
protected int maxLocals -
name
-
-
Constructor Details
-
Operation
Creates a new operation.- Parameters:
maxLocals
- max localsname
- the operation name
-
Operation
public Operation(int maxLocals) Deprecated.useOperation(int, String)
insteadCreates a new operation.- Parameters:
maxLocals
- max locals
-
-
Method Details
-
setName
-
exec
Executes an operation.- Parameters:
frame
- the frame for execution- Returns:
- the result
-
getMaxLocals
public int getMaxLocals() -
getName
-
getInstructions
-
resolveLineNumber
Returns the line at the specified number.- Parameters:
l
- the line number- Returns:
- the line at the specified number
-
resolveVariableName
Resolves a variable name by its slot number and its index.- Parameters:
slot
- the slot numberl
- the variable index- Returns:
- the variable name
-
Operation(int, String)
instead