Uses of Interface
org.kie.dmn.feel.lang.EvaluationContext
-
-
Uses of EvaluationContext in org.kie.dmn.feel
Methods in org.kie.dmn.feel with parameters of type EvaluationContext Modifier and Type Method Description java.lang.ObjectFEEL. evaluate(java.lang.String expression, EvaluationContext ctx)Evaluates the given FEEL expression using the given EvaluationContext, and returns the resultjava.lang.ObjectFEEL. evaluate(CompiledExpression expr, EvaluationContext ctx)Evaluates the given compiled FEEL expression using the given EvaluationContext, and returns the result -
Uses of EvaluationContext in org.kie.dmn.feel.codegen.feel11
Methods in org.kie.dmn.feel.codegen.feel11 that return types with arguments of type EvaluationContext Modifier and Type Method Description java.util.function.Function<EvaluationContext,java.lang.Object>CompiledFEELSupport.IterationContextCompiled. getExpression()java.util.function.Function<EvaluationContext,java.lang.Object>CompiledFEELSupport.IterationContextCompiled. getName()java.util.function.Function<EvaluationContext,java.lang.Object>CompiledFEELSupport.IterationContextCompiled. getRangeEndExpr()Methods in org.kie.dmn.feel.codegen.feel11 with parameters of type EvaluationContext Modifier and Type Method Description static java.lang.ObjectCompiledFEELSemanticMappings. add(java.lang.Object left, java.lang.Object right, EvaluationContext context)FEEL spec Table 45 Delegates toInfixOpNodeexcept evaluationcontextjava.lang.ObjectProcessedExpression. apply(EvaluationContext evaluationContext)java.util.List<UnaryTest>ProcessedUnaryTest. apply(EvaluationContext evaluationContext)static java.lang.BooleanCompiledFEELSemanticMappings. between(EvaluationContext ctx, java.lang.Object value, java.lang.Object start, java.lang.Object end)static java.lang.BooleanCompiledFEELSemanticMappings. coerceToBoolean(EvaluationContext ctx, java.lang.Object value)static java.lang.ObjectCompiledFEELSemanticMappings. div(java.lang.Object left, java.lang.Object right, EvaluationContext context)FEEL spec Table 45 Delegates toInfixOpNodeexcept evaluationcontextstatic java.lang.BooleanCompiledFEELSemanticMappings. exists(EvaluationContext ctx, java.lang.Object tests, java.lang.Object target)Returns true when at least one of the elements of the list matches the target.static CompiledFEELSupport.ForBuilderCompiledFEELSupport. ffor(EvaluationContext ctx)static CompiledFEELSupport.FilterBuilderCompiledFEELSupport. filter(EvaluationContext ctx, java.lang.Object value)static java.lang.ObjectCompiledFEELSemanticMappings. getValue(EvaluationContext ctx, java.lang.String varName)static java.lang.BooleanCompiledFEELSemanticMappings. gracefulEq(EvaluationContext ctx, java.lang.Object left, java.lang.Object right)static java.lang.BooleanCompiledFEELSemanticMappings. includes(EvaluationContext ctx, java.lang.Object range, java.lang.Object param)protected java.lang.ObjectCompiledCustomFEELFunction. internalInvoke(EvaluationContext ctx)static java.lang.ObjectCompiledFEELSupport. invoke(EvaluationContext feelExprCtx, java.lang.Object function, java.lang.Object params)static java.lang.ObjectCompiledFEELSemanticMappings. mult(java.lang.Object left, java.lang.Object right, EvaluationContext context)FEEL spec Table 45 Delegates toInfixOpNodeexcept evaluationcontextstatic java.math.BigDecimalCompiledFEELSupport. negate(EvaluationContext feelExprCtx, java.lang.Object value)static java.lang.BooleanCompiledFEELSemanticMappings. notExists(EvaluationContext ctx, java.util.List tests, java.lang.Object target)Implements a negated exists.static java.lang.ObjectCompiledFEELSupport. notifyCompilationError(EvaluationContext feelExprCtx, java.lang.String message)static CompiledFEELSupport.ContextBuilderCompiledFEELSupport. openContext(EvaluationContext ctx)static CompiledFEELSupport.PathBuilderCompiledFEELSupport. path(EvaluationContext ctx, java.lang.Object value)static java.math.BigDecimalCompiledFEELSupport. positive(EvaluationContext feelExprCtx, java.lang.Object value)static java.lang.ObjectCompiledFEELSemanticMappings. pow(java.lang.Object left, java.lang.Object right, EvaluationContext context)static CompiledFEELSupport.QuantBuilderCompiledFEELSupport. quant(QuantifiedExpressionNode.Quantifier quantOp, EvaluationContext ctx)static RangeImplCompiledFEELSemanticMappings. range(EvaluationContext ctx, Range.RangeBoundary lowBoundary, java.lang.Object lowEndPoint, java.lang.Object highEndPoint, Range.RangeBoundary highBoundary)Represents a [n..m] constructstatic java.lang.ObjectCompiledFEELSemanticMappings. sub(java.lang.Object left, java.lang.Object right, EvaluationContext context)FEEL spec Table 45 Delegates toInfixOpNodeexcept evaluationcontextMethod parameters in org.kie.dmn.feel.codegen.feel11 with type arguments of type EvaluationContext Modifier and Type Method Description java.lang.ObjectCompiledFEELSupport.ForBuilder. rreturn(java.util.function.Function<EvaluationContext,java.lang.Object> expression)java.lang.ObjectCompiledFEELSupport.QuantBuilder. satisfies(java.util.function.Function<EvaluationContext,java.lang.Object> expression)java.lang.ObjectCompiledFEELSupport.FilterBuilder. with(java.util.function.Function<EvaluationContext,java.lang.Object> filterExpression)CompiledFEELSupport.ForBuilderCompiledFEELSupport.ForBuilder. with(java.util.function.Function<EvaluationContext,java.lang.Object> nameExpression, java.util.function.Function<EvaluationContext,java.lang.Object> iterationExpression)CompiledFEELSupport.ForBuilderCompiledFEELSupport.ForBuilder. with(java.util.function.Function<EvaluationContext,java.lang.Object> nameExpression, java.util.function.Function<EvaluationContext,java.lang.Object> iterationExpression, java.util.function.Function<EvaluationContext,java.lang.Object> rangeEndExpression)CompiledFEELSupport.QuantBuilderCompiledFEELSupport.QuantBuilder. with(java.util.function.Function<EvaluationContext,java.lang.Object> nameExpression, java.util.function.Function<EvaluationContext,java.lang.Object> iterationExpression)Constructors in org.kie.dmn.feel.codegen.feel11 with parameters of type EvaluationContext Constructor Description CompiledCustomFEELFunction(java.lang.String name, java.util.List<FEELFunction.Param> parameters, java.util.function.Function<EvaluationContext,java.lang.Object> body, EvaluationContext ctx)ContextBuilder(EvaluationContext evaluationContext)FilterBuilder(EvaluationContext evaluationContext, java.lang.Object value)ForBuilder(EvaluationContext evaluationContext)PathBuilder(EvaluationContext evaluationContext, java.lang.Object value)QuantBuilder(QuantifiedExpressionNode.Quantifier quantOp, EvaluationContext evaluationContext)Constructor parameters in org.kie.dmn.feel.codegen.feel11 with type arguments of type EvaluationContext Constructor Description CompiledCustomFEELFunction(java.lang.String name, java.util.List<FEELFunction.Param> parameters, java.util.function.Function<EvaluationContext,java.lang.Object> body, EvaluationContext ctx)IterationContextCompiled(java.util.function.Function<EvaluationContext,java.lang.Object> name, java.util.function.Function<EvaluationContext,java.lang.Object> expression)IterationContextCompiled(java.util.function.Function<EvaluationContext,java.lang.Object> name, java.util.function.Function<EvaluationContext,java.lang.Object> expression, java.util.function.Function<EvaluationContext,java.lang.Object> rangeEndExpr) -
Uses of EvaluationContext in org.kie.dmn.feel.lang
Methods in org.kie.dmn.feel.lang that return EvaluationContext Modifier and Type Method Description EvaluationContextEvaluationContext. current() -
Uses of EvaluationContext in org.kie.dmn.feel.lang.ast
Methods in org.kie.dmn.feel.lang.ast with parameters of type EvaluationContext Modifier and Type Method Description static java.lang.ObjectInfixOpNode. add(java.lang.Object left, java.lang.Object right, EvaluationContext ctx)static java.lang.ObjectInfixOpNode. and(java.lang.Object left, java.lang.Object right, EvaluationContext ctx)Deprecated.this variant do not allow short-circuit of the operatorjava.lang.BooleanDashNode.DashUnaryTest. apply(EvaluationContext evaluationContext, java.lang.Object o)static java.lang.ObjectInfixOpNode. div(java.lang.Object left, java.lang.Object right, EvaluationContext ctx)static java.util.Map<java.lang.String,Type>ContextTypeNode. evalTypes(EvaluationContext ctx, java.util.Map<java.lang.String,TypeNode> gen)java.lang.ObjectASTNode. evaluate(EvaluationContext ctx)java.lang.ObjectAtLiteralNode. evaluate(EvaluationContext ctx)java.lang.ObjectBaseNode. evaluate(EvaluationContext ctx)java.lang.ObjectBetweenNode. evaluate(EvaluationContext ctx)java.lang.ObjectBooleanNode. evaluate(EvaluationContext ctx)java.lang.ObjectContextEntryNode. evaluate(EvaluationContext ctx)java.lang.ObjectContextNode. evaluate(EvaluationContext ctx)TypeContextTypeNode. evaluate(EvaluationContext ctx)TypeCTypeNode. evaluate(EvaluationContext ctx)UnaryTestDashNode. evaluate(EvaluationContext ctx)java.lang.ObjectFilterExpressionNode. evaluate(EvaluationContext ctx)java.lang.ObjectForExpressionNode. evaluate(EvaluationContext ctx)FEELFunction.ParamFormalParameterNode. evaluate(EvaluationContext ctx)java.lang.ObjectFunctionDefNode. evaluate(EvaluationContext ctx)java.lang.ObjectFunctionInvocationNode. evaluate(EvaluationContext ctx)TypeFunctionTypeNode. evaluate(EvaluationContext ctx)java.lang.ObjectIfExpressionNode. evaluate(EvaluationContext ctx)java.lang.ObjectInfixOpNode. evaluate(EvaluationContext ctx)java.lang.BooleanInNode. evaluate(EvaluationContext ctx)java.lang.ObjectInstanceOfNode. evaluate(EvaluationContext ctx)java.lang.ObjectIterationContextNode. evaluate(EvaluationContext ctx)java.util.ListListNode. evaluate(EvaluationContext ctx)TypeListTypeNode. evaluate(EvaluationContext ctx)java.lang.StringNameDefNode. evaluate(EvaluationContext ctx)java.lang.ObjectNamedParameterNode. evaluate(EvaluationContext ctx)java.lang.ObjectNameRefNode. evaluate(EvaluationContext ctx)java.lang.ObjectNullNode. evaluate(EvaluationContext ctx)java.lang.ObjectNumberNode. evaluate(EvaluationContext ctx)java.lang.ObjectPathExpressionNode. evaluate(EvaluationContext ctx)java.lang.ObjectQualifiedNameNode. evaluate(EvaluationContext ctx)java.lang.BooleanQuantifiedExpressionNode. evaluate(EvaluationContext ctx)RangeRangeNode. evaluate(EvaluationContext ctx)java.lang.ObjectSignedUnaryNode. evaluate(EvaluationContext ctx)java.lang.ObjectStringNode. evaluate(EvaluationContext ctx)java.lang.ObjectTemporalConstantNode. evaluate(EvaluationContext ctx)TypeTypeNode. evaluate(EvaluationContext ctx)java.util.ListUnaryTestListNode. evaluate(EvaluationContext ctx)UnaryTestUnaryTestNode. evaluate(EvaluationContext ctx)java.lang.StringContextEntryNode. evaluateName(EvaluationContext ctx)java.lang.StringIterationContextNode. evaluateName(EvaluationContext ctx)java.lang.ObjectIterationContextNode. evaluateRangeEnd(EvaluationContext ctx)static java.lang.ObjectInfixOpNode. math(java.lang.Object left, java.lang.Object right, EvaluationContext ctx, java.util.function.BinaryOperator<java.math.BigDecimal> op)static java.lang.ObjectInfixOpNode. mult(java.lang.Object left, java.lang.Object right, EvaluationContext ctx)static booleanForExpressionNode. nextIteration(EvaluationContext ctx, ForExpressionNode.ForIteration[] ictx)static booleanQuantifiedExpressionNode. nextIteration(EvaluationContext ctx, QuantifiedExpressionNode.QEIteration[] ictx)static java.lang.ObjectInfixOpNode. or(java.lang.Object left, java.lang.Object right, EvaluationContext ctx)Deprecated.this variant do not allow short-circuit of the operatorstatic voidForExpressionNode. setValueIntoContext(EvaluationContext ctx, ForExpressionNode.ForIteration forIteration)static voidQuantifiedExpressionNode. setValueIntoContext(EvaluationContext ctx, QuantifiedExpressionNode.QEIteration qeIteration)static java.lang.ObjectInfixOpNode. sub(java.lang.Object left, java.lang.Object right, EvaluationContext ctx) -
Uses of EvaluationContext in org.kie.dmn.feel.lang.impl
Classes in org.kie.dmn.feel.lang.impl that implement EvaluationContext Modifier and Type Class Description classEvaluationContextImplclassSilentWrappingEvaluationContextImplThis EvaluationContext should only be used to "try" evaluationsMethods in org.kie.dmn.feel.lang.impl that return EvaluationContext Modifier and Type Method Description EvaluationContextEvaluationContextImpl. current()EvaluationContextSilentWrappingEvaluationContextImpl. current()Methods in org.kie.dmn.feel.lang.impl with parameters of type EvaluationContext Modifier and Type Method Description java.lang.ObjectCompiledExecutableExpression. apply(EvaluationContext evaluationContext)java.lang.ObjectCompiledExpressionImpl. apply(EvaluationContext evaluationContext)java.lang.ObjectInterpretedExecutableExpression. apply(EvaluationContext evaluationContext)java.util.List<UnaryTest>UnaryTestInterpretedExecutableExpression. apply(EvaluationContext evaluationContext)java.lang.ObjectFEELImpl. evaluate(java.lang.String expression, EvaluationContext ctx)java.lang.ObjectFEELImpl. evaluate(CompiledExpression expr, EvaluationContext ctx)Constructors in org.kie.dmn.feel.lang.impl with parameters of type EvaluationContext Constructor Description SilentWrappingEvaluationContextImpl(EvaluationContext wrapped)This EvaluationContext should only be used to "try" evaluations -
Uses of EvaluationContext in org.kie.dmn.feel.runtime
Methods in org.kie.dmn.feel.runtime with parameters of type EvaluationContext Modifier and Type Method Description java.lang.BooleanUnaryTestImpl. apply(EvaluationContext ctx, java.lang.Object obj)java.lang.ObjectFEELFunction. invokeReflectively(EvaluationContext ctx, java.lang.Object[] params)Invokes the function reflectively based on the parameters -
Uses of EvaluationContext in org.kie.dmn.feel.runtime.decisiontables
Methods in org.kie.dmn.feel.runtime.decisiontables with parameters of type EvaluationContext Modifier and Type Method Description static java.lang.ObjectHitPolicy. any(EvaluationContext ctx, DecisionTable dt, java.util.List<? extends Indexed> matches, java.util.List<java.lang.Object> results)Any – multiple rules can match, but they all have the same outputstatic java.util.Map<java.lang.Integer,java.lang.String>DecisionTableImpl. checkResults(java.util.List<? extends DecisionTable.OutputClause> outputs, EvaluationContext ctx, java.util.List<? extends Indexed> matches, java.util.List<java.lang.Object> results)static java.lang.ObjectHitPolicy. countCollect(EvaluationContext ctx, DecisionTable dt, java.util.List<? extends Indexed> matches, java.util.List<java.lang.Object> results)C# – return the count of the outputsjava.lang.ObjectHitPolicy.HitPolicyDTI. dti(EvaluationContext ctx, DecisionTable dt, java.util.List<? extends Indexed> matches, java.util.List<java.lang.Object> results)FEELFnResult<java.lang.Object>DecisionTableImpl. evaluate(EvaluationContext ctx, java.lang.Object[] params)Evaluates this decision table returning the resultstatic java.lang.ObjectHitPolicy. first(EvaluationContext ctx, DecisionTable dt, java.util.List<? extends Indexed> matches, java.util.List<java.lang.Object> results)First – return the first match in rule orderstatic java.lang.ObjectHitPolicy. generalizedCollect(EvaluationContext ctx, DecisionTable dt, java.util.List<?> results, java.util.function.Function<java.util.stream.Stream<java.lang.Object>,java.lang.Object> resultCollector)static java.lang.ObjectHitPolicy. maxCollect(EvaluationContext ctx, DecisionTable dt, java.util.List<? extends Indexed> matches, java.util.List<java.lang.Object> results)C> – return the maximum-valued outputstatic java.lang.ObjectHitPolicy. minCollect(EvaluationContext ctx, DecisionTable dt, java.util.List<? extends Indexed> matches, java.util.List<java.lang.Object> results)C< – return the minimum-valued outputstatic java.lang.ObjectHitPolicy. notImplemented(EvaluationContext ctx, DecisionTable dt, java.util.List<? extends Indexed> matches, java.util.List<java.lang.Object> results)static java.lang.ObjectHitPolicy. outputOrder(EvaluationContext ctx, DecisionTable dt, java.util.List<? extends Indexed> matches, java.util.List<java.lang.Object> results)Output order – return a list of outputs in the order of the output values liststatic java.lang.ObjectHitPolicy. priority(EvaluationContext ctx, DecisionTable dt, java.util.List<? extends Indexed> matches, java.util.List<java.lang.Object> results)Priority – multiple rules can match, with different outputs.static java.lang.ObjectHitPolicy. ruleOrder(EvaluationContext ctx, DecisionTable dt, java.util.List<? extends Indexed> matches, java.util.List<java.lang.Object> results)Rule order – return a list of outputs in rule order Collect – return a list of the outputs in arbitrary orderstatic java.lang.ObjectHitPolicy. sumCollect(EvaluationContext ctx, DecisionTable dt, java.util.List<? extends Indexed> matches, java.util.List<java.lang.Object> results)C+ – return the sum of the outputsstatic java.lang.ObjectHitPolicy. unique(EvaluationContext ctx, DecisionTable dt, java.util.List<? extends Indexed> matches, java.util.List<java.lang.Object> results)Unique – only a single rule can be matched -
Uses of EvaluationContext in org.kie.dmn.feel.runtime.functions
Fields in org.kie.dmn.feel.runtime.functions declared as EvaluationContext Modifier and Type Field Description protected EvaluationContextAbstractCustomFEELFunction. closureCtxMethods in org.kie.dmn.feel.runtime.functions that return EvaluationContext Modifier and Type Method Description EvaluationContextAbstractCustomFEELFunction. getEvaluationContext()Methods in org.kie.dmn.feel.runtime.functions with parameters of type EvaluationContext Modifier and Type Method Description protected abstract java.lang.ObjectAbstractCustomFEELFunction. internalInvoke(EvaluationContext ctx)protected java.lang.ObjectCustomFEELFunction. internalInvoke(EvaluationContext ctx)FEELFnResult<java.lang.Object>AbstractCustomFEELFunction. invoke(EvaluationContext ctx, java.lang.Object[] params)java.lang.ObjectBaseFEELFunction. invoke(EvaluationContext ctx, java.lang.Object[] params)this method should be overriden by custom function implementations that should be invoked reflectivelyjava.lang.ObjectDecisionTableFunction. invoke(EvaluationContext ctx, java.lang.Object outputs, java.lang.Object inputExpressionList, java.util.List<?> inputValuesList, java.lang.Object outputValues, java.util.List<java.util.List> ruleList, java.lang.String hitPolicy, java.lang.Object defaultOutputValue)FEELFnResult<java.lang.Object>DTInvokerFunction. invoke(EvaluationContext ctx, java.lang.Object[] params)FEELFnResult<java.lang.Object>JavaFunction. invoke(EvaluationContext ctx, java.lang.Object[] params)FEELFnResult<java.util.List<java.lang.Object>>SortFunction. invoke(EvaluationContext ctx, java.util.List list, FEELFunction function)java.lang.ObjectBaseFEELFunction. invokeReflectively(EvaluationContext ctx, java.lang.Object[] params)protected java.util.List<java.util.List<UnaryTest>>DecisionTableFunction. objectToUnaryTestList(EvaluationContext ctx, java.util.List<java.util.List<java.lang.Object>> values)Constructors in org.kie.dmn.feel.runtime.functions with parameters of type EvaluationContext Constructor Description AbstractCustomFEELFunction(java.lang.String name, java.util.List<FEELFunction.Param> parameters, B body, EvaluationContext ctx)CustomFEELFunction(java.lang.String name, java.util.List<FEELFunction.Param> parameters, BaseNode body, EvaluationContext evaluationContext) -
Uses of EvaluationContext in org.kie.dmn.feel.runtime.functions.extended
Methods in org.kie.dmn.feel.runtime.functions.extended with parameters of type EvaluationContext Modifier and Type Method Description FEELFnResult<java.lang.Object>InvokeFunction. invoke(EvaluationContext ctx, java.lang.String namespace, java.lang.String modelName, java.lang.String decisionName, java.util.Map<java.lang.String,java.lang.Object> parameters)Deprecated. -
Uses of EvaluationContext in org.kie.dmn.feel.util
Methods in org.kie.dmn.feel.util with parameters of type EvaluationContext Modifier and Type Method Description static java.lang.BooleanEvalHelper. compare(java.lang.Object left, java.lang.Object right, EvaluationContext ctx, java.util.function.BiPredicate<java.lang.Comparable,java.lang.Comparable> op)Compares left and right operands using the given predicate and returns TRUE/FALSE accordinglystatic java.lang.BooleanEvalHelper. isEqual(java.lang.Object left, java.lang.Object right, EvaluationContext ctx)Compares left and right for equality applying FEEL semantics to specific data types
-