Package org.qdl_lang.parsing
Class QDLRunner
- java.lang.Object
-
- org.qdl_lang.parsing.QDLRunner
-
- All Implemented Interfaces:
Serializable
public class QDLRunner extends Object implements Serializable
/** The main class that runs a parse treeCreated by Jeff Gaynor
on 1/22/20 at 6:15 AM- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Element>getElements()QDLInterpretergetInterpreter()ObjectgetLastResult()BooleangetPrettyPrint()StategetState()booleanisEchoModeOn()voidrestart(SIEntry siEntry, SIInterrupts siInterrupts, boolean noInterrupt)voidrun()voidrun(boolean startProcess, SIInterrupts siInterrupts, boolean noInterrupt)For running a buffer that may have breakpoints setprotected voidrun(int startIndex, State currentState, boolean startProcess, SIInterrupts siInterrupts, boolean noInterrupt)voidsetEchoModeOn(boolean echoModeOn)voidsetElements(ArrayList<Element> elements)voidsetInterpreter(QDLInterpreter interpreter)voidsetLastResult(Object lastResult)voidsetPrettyPrint(Boolean prettyPrint)voidsetState(State state)You may inject state at runtime if you need this to start with some existing state.
-
-
-
Method Detail
-
isEchoModeOn
public boolean isEchoModeOn()
-
setEchoModeOn
public void setEchoModeOn(boolean echoModeOn)
-
getState
public State getState()
-
getPrettyPrint
public Boolean getPrettyPrint()
-
setPrettyPrint
public void setPrettyPrint(Boolean prettyPrint)
-
setState
public void setState(State state)
You may inject state at runtime if you need this to start with some existing state.- Parameters:
state-
-
getInterpreter
public QDLInterpreter getInterpreter()
-
setInterpreter
public void setInterpreter(QDLInterpreter interpreter)
-
run
public void run(boolean startProcess, SIInterrupts siInterrupts, boolean noInterrupt) throws ThrowableFor running a buffer that may have breakpoints set- Parameters:
siInterrupts-noInterrupt-- Throws:
Throwable
-
restart
public void restart(SIEntry siEntry, SIInterrupts siInterrupts, boolean noInterrupt) throws Throwable
- Throws:
Throwable
-
getLastResult
public Object getLastResult()
-
setLastResult
public void setLastResult(Object lastResult)
-
run
protected void run(int startIndex, State currentState, boolean startProcess, SIInterrupts siInterrupts, boolean noInterrupt) throws Throwable- Throws:
Throwable
-
-