T
- public class SimulatedStackframe<T>
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SimulatedStackframe() |
SimulatedStackframe(SimulatedStackframe<T> parent) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(java.lang.String id,
T value)
Add a value to this stackframe
|
void |
addVariables(SimulatedStackframe<T> callResult)
Add all variables and their values in the given frame to this frame
|
SimulatedStackframe<T> |
copyFrame()
Clone this stackframe
|
java.util.ArrayList<java.util.Map.Entry<java.lang.String,T>> |
getContents() |
T |
getValue(java.lang.String id)
Retrieve a value from this stackframe.
|
java.lang.String |
toString() |
public SimulatedStackframe(SimulatedStackframe<T> parent)
public SimulatedStackframe()
public void addValue(java.lang.String id, T value)
id
- ID of the valuevalue
- The actual valuepublic T getValue(java.lang.String id) throws ValueNotInFrameException
id
- ID of the variable value to retrieveValueNotInFrameException
- Is throw if this frame and all parent frames do not contain the id IDpublic SimulatedStackframe<T> copyFrame()
public java.util.ArrayList<java.util.Map.Entry<java.lang.String,T>> getContents()
public void addVariables(SimulatedStackframe<T> callResult)
callResult
- The frame whose contents will be copied into this framepublic java.lang.String toString()
toString
in class java.lang.Object