Class AbstractParser

  • All Implemented Interfaces:
    Direct Known Subclasses:
    JDOQLParser, JPQLParser

    public abstract class AbstractParser
    extends Object
    implements Parser
    Abstract query parser. To be extended for the particular query language.
    • Field Detail

      • strict

        protected boolean strict
        Whether to impose strict syntax for the query language.
      • lexer

        protected Lexer lexer
    • Constructor Detail

      • AbstractParser

        public AbstractParser()
    • Method Detail

      • setStrict

        public void setStrict​(boolean flag)
        Specified by:
        setStrict in interface Parser
      • setExplicitParameters

        public void setExplicitParameters​(boolean flag)
        Specified by:
        setExplicitParameters in interface Parser
      • getLastDescendantNodeForNode

        protected static Node getLastDescendantNodeForNode​(Node node)
        Convenience method to navigate down through descendants to find the last one. Uses the first child node each time, so doesn't cope if there are multiple.
        node - The node
        The last descendant