Package org.drools.mvel.builder
Class MVELExprAnalyzer
- java.lang.Object
-
- org.drools.mvel.builder.MVELExprAnalyzer
-
public class MVELExprAnalyzer extends Object
Expression analyzer.
-
-
Constructor Summary
Constructors Constructor Description MVELExprAnalyzer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MVELAnalysisResultanalyze(Set<String> identifiers, org.drools.compiler.compiler.BoundIdentifiers availableIdentifiers)Analyse an expression.static MVELAnalysisResultanalyzeExpression(org.drools.compiler.rule.builder.PackageBuildContext context, String expr, org.drools.compiler.compiler.BoundIdentifiers availableIdentifiers, Map<String,Class<?>> localTypes, String contextIdentifier, Class kcontextClass)Analyze an expression.static Class<?>getExpressionType(org.drools.compiler.rule.builder.PackageBuildContext context, Map<String,Class<?>> declCls, org.drools.core.rule.RuleConditionElement source, String expression)
-
-
-
Method Detail
-
analyzeExpression
public static MVELAnalysisResult analyzeExpression(org.drools.compiler.rule.builder.PackageBuildContext context, String expr, org.drools.compiler.compiler.BoundIdentifiers availableIdentifiers, Map<String,Class<?>> localTypes, String contextIdentifier, Class kcontextClass)
Analyze an expression.- Parameters:
expr- The expression to analyze.availableIdentifiers- Total set of declarations available.- Returns:
- The
Setof declarations used by the expression. - Throws:
org.antlr.runtime.RecognitionException- If an error occurs in the parser.
-
analyze
public static MVELAnalysisResult analyze(Set<String> identifiers, org.drools.compiler.compiler.BoundIdentifiers availableIdentifiers)
Analyse an expression.- Throws:
org.antlr.runtime.RecognitionException- If an error occurs in the parser.
-
-