org.drools.rule.builder.dialect.mvel
Class MVELExprAnalyzer

java.lang.Object
  extended by org.drools.rule.builder.dialect.mvel.MVELExprAnalyzer

public class MVELExprAnalyzer
extends java.lang.Object

Expression analyzer.


Constructor Summary
MVELExprAnalyzer()
           
 
Method Summary
 MVELAnalysisResult analyzeExpression(RuleBuildContext context, java.lang.String expr, java.util.Set[] availableIdentifiers, java.util.Map localTypes)
          Analyze an expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MVELExprAnalyzer

public MVELExprAnalyzer()
Method Detail

analyzeExpression

public MVELAnalysisResult analyzeExpression(RuleBuildContext context,
                                            java.lang.String expr,
                                            java.util.Set[] availableIdentifiers,
                                            java.util.Map localTypes)
                                     throws RecognitionException
Analyze an expression.

Parameters:
expr - The expression to analyze.
availDecls - Total set of declarations available.
Returns:
The Set of declarations used by the expression.
Throws:
RecognitionException - If an error occurs in the parser.