Class 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 Detail

      • QDLInterpreter

        public QDLInterpreter​(State state)
      • QDLInterpreter

        public QDLInterpreter​(edu.uiuc.ncsa.security.core.configuration.XProperties environment,
                              State state)
    • 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()