Class JavaExprAnalyzer


  • public class JavaExprAnalyzer
    extends java.lang.Object
    Expression analyzer.
    • Constructor Summary

      Constructors 
      Constructor Description
      JavaExprAnalyzer()
      Construct.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JavaAnalysisResult analyzeBlock​(java.lang.String expr, org.drools.compiler.compiler.BoundIdentifiers availableIdentifiers)  
      JavaAnalysisResult analyzeExpression​(java.lang.String expr, org.drools.compiler.compiler.BoundIdentifiers availableIdentifiers)
      Analyze an expression.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JavaExprAnalyzer

        public JavaExprAnalyzer()
        Construct.
    • Method Detail

      • analyzeExpression

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