Class WhereCompiler


  • public class WhereCompiler
    extends Object
    Processes a String expression using Antlr, it uses the Where grammar for the public api.
    • Constructor Detail

      • WhereCompiler

        public WhereCompiler()
    • Method Detail

      • compileWhereClause

        public static org.antlr.runtime.tree.CommonTree compileWhereClause​(String expression)
                                                                    throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • compileSelectClause

        public static org.antlr.runtime.tree.CommonTree compileSelectClause​(String selectParam)
                                                                     throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • resolveMessage

        public static String resolveMessage​(org.antlr.runtime.RecognitionException exception)
        Returns a message based on the information in the RecognitionException
        Parameters:
        exception - RecognitionException
        Returns:
        String explaining the error