Class AbstractStackFrame
java.lang.Object
org.eclipse.m2m.atl.engine.emfvm.lib.AbstractStackFrame
- Direct Known Subclasses:
StackFrame
Abstract Stack Frame definition.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractStackFrame
(AbstractStackFrame caller, Operation frameOperation) Creates a new StackFrame.protected
AbstractStackFrame
(ExecEnv execEnv) Creates an empty StackFrame which refers to itsExecEnv
.AbstractStackFrame
(ExecEnv execEnv, ASMModule asmModule, Operation operation) Creates a newAbstractStackFrame
with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionenter()
Makes the tool enter the frame.Returns the local variables map.Object[]
abstract int
Returns the current location.getStack()
Gets a list of the stacks.void
leave()
Makes the tool leave the frame.abstract AbstractStackFrame
Returns a new frame for the given operation.void
setLocalVars
(Object[] localVars)
-
Field Details
-
execEnv
The execution environment. -
caller
-
operation
-
localVars
The local variables list.
-
-
Constructor Details
-
AbstractStackFrame
Creates a newAbstractStackFrame
with the given parameters.- Parameters:
execEnv
- the execution environmentasmModule
- the transformation moduleoperation
- the main operation
-
AbstractStackFrame
Creates a new StackFrame.- Parameters:
caller
- the parent stack frameframeOperation
- the operation
-
AbstractStackFrame
Creates an empty StackFrame which refers to itsExecEnv
.- Parameters:
execEnv
- theExecEnv
-
-
Method Details
-
newFrame
Returns a new frame for the given operation.- Parameters:
frameOperation
- the frame operation- Returns:
- a new frame for the given operation
-
getAsmModule
-
getLocalVars
-
setLocalVars
-
getExecEnv
-
getOperation
-
getCaller
-
getLocalVariables
Returns the local variables map.- Returns:
- the local variables map
-
enter
Makes the tool enter the frame.- Returns:
- self
-
leave
public void leave()Makes the tool leave the frame. -
getStack
Gets a list of the stacks.- Returns:
- the Stack list
-
getSourceLocation
-
getOpName
-
getLocation
public abstract int getLocation()Returns the current location.- Returns:
- the current location
-