Package org.qdl_lang.parsing
Class QDLInterpreter
- java.lang.Object
- 
- org.qdl_lang.parsing.QDLInterpreter
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class QDLInterpreter extends Object implements Serializable This is a facade for the various components of the parser and lexer. It allows you to execute commands one at a time.
 Generally you want to use this for parsing.
 Created by Jeff Gaynor 
 on 1/11/20 at 4:46 PM- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description QDLInterpreter(edu.uiuc.ncsa.security.core.configuration.XProperties environment, State state)QDLInterpreter(State state)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description QDLRunnerexecute(Reader r)QDLRunnerexecute(Reader r, boolean startProcess, SIInterrupts siInterrupts, boolean noInterrupt)QDLRunnerexecute(String line)Creates a new parser.voidexecute(String line, boolean startProcess, SIInterrupts siInterrupts, boolean noInterrupt)voidexecute(List<String> lines)voidexecute(List<String> lines, SIInterrupts siInterrupts, boolean noInterrupt)StategetState()booleanisDebugOn()booleanisEchoModeOn()booleanisPrettyPrint()voidsetDebugOn(boolean debugOn)voidsetEchoModeOn(boolean echoModeOn)voidsetPrettyPrint(boolean prettyPrint)
 
- 
- 
- 
Method Detail- 
isDebugOnpublic boolean isDebugOn() 
 - 
setDebugOnpublic void setDebugOn(boolean debugOn) 
 - 
isEchoModeOnpublic boolean isEchoModeOn() 
 - 
setEchoModeOnpublic void setEchoModeOn(boolean echoModeOn) 
 - 
executepublic QDLRunner execute(String line) throws Throwable Creates a new parser. NOTE Antlr really sucks at unbuffered input, so the official way to try and do this is to create a new parser each time, but we manage the state in between. For working directly from the command line this is ok but does not scale in any way.- Throws:
- Throwable
 
 - 
executepublic void execute(String line, boolean startProcess, SIInterrupts siInterrupts, boolean noInterrupt) throws Throwable - Throws:
- Throwable
 
 - 
executepublic void execute(List<String> lines, SIInterrupts siInterrupts, boolean noInterrupt) throws Throwable - Throws:
- Throwable
 
 - 
executepublic QDLRunner execute(Reader r, boolean startProcess, SIInterrupts siInterrupts, boolean noInterrupt) throws Throwable - Throws:
- Throwable
 
 - 
isPrettyPrintpublic boolean isPrettyPrint() 
 - 
setPrettyPrintpublic void setPrettyPrint(boolean prettyPrint) 
 - 
getStatepublic State getState() 
 
- 
 
-