Class LogicalExpressionParser

java.lang.Object
org.apache.drill.common.parser.LogicalExpressionParser

public class LogicalExpressionParser extends Object
Helper class for parsing logical expression.
  • Constructor Details

    • LogicalExpressionParser

      public LogicalExpressionParser()
  • Method Details

    • parse

      public static LogicalExpression parse(String expr)
      Initializes logical expression lexer and parser, add error listener that converts all syntax error into ExpressionParsingException. Parses given expression into logical expression instance.
      Parameters:
      expr - expression to be parsed
      Returns:
      logical expression instance