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 Summary
Constructors Constructor Description QDLInterpreter(edu.uiuc.ncsa.security.core.configuration.XProperties environment, State state)
QDLInterpreter(State state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QDLRunner
execute(Reader r)
void
execute(String line)
Creates a new parser.void
execute(List<String> lines)
State
getState()
boolean
isDebugOn()
boolean
isEchoModeOn()
boolean
isPrettyPrint()
void
setDebugOn(boolean debugOn)
void
setEchoModeOn(boolean echoModeOn)
void
setPrettyPrint(boolean prettyPrint)
-
-
-
Method Detail
-
isDebugOn
public boolean isDebugOn()
-
setDebugOn
public void setDebugOn(boolean debugOn)
-
isEchoModeOn
public boolean isEchoModeOn()
-
setEchoModeOn
public void setEchoModeOn(boolean echoModeOn)
-
execute
public void 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
-
isPrettyPrint
public boolean isPrettyPrint()
-
setPrettyPrint
public void setPrettyPrint(boolean prettyPrint)
-
getState
public State getState()
-
-