Class MVELExprAnalyzer

java.lang.Object
org.drools.mvel.builder.MVELExprAnalyzer

public class MVELExprAnalyzer extends Object
Expression analyzer.
  • Constructor Details

    • MVELExprAnalyzer

      public MVELExprAnalyzer()
  • Method Details

    • analyzeExpression

      public static MVELAnalysisResult analyzeExpression(PackageBuildContext context, String expr, 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, BoundIdentifiers availableIdentifiers)
      Analyse an expression.
      Throws:
      org.antlr.runtime.RecognitionException - If an error occurs in the parser.
    • getExpressionType

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