@Test void notExpressionContainingTrueIsTypable() { final FeelExpression expression = FeelParser.PARSER.parse("not(true)"); final Either<ValidationResult.Builder.ElementStep, ExpressionType> type = FeelTypecheck.typecheck(expression); assertEquals(right(ExpressionTypes.BOOLEAN()), type); }
public static Either<ValidationResult.Builder.ElementStep, ExpressionType> typecheck(final FeelExpression expression) { return typecheck(new Context(), expression); }
FeelTypecheck { public static Either<ValidationResult.Builder.ElementStep, ExpressionType> typecheck(final FeelExpression expression) { return typecheck(new Context(), expression); } }
FeelTypecheck { public static Either<ValidationResult.Builder.ElementStep, ExpressionType> typecheck(final FeelExpression expression) { return typecheck(new Context(), expression); } private  FeelTypecheck(); }
FeelTypecheck { public static Either<ValidationResult.Builder.ElementStep, ExpressionType> typecheck(final FeelExpression expression) { return typecheck(new Context(), expression); } private  FeelTypecheck(); static Either<ValidationResult.Builder.ElementStep, ExpressionType> typecheck(final FeelExpression expression); static Either<ValidationResult.Builder.ElementStep, ExpressionType> typecheck(final Context context, final FeelExpression expression); }
FeelTypecheck { public static Either<ValidationResult.Builder.ElementStep, ExpressionType> typecheck(final FeelExpression expression) { return typecheck(new Context(), expression); } private  FeelTypecheck(); static Either<ValidationResult.Builder.ElementStep, ExpressionType> typecheck(final FeelExpression expression); static Either<ValidationResult.Builder.ElementStep, ExpressionType> typecheck(final Context context, final FeelExpression expression);  }