Class DrlExprParser


  • public class DrlExprParser
    extends java.lang.Object
    This is a helper class that provides helper methods to parse expressions using both the DRLExpressions parser and the DRLExprTree parser.
    • Constructor Summary

      Constructors 
      Constructor Description
      DrlExprParser​(org.kie.internal.builder.conf.LanguageLevelOption languageLevel)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<DroolsParserException> getErrors()  
      java.lang.String getLeftMostExpr()  
      boolean hasErrors()  
      org.drools.drl.ast.descr.ConstraintConnectiveDescr parse​(java.lang.String text)
      Parse an expression from text
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DrlExprParser

        public DrlExprParser​(org.kie.internal.builder.conf.LanguageLevelOption languageLevel)
    • Method Detail

      • parse

        public org.drools.drl.ast.descr.ConstraintConnectiveDescr parse​(java.lang.String text)
        Parse an expression from text
      • getLeftMostExpr

        public java.lang.String getLeftMostExpr()
      • hasErrors

        public boolean hasErrors()
        Returns:
        true if there were parser errors.
      • getErrors

        public java.util.List<DroolsParserException> getErrors()
        Returns:
        a list of errors found while parsing.