org.globus.cog.karajan.stack
Interface VariableStack

All Known Implementing Classes:
FastStack, LinkedStack

public interface VariableStack


Method Summary
 VariableStack copy()
           
 StackFrame currentFrame()
           
 void dumpAll()
           
 void enter()
           
 void exportVar(String name)
           
 StackFrame firstFrame()
           
 int frameCount()
           
 List getAllVars(String name)
           
 boolean getBooleanVar(String name)
           
 Object getDeepVar(String name)
           
 ExecutionContext getExecutionContext()
           
 StackFrame getFrame(int frame)
           
 Object getGlobal(String name)
           
 int getIntVar(String name)
           
 Regs getRegs()
           
 Object getShallowVar(String name)
           
 Object getVar(String name)
           
 String getVarAsString(String varName)
           
 Object getVarFromFrame(String name, int skipCount)
           
 boolean isDefined(String varName)
           
 void leave()
           
 VariableStack newInstance()
           
 StackFrame parentFrame()
           
 void setBarrier()
           
 void setGlobal(String name, Object value)
           
 void setVar(String name, boolean value)
           
 void setVar(String name, int value)
           
 void setVar(String name, Object value)
           
 String toString()
           
 

Method Detail

enter

void enter()

leave

void leave()

frameCount

int frameCount()

isDefined

boolean isDefined(String varName)

getVar

Object getVar(String name)
              throws VariableNotFoundException
Throws:
VariableNotFoundException

getDeepVar

Object getDeepVar(String name)
                  throws VariableNotFoundException
Throws:
VariableNotFoundException

getShallowVar

Object getShallowVar(String name)
                     throws VariableNotFoundException
Throws:
VariableNotFoundException

getVarFromFrame

Object getVarFromFrame(String name,
                       int skipCount)
                       throws VariableNotFoundException
Throws:
VariableNotFoundException

getAllVars

List getAllVars(String name)

getVarAsString

String getVarAsString(String varName)
                      throws VariableNotFoundException
Throws:
VariableNotFoundException

currentFrame

StackFrame currentFrame()

parentFrame

StackFrame parentFrame()

firstFrame

StackFrame firstFrame()

getFrame

StackFrame getFrame(int frame)

setVar

void setVar(String name,
            Object value)

exportVar

void exportVar(String name)

copy

VariableStack copy()

toString

String toString()
Overrides:
toString in class Object

dumpAll

void dumpAll()

setVar

void setVar(String name,
            int value)

getIntVar

int getIntVar(String name)
              throws VariableNotFoundException
Throws:
VariableNotFoundException

setVar

void setVar(String name,
            boolean value)

getBooleanVar

boolean getBooleanVar(String name)
                      throws VariableNotFoundException
Throws:
VariableNotFoundException

setBarrier

void setBarrier()

setGlobal

void setGlobal(String name,
               Object value)

getGlobal

Object getGlobal(String name)

newInstance

VariableStack newInstance()

getRegs

Regs getRegs()

getExecutionContext

ExecutionContext getExecutionContext()