Package org.drools.mvel.java
Class JavaExprAnalyzer
java.lang.Object
org.drools.mvel.java.JavaExprAnalyzer
Expression analyzer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanalyzeBlock(String expr, BoundIdentifiers availableIdentifiers) analyzeExpression(String expr, BoundIdentifiers availableIdentifiers) Analyze an expression.
-
Constructor Details
-
JavaExprAnalyzer
public JavaExprAnalyzer()Construct.
-
-
Method Details
-
analyzeExpression
public JavaAnalysisResult analyzeExpression(String expr, BoundIdentifiers availableIdentifiers) throws org.antlr.runtime.RecognitionException 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.
-
analyzeBlock
public JavaAnalysisResult analyzeBlock(String expr, BoundIdentifiers availableIdentifiers) throws org.antlr.runtime.RecognitionException - Throws:
org.antlr.runtime.RecognitionException
-