Class JavaExprAnalyzer

java.lang.Object
org.drools.mvel.java.JavaExprAnalyzer

public class JavaExprAnalyzer extends Object
Expression analyzer.
  • 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 Set of 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