Class MVELExprAnalyzer


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

      • MVELExprAnalyzer

        public MVELExprAnalyzer()
    • 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 Set of 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.
      • getExpressionType

        public static Class<?> getExpressionType​(org.drools.compiler.rule.builder.PackageBuildContext context,
                                                 Map<String,​Class<?>> declCls,
                                                 org.drools.core.rule.RuleConditionElement source,
                                                 String expression)