|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Untamed:
org.erights.e.elang.comtrolLoopMakerAuthor
Method Summary | |
void |
blockAtTop()
Enabled: Called by an E program to stall the interpreter at the next top level expression, until continueAtTop or exitAtTop is called. |
void |
continueAtTop()
Enabled: Allows an E interpreter that has been block(ed)AtTop to continue |
void |
exitAtTop()
Enabled: optProblem defaults to null, indicating success. |
void |
exitAtTop(Throwable optProblem)
Enabled: Causes the E interpreter to exit the next time it's between top-level expression evaluations. |
Object |
getFinalExitStatusVow()
Enabled: Returns a vow which will resolve to the loop's final exit status, once it does exit. |
Object |
getNextExitStatus()
Enabled: |
void |
waitAtTop(Object ref)
Enabled: Blocks until ref is resolved, or until we are made to continue for other reasons. |
Method Detail |
public void blockAtTop()
public void continueAtTop()
public void waitAtTop(Object ref)
public void exitAtTop()
public void exitAtTop(Throwable optProblem)
If optProblem is null, then this is a successful (even if premature) exit. Otherwise, it's an exceptional exit complaining of the problem. For the main interpreter, a normal exit exits with exitCode 0. An exceptional exit complains and exits with exitCode -1.
If block(ed)AtTop, an exitAtTop will happen immediately, rather than waiting for a continueAtTop.
public Object getNextExitStatus()
public Object getFinalExitStatusVow()
While this control loop is still running, the returned finalExitStatusVow will remain unresolved. Once this loop has exited, the vow will be resolved to true for success or a broken reference for failure.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |