java.lang.Object
org.drools.model.codegen.execmodel.generator.expressiontyper.ExpressionTyper

public class ExpressionTyper extends Object
  • Constructor Details

  • Method Details

    • toTypedExpression

      public TypedExpressionResult toTypedExpression(com.github.javaparser.ast.expr.Expression drlxExpr)
    • tryParseAsConstantField

      public static Optional<TypedExpression> tryParseAsConstantField(TypeResolver typeResolver, com.github.javaparser.ast.expr.Expression scope, String name)
    • convertArithmeticBinaryToMethodCall

      public static com.github.javaparser.ast.expr.Expression convertArithmeticBinaryToMethodCall(com.github.javaparser.ast.expr.BinaryExpr binaryExpr, Optional<Class<?>> originalPatternType, RuleContext ruleContext)
    • shouldConvertArithmeticBinaryToMethodCall

      public static boolean shouldConvertArithmeticBinaryToMethodCall(com.github.javaparser.ast.expr.BinaryExpr.Operator operator, Type leftType, Type rightType)
    • getBinaryTypeAfterConversion

      public static Type getBinaryTypeAfterConversion(Type leftType, Type rightType)
    • findLeftLeafOfNameExprTraversingParent

      public static com.github.javaparser.ast.expr.Expression findLeftLeafOfNameExprTraversingParent(com.github.javaparser.ast.Node expression)
    • findLeftLeafOfNameExpr

      public static com.github.javaparser.ast.expr.Expression findLeftLeafOfNameExpr(com.github.javaparser.ast.Node expression)