Package org.apache.drill.common.parser
Class LogicalExpressionParser
java.lang.Object
org.apache.drill.common.parser.LogicalExpressionParser
Helper class for parsing logical expression.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LogicalExpression
Initializes logical expression lexer and parser, add error listener that converts all syntax error intoExpressionParsingException
.
-
Constructor Details
-
LogicalExpressionParser
public LogicalExpressionParser()
-
-
Method Details
-
parse
Initializes logical expression lexer and parser, add error listener that converts all syntax error intoExpressionParsingException
. Parses given expression into logical expression instance.- Parameters:
expr
- expression to be parsed- Returns:
- logical expression instance
-