Class AbstractStackFrame
java.lang.Object
org.eclipse.m2m.atl.engine.emfvm.lib.AbstractStackFrame
- Direct Known Subclasses:
StackFrame
Abstract Stack Frame definition.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractStackFrame(AbstractStackFrame caller, Operation frameOperation) Creates a new StackFrame.protectedAbstractStackFrame(ExecEnv execEnv) Creates an empty StackFrame which refers to itsExecEnv.AbstractStackFrame(ExecEnv execEnv, ASMModule asmModule, Operation operation) Creates a newAbstractStackFramewith the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionenter()Makes the tool enter the frame.Returns the local variables map.Object[]abstract intReturns the current location.getStack()Gets a list of the stacks.voidleave()Makes the tool leave the frame.abstract AbstractStackFrameReturns a new frame for the given operation.voidsetLocalVars(Object[] localVars)
-
Field Details
-
execEnv
The execution environment. -
caller
-
operation
-
localVars
The local variables list.
-
-
Constructor Details
-
AbstractStackFrame
Creates a newAbstractStackFramewith 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
-