Package org.kie.dmn.feel.codegen.feel11
Class CompiledFEELSemanticMappings
- java.lang.Object
-
- org.kie.dmn.feel.codegen.feel11.CompiledFEELSemanticMappings
-
public class CompiledFEELSemanticMappings extends Object
The purpose of this class is to offer import .* methods to compiled FEEL classes compiling expressions. Implementing DMN FEEL spec chapter 10.3.2.12 Semantic mappings
-
-
Constructor Summary
Constructors Constructor Description CompiledFEELSemanticMappings()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Objectadd(Object left, Object right, EvaluationContext context)FEEL spec Table 45 Delegates toInfixOpNodeexcept evaluationcontextstatic Booleanand(boolean left, boolean right)static Booleanand(boolean left, Object right)static Booleanand(Boolean left, Supplier<Boolean> right)static Booleanand(Object left, Object right)Deprecated.does not support short-circuit of the operatorstatic Booleanbetween(EvaluationContext ctx, Object value, Object start, Object end)static <T> TcoerceTo(Class<?> paramType, Object value)static BooleancoerceToBoolean(EvaluationContext ctx, Object value)static Objectdiv(Object left, Object right, EvaluationContext context)FEEL spec Table 45 Delegates toInfixOpNodeexcept evaluationcontextstatic Booleaneq(Object left, Object right)FEEL spec Table 41: Specific semantics of equality Delegates toEvalHelperexcept evaluationcontextstatic Booleanexists(EvaluationContext ctx, Object tests, Object target)Returns true when at least one of the elements of the list matches the target.static ObjectgetValue(EvaluationContext ctx, String varName)static BooleangracefulEq(EvaluationContext ctx, Object left, Object right)static Booleangt(Object left, Object right)FEEL spec Table 42 and derivations Delegates toEvalHelperexcept evaluationcontextstatic Booleangte(Object left, Object right)FEEL spec Table 42 and derivations Delegates toEvalHelperexcept evaluationcontextstatic Booleanincludes(EvaluationContext ctx, Object range, Object param)static <T> List<T>list(T... a)Represent a [e1, e2, e3] construct.static Booleanlt(Object left, Object right)FEEL spec Table 42 and derivations Delegates toEvalHelperexcept evaluationcontextstatic Booleanlte(Object left, Object right)FEEL spec Table 42 and derivations Delegates toEvalHelperexcept evaluationcontextstatic Objectmult(Object left, Object right, EvaluationContext context)FEEL spec Table 45 Delegates toInfixOpNodeexcept evaluationcontextstatic Booleanne(Object left, Object right)FEEL spec Table 39static ObjectnegateTest(Object param)static Booleannot(Object arg, UnaryTest test)static BooleannotExists(EvaluationContext ctx, List tests, Object target)Implements a negated exists.static Booleanor(boolean left, boolean right)static Booleanor(Boolean left, Supplier<Boolean> right)static Booleanor(Object left, boolean right)static Booleanor(Object left, Object right)Deprecated.does not support short-circuit of the operatorstatic Objectpow(Object left, Object right, EvaluationContext context)static RangeImplrange(EvaluationContext ctx, Range.RangeBoundary lowBoundary, Object lowEndPoint, Object highEndPoint, Range.RangeBoundary highBoundary)Represents a [n..m] constructstatic Objectsub(Object left, Object right, EvaluationContext context)FEEL spec Table 45 Delegates toInfixOpNodeexcept evaluationcontext
-
-
-
Method Detail
-
range
public static RangeImpl range(EvaluationContext ctx, Range.RangeBoundary lowBoundary, Object lowEndPoint, Object highEndPoint, Range.RangeBoundary highBoundary)
Represents a [n..m] construct
-
includes
public static Boolean includes(EvaluationContext ctx, Object range, Object param)
-
exists
public static Boolean exists(EvaluationContext ctx, Object tests, Object target)
Returns true when at least one of the elements of the list matches the target. The list may contain both objects (equals) and UnaryTests (apply)
-
notExists
public static Boolean notExists(EvaluationContext ctx, List tests, Object target)
Implements a negated exists.Returns false when at least one of the elements of the list matches the target. The list may contain both objects (equals) and UnaryTests (apply)
-
getValue
public static Object getValue(EvaluationContext ctx, String varName)
-
coerceToBoolean
public static Boolean coerceToBoolean(EvaluationContext ctx, Object value)
-
list
@SafeVarargs public static <T> List<T> list(T... a)
Represent a [e1, e2, e3] construct.
-
and
@Deprecated public static Boolean and(Object left, Object right)
Deprecated.does not support short-circuit of the operatorFEEL spec Table 38 Delegates toInfixOpNodeexcept evaluationcontext
-
and
public static Boolean and(boolean left, boolean right)
-
or
@Deprecated public static Boolean or(Object left, Object right)
Deprecated.does not support short-circuit of the operatorFEEL spec Table 38 Delegates toInfixOpNodeexcept evaluationcontext
-
or
public static Boolean or(boolean left, boolean right)
-
add
public static Object add(Object left, Object right, EvaluationContext context)
FEEL spec Table 45 Delegates toInfixOpNodeexcept evaluationcontext
-
sub
public static Object sub(Object left, Object right, EvaluationContext context)
FEEL spec Table 45 Delegates toInfixOpNodeexcept evaluationcontext
-
mult
public static Object mult(Object left, Object right, EvaluationContext context)
FEEL spec Table 45 Delegates toInfixOpNodeexcept evaluationcontext
-
div
public static Object div(Object left, Object right, EvaluationContext context)
FEEL spec Table 45 Delegates toInfixOpNodeexcept evaluationcontext
-
pow
public static Object pow(Object left, Object right, EvaluationContext context)
-
lte
public static Boolean lte(Object left, Object right)
FEEL spec Table 42 and derivations Delegates toEvalHelperexcept evaluationcontext
-
lt
public static Boolean lt(Object left, Object right)
FEEL spec Table 42 and derivations Delegates toEvalHelperexcept evaluationcontext
-
gte
public static Boolean gte(Object left, Object right)
FEEL spec Table 42 and derivations Delegates toEvalHelperexcept evaluationcontext
-
gt
public static Boolean gt(Object left, Object right)
FEEL spec Table 42 and derivations Delegates toEvalHelperexcept evaluationcontext
-
eq
public static Boolean eq(Object left, Object right)
FEEL spec Table 41: Specific semantics of equality Delegates toEvalHelperexcept evaluationcontext
-
gracefulEq
public static Boolean gracefulEq(EvaluationContext ctx, Object left, Object right)
-
between
public static Boolean between(EvaluationContext ctx, Object value, Object start, Object end)
-
-