Package org.eclipse.m2m.atl.engine.emfvm
Class StackFrame
java.lang.Object
org.eclipse.m2m.atl.engine.emfvm.lib.AbstractStackFrame
org.eclipse.m2m.atl.engine.emfvm.StackFrame
The Stack Frame implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.m2m.atl.engine.emfvm.lib.AbstractStackFrame
AbstractStackFrame.StackSequence
-
Field Summary
Fields inherited from class org.eclipse.m2m.atl.engine.emfvm.lib.AbstractStackFrame
caller, execEnv, localVars, operation
-
Constructor Summary
ModifierConstructorDescriptionStackFrame
(ExecEnv execEnv) Creates an empty StackFrame which refers to itsExecEnv
.StackFrame
(ExecEnv execEnv, ASMModule asmModule, Operation operation) Creates a newStackFrame
with the given parameters.protected
StackFrame
(StackFrame caller, Operation operation) Creates a new StackFrame. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the current location.int
getPc()
protected String
Returns the current location.Returns a new frame for the given operation.resolveVariableName
(int slot) Returns the variable name at the given slot.void
setPc
(int pc) toString()
Methods inherited from class org.eclipse.m2m.atl.engine.emfvm.lib.AbstractStackFrame
enter, getAsmModule, getCaller, getExecEnv, getLocalVariables, getLocalVars, getOperation, getOpName, getSourceLocation, getStack, leave, setLocalVars
-
Constructor Details
-
StackFrame
Creates a newStackFrame
with the given parameters.- Parameters:
execEnv
- the execution environmentasmModule
- the transformation moduleoperation
- the main operation
-
StackFrame
Creates a new StackFrame.- Parameters:
caller
- the parent stack frameoperation
- the operation
-
StackFrame
Creates an empty StackFrame which refers to itsExecEnv
.- Parameters:
execEnv
- theExecEnv
-
-
Method Details
-
newFrame
Returns a new frame for the given operation.- Specified by:
newFrame
in classAbstractStackFrame
- Parameters:
operation
- the frame operation- Returns:
- a new frame for the given operation
- See Also:
-
getStringLocation
Returns the current location.- Returns:
- the current location
-
getLocation
public int getLocation()Returns the current location.- Specified by:
getLocation
in classAbstractStackFrame
- Returns:
- the current location
- See Also:
-
resolveVariableName
Returns the variable name at the given slot.- Parameters:
slot
- the slot- Returns:
- the variable name at the given slot
-
toString
-
getPc
public int getPc() -
setPc
public void setPc(int pc)
-