|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ksu.cis.projects.bogor.module.state.DefaultThreadStore
public class DefaultThreadStore
A class that is used as a thread store.
Field Summary | |
---|---|
protected IValueArray |
localValues
Holds the local values of this thread store. |
protected ArrayList<IValueArray> |
valueStack
Holds the stack of local values of this thread store ArrayList<IValueArray>. |
Constructor Summary | |
---|---|
protected |
DefaultThreadStore()
Private constructor for cloning purposes. |
protected |
DefaultThreadStore(IValueArray localValues)
Default constructor. |
Method Summary | |
---|---|
DefaultThreadStore |
clone(Map<Object,Object> cloneMap)
Deep clone this thread store. |
void |
dispose()
Remove references. |
void |
enterFunction(IValueArray localValues)
Enters a function. |
IValueArray |
exitFunction()
Exits a function for particular thread. |
int |
getLocalCount()
Gets the number of locals. |
IValue |
getLocalValue(int localIndex)
Gets a local's value. |
IValueArray |
getLocalValues()
Gets the local values of this thread store. |
IValueArray[] |
getLocalValuesStack()
Gets local values stack. |
int |
getStackHeight()
Gets local values stack height. |
void |
setLocalValue(int localIndex,
IValue value)
Gets a local's value. |
void |
validate(IBogorConfiguration bc)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ArrayList<IValueArray> valueStack
protected IValueArray localValues
Constructor Detail |
---|
protected DefaultThreadStore(IValueArray localValues)
protected DefaultThreadStore()
Method Detail |
---|
public int getLocalCount()
public void setLocalValue(int localIndex, IValue value)
localIndex
- The index of the local. Must be at least zero and at most less
than the number of locals.value
- The local's value.FSMSymbolTable.getLocalIndexTable()
public IValue getLocalValue(int localIndex)
localIndex
- The index of the local. Must be at least zero and at most less
than the number of locals.
FSMSymbolTable.getLocalIndexTable()
public IValueArray getLocalValues()
public IValueArray[] getLocalValuesStack()
public int getStackHeight()
public DefaultThreadStore clone(Map<Object,Object> cloneMap)
cloneMap
- Original values (IValue
) to their clones (
IValue
) mapping. The clone map to solve
circular references in values.
public void dispose()
Disposable
dispose
in interface Disposable
public void enterFunction(IValueArray localValues)
localValues
- The local values of the function to be entered. Must be
non-null. Each element must be non-null.public IValueArray exitFunction()
public void validate(IBogorConfiguration bc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |