T
- public class SimulatedStackframe<T> extends Object implements Serializable
Constructor and Description |
---|
SimulatedStackframe() |
SimulatedStackframe(SimulatedStackframe<T> parent) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(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
|
ArrayList<Map.Entry<String,T>> |
getContents() |
T |
getValue(String id)
Retrieve a value from this stackframe.
|
public SimulatedStackframe(SimulatedStackframe<T> parent)
public SimulatedStackframe()
public void addValue(String id, T value)
id
- ID of the valuevalue
- The actual valuepublic T getValue(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 ArrayList<Map.Entry<String,T>> getContents()
public void addVariables(SimulatedStackframe<T> callResult)
callResult
- The frame whose contents will be copied into this frame