|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.vm.TraceableMachine
public abstract class TraceableMachine
This class provides the basis for a traceable machine. This class provides the skeletal implementation for a function call trace, similar to a Java stack trace.
| Field Summary | |
|---|---|
protected int |
doingIndex
The index of the next value in the doing stack. |
| Constructor Summary | |
|---|---|
TraceableMachine()
|
|
| Method Summary | |
|---|---|
org.millscript.commons.util.IList |
doingList()
Returns a list of function applications, in reverse order. |
void |
enterFunction(java.lang.Object x)
Called when entering a function, this adds the specified object to the function call stack. |
void |
enterUpdater(java.lang.Object x)
Called when entering a function updater. |
void |
exitFunction(java.lang.Object x)
Called when exiting a function, this removes the last object from the function call stack. |
void |
exitUpdater(java.lang.Object x)
Called when exiting a function updater. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int doingIndex
| Constructor Detail |
|---|
public TraceableMachine()
| Method Detail |
|---|
public org.millscript.commons.util.IList doingList()
public void enterFunction(java.lang.Object x)
exitFunction(java.lang.Object).
x - the object to be added to the function call stack, specifically
the function being enteredpublic void exitFunction(java.lang.Object x)
enterFunction(java.lang.Object).
x - the object to be removed from the function call stack,
specifically the function being exited.public void enterUpdater(java.lang.Object x)
x - the object to be entered, e.g. the function whose updater is
being entered.public void exitUpdater(java.lang.Object x)
x - the object to be exited, e.g. the function whose updater is
being exited.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||