Class JavaExprAnalyzer


  • public class JavaExprAnalyzer
    extends Object
    Expression analyzer.
    • Constructor Detail

      • JavaExprAnalyzer

        public JavaExprAnalyzer()
        Construct.
    • Method Detail

      • analyzeExpression

        public JavaAnalysisResult analyzeExpression​(String expr,
                                                    org.drools.compiler.compiler.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,
                                               org.drools.compiler.compiler.BoundIdentifiers availableIdentifiers)
                                        throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException