org.drools.compiler
Class DrlExprParser

java.lang.Object
  extended by org.drools.compiler.DrlExprParser

public class DrlExprParser
extends Object

This is a helper class that provides helper methods to parse expressions using both the DRLExpressions parser and the DRLExprTree parser.


Constructor Summary
DrlExprParser()
           
 
Method Summary
 List<DroolsParserException> getErrors()
           
 String getLeftMostExpr()
           
 boolean hasErrors()
           
 ConstraintConnectiveDescr parse(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()
Method Detail

parse

public ConstraintConnectiveDescr parse(String text)
Parse an expression from text


getLeftMostExpr

public String getLeftMostExpr()

hasErrors

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

getErrors

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


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.