org.globus.cog.karajan.stack
Class FastStack
java.lang.Object
org.globus.cog.karajan.stack.FastStack
- All Implemented Interfaces:
- VariableStack
- public final class FastStack
- extends Object
- implements VariableStack
last
public Throwable last
FastStack
public FastStack()
newInstance
public VariableStack newInstance()
- Specified by:
newInstance in interface VariableStack
enter
public void enter()
- Specified by:
enter in interface VariableStack
leave
public void leave()
- Specified by:
leave in interface VariableStack
frameCount
public int frameCount()
- Specified by:
frameCount in interface VariableStack
getFrame
public StackFrame getFrame(int index)
- Specified by:
getFrame in interface VariableStack
isDefined
public boolean isDefined(String varName)
- Specified by:
isDefined in interface VariableStack
_getVarFromFrame
public Object _getVarFromFrame(String name,
int index)
throws VariableNotFoundException
- Throws:
VariableNotFoundException
getVarFromFrame
public Object getVarFromFrame(String name,
int index)
throws VariableNotFoundException
- Specified by:
getVarFromFrame in interface VariableStack
- Throws:
VariableNotFoundException
getVar
public Object getVar(String name)
throws VariableNotFoundException
- Specified by:
getVar in interface VariableStack
- Throws:
VariableNotFoundException
getAllVars
public List getAllVars(String name)
- Specified by:
getAllVars in interface VariableStack
getVarAsString
public String getVarAsString(String varName)
throws VariableNotFoundException
- Specified by:
getVarAsString in interface VariableStack
- Throws:
VariableNotFoundException
currentFrame
public StackFrame currentFrame()
- Specified by:
currentFrame in interface VariableStack
parentFrame
public StackFrame parentFrame()
- Specified by:
parentFrame in interface VariableStack
firstFrame
public StackFrame firstFrame()
- Specified by:
firstFrame in interface VariableStack
setVar
public void setVar(String name,
Object value)
- Specified by:
setVar in interface VariableStack
exportVar
public void exportVar(String name)
- Specified by:
exportVar in interface VariableStack
copy
public VariableStack copy()
- Specified by:
copy in interface VariableStack
toString
public String toString()
- Specified by:
toString in interface VariableStack
dumpAll
public void dumpAll()
- Specified by:
dumpAll in interface VariableStack
setVar
public void setVar(String name,
int value)
- Specified by:
setVar in interface VariableStack
getIntVar
public int getIntVar(String name)
throws VariableNotFoundException
- Specified by:
getIntVar in interface VariableStack
- Throws:
VariableNotFoundException
setVar
public void setVar(String name,
boolean value)
- Specified by:
setVar in interface VariableStack
getBooleanVar
public boolean getBooleanVar(String name)
throws VariableNotFoundException
- Specified by:
getBooleanVar in interface VariableStack
- Throws:
VariableNotFoundException
setBarrier
public void setBarrier()
- Specified by:
setBarrier in interface VariableStack
setGlobal
public void setGlobal(String name,
Object value)
- Specified by:
setGlobal in interface VariableStack
getGlobal
public Object getGlobal(String name)
- Specified by:
getGlobal in interface VariableStack
trace
public String trace()
- Specified by:
trace in interface VariableStack