Package org.drools.drl.parser.antlr4
Class Drl10ExprParser
java.lang.Object
org.drools.drl.parser.antlr4.Drl10ExprParser
- All Implemented Interfaces:
DrlExprParser
This is a helper class that provides helper methods to parse expressions
using both the DRLExpressions parser and the DRLExprTree parser.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanParse an expression from text
-
Constructor Details
-
Drl10ExprParser
-
-
Method Details
-
parse
Parse an expression from text- Specified by:
parsein interfaceDrlExprParser
-
getLeftMostExpr
- Specified by:
getLeftMostExprin interfaceDrlExprParser
-
hasErrors
public boolean hasErrors()- Specified by:
hasErrorsin interfaceDrlExprParser- Returns:
- true if there were parser errors.
-
getErrors
- Specified by:
getErrorsin interfaceDrlExprParser- Returns:
- a list of errors found while parsing.
-