Class AbstractStackFrame
- java.lang.Object
-
- org.eclipse.m2m.atl.engine.emfvm.lib.AbstractStackFrame
-
- Direct Known Subclasses:
StackFrame
public abstract class AbstractStackFrame extends java.lang.ObjectAbstract Stack Frame definition.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAbstractStackFrame.StackSequenceA Sequence ofAbstractStackFrame.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractStackFrame(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
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AbstractStackFrameenter()Makes the tool enter the frame.ASMModulegetAsmModule()AbstractStackFramegetCaller()ExecEnvgetExecEnv()java.util.Map<java.lang.String,java.lang.Object>getLocalVariables()Returns the local variables map.java.lang.Object[]getLocalVars()abstract intgetLocation()Returns the current location.OperationgetOperation()java.lang.StringgetOpName()java.lang.StringgetSourceLocation()AbstractStackFrame.StackSequencegetStack()Gets a list of the stacks.voidleave()Makes the tool leave the frame.abstract AbstractStackFramenewFrame(Operation frameOperation)Returns a new frame for the given operation.voidsetLocalVars(java.lang.Object[] localVars)
-
-
-
Field Detail
-
execEnv
protected ExecEnv execEnv
The execution environment.
-
caller
protected AbstractStackFrame caller
-
operation
protected Operation operation
-
localVars
protected java.lang.Object[] localVars
The local variables list.
-
-
Constructor Detail
-
AbstractStackFrame
public AbstractStackFrame(ExecEnv execEnv, ASMModule asmModule, Operation operation)
Creates a newAbstractStackFramewith the given parameters.- Parameters:
execEnv- the execution environmentasmModule- the transformation moduleoperation- the main operation
-
AbstractStackFrame
protected AbstractStackFrame(AbstractStackFrame caller, Operation frameOperation)
Creates a new StackFrame.- Parameters:
caller- the parent stack frameframeOperation- the operation
-
-
Method Detail
-
newFrame
public abstract AbstractStackFrame newFrame(Operation frameOperation)
Returns a new frame for the given operation.- Parameters:
frameOperation- the frame operation- Returns:
- a new frame for the given operation
-
getAsmModule
public ASMModule getAsmModule()
-
getLocalVars
public java.lang.Object[] getLocalVars()
-
setLocalVars
public void setLocalVars(java.lang.Object[] localVars)
-
getExecEnv
public ExecEnv getExecEnv()
-
getOperation
public Operation getOperation()
-
getCaller
public AbstractStackFrame getCaller()
-
getLocalVariables
public java.util.Map<java.lang.String,java.lang.Object> getLocalVariables()
Returns the local variables map.- Returns:
- the local variables map
-
enter
public AbstractStackFrame enter()
Makes the tool enter the frame.- Returns:
- self
-
leave
public void leave()
Makes the tool leave the frame.
-
getStack
public AbstractStackFrame.StackSequence getStack()
Gets a list of the stacks.- Returns:
- the Stack list
-
getSourceLocation
public java.lang.String getSourceLocation()
-
getOpName
public java.lang.String getOpName()
-
getLocation
public abstract int getLocation()
Returns the current location.- Returns:
- the current location
-
-