Modifier and Type | Method and Description |
---|---|
Object |
FEEL.evaluate(CompiledExpression expr,
EvaluationContext ctx)
Evaluates the given compiled FEEL expression using the
given EvaluationContext, and returns the result
|
Object |
FEEL.evaluate(String expression,
EvaluationContext ctx)
Evaluates the given FEEL expression using the
given EvaluationContext, and returns the result
|
Modifier and Type | Method and Description |
---|---|
EvaluationContext |
CompiledCustomFEELFunction.getEvaluationContext() |
Modifier and Type | Method and Description |
---|---|
Function<EvaluationContext,Object> |
CompiledFEELSupport.IterationContextCompiled.getExpression() |
Function<EvaluationContext,Object> |
CompiledFEELSupport.IterationContextCompiled.getName() |
Function<EvaluationContext,Object> |
CompiledFEELSupport.IterationContextCompiled.getRangeEndExpr() |
Modifier and Type | Method and Description |
---|---|
List<UnaryTest> |
ProcessedUnaryTest.apply(EvaluationContext evaluationContext) |
Object |
ProcessedExpression.apply(EvaluationContext evaluationContext) |
static Boolean |
CompiledFEELSemanticMappings.between(EvaluationContext ctx,
Object value,
Object start,
Object end) |
static Boolean |
CompiledFEELSemanticMappings.coerceToBoolean(EvaluationContext ctx,
Object value) |
static Boolean |
CompiledFEELSemanticMappings.exists(EvaluationContext ctx,
Object tests,
Object target)
Returns true when at least one of the elements of the list matches the target.
|
static CompiledFEELSupport.ForBuilder |
CompiledFEELSupport.ffor(EvaluationContext ctx) |
static CompiledFEELSupport.FilterBuilder |
CompiledFEELSupport.filter(EvaluationContext ctx,
Object value) |
static Boolean |
CompiledFEELSemanticMappings.gracefulEq(EvaluationContext ctx,
Object left,
Object right) |
static Boolean |
CompiledFEELSemanticMappings.includes(EvaluationContext ctx,
Object range,
Object param) |
protected Object |
CompiledCustomFEELFunction.internalInvoke(EvaluationContext ctx) |
static Object |
CompiledFEELSupport.invoke(EvaluationContext feelExprCtx,
Object function,
Object params) |
static Boolean |
CompiledFEELSemanticMappings.notExists(EvaluationContext ctx,
List tests,
Object target)
Implements a negated exists.
|
static Object |
CompiledFEELSupport.notifyCompilationError(EvaluationContext feelExprCtx,
String message) |
static CompiledFEELSupport.ContextBuilder |
CompiledFEELSupport.openContext(EvaluationContext ctx) |
static CompiledFEELSupport.PathBuilder |
CompiledFEELSupport.path(EvaluationContext ctx,
Object value) |
static CompiledFEELSupport.QuantBuilder |
CompiledFEELSupport.quant(QuantifiedExpressionNode.Quantifier quantOp,
EvaluationContext ctx) |
static RangeImpl |
CompiledFEELSemanticMappings.range(EvaluationContext ctx,
Range.RangeBoundary lowBoundary,
Object lowEndPoint,
Object highEndPoint,
Range.RangeBoundary highBoundary)
Represents a [n..m] construct
|
Constructor and Description |
---|
CompiledCustomFEELFunction(String name,
List<BaseFEELFunction.Param> parameters,
Function<EvaluationContext,Object> body,
EvaluationContext ctx) |
ContextBuilder(EvaluationContext evaluationContext) |
FilterBuilder(EvaluationContext evaluationContext,
Object value) |
ForBuilder(EvaluationContext evaluationContext) |
PathBuilder(EvaluationContext evaluationContext,
Object value) |
QuantBuilder(QuantifiedExpressionNode.Quantifier quantOp,
EvaluationContext evaluationContext) |
Modifier and Type | Method and Description |
---|---|
EvaluationContext |
EvaluationContext.current() |
Modifier and Type | Class and Description |
---|---|
class |
EvaluationContextImpl |
class |
SilentWrappingEvaluationContextImpl
This EvaluationContext should only be used to "try" evaluations
|
Modifier and Type | Method and Description |
---|---|
EvaluationContext |
EvaluationContextImpl.current() |
EvaluationContext |
SilentWrappingEvaluationContextImpl.current() |
Modifier and Type | Method and Description |
---|---|
Object |
InterpretedExecutableExpression.apply(EvaluationContext evaluationContext) |
List<UnaryTest> |
UnaryTestInterpretedExecutableExpression.apply(EvaluationContext evaluationContext) |
Object |
CompiledExpressionImpl.apply(EvaluationContext evaluationContext) |
Object |
CompiledExecutableExpression.apply(EvaluationContext evaluationContext) |
Object |
FEELImpl.evaluate(CompiledExpression expr,
EvaluationContext ctx) |
Object |
FEELImpl.evaluate(String expression,
EvaluationContext ctx) |
Constructor and Description |
---|
SilentWrappingEvaluationContextImpl(EvaluationContext wrapped)
This EvaluationContext should only be used to "try" evaluations
|
Modifier and Type | Method and Description |
---|---|
Boolean |
UnaryTestImpl.apply(EvaluationContext ctx,
Object obj) |
Object |
FEELFunction.invokeReflectively(EvaluationContext ctx,
Object[] params)
Invokes the function reflectively based on the parameters
|
Modifier and Type | Method and Description |
---|---|
static Object |
HitPolicy.any(EvaluationContext ctx,
DecisionTable dt,
List<? extends Indexed> matches,
List<Object> results)
Any – multiple rules can match, but they all have the same output
|
static Map<Integer,String> |
DecisionTableImpl.checkResults(List<? extends DecisionTable.OutputClause> outputs,
EvaluationContext ctx,
List<? extends Indexed> matches,
List<Object> results) |
static Object |
HitPolicy.countCollect(EvaluationContext ctx,
DecisionTable dt,
List<? extends Indexed> matches,
List<Object> results)
C# – return the count of the outputs
|
Object |
HitPolicy.HitPolicyDTI.dti(EvaluationContext ctx,
DecisionTable dt,
List<? extends Indexed> matches,
List<Object> results) |
FEELFnResult<Object> |
DecisionTableImpl.evaluate(EvaluationContext ctx,
Object[] params)
Evaluates this decision table returning the result
|
static Object |
HitPolicy.first(EvaluationContext ctx,
DecisionTable dt,
List<? extends Indexed> matches,
List<Object> results)
First – return the first match in rule order
|
static Object |
HitPolicy.generalizedCollect(EvaluationContext ctx,
DecisionTable dt,
List<?> results,
Function<Stream<Object>,Object> resultCollector) |
static Object |
HitPolicy.maxCollect(EvaluationContext ctx,
DecisionTable dt,
List<? extends Indexed> matches,
List<Object> results)
C> – return the maximum-valued output
|
static Object |
HitPolicy.minCollect(EvaluationContext ctx,
DecisionTable dt,
List<? extends Indexed> matches,
List<Object> results)
C< – return the minimum-valued output
|
static Object |
HitPolicy.notImplemented(EvaluationContext ctx,
DecisionTable dt,
List<? extends Indexed> matches,
List<Object> results) |
static Object |
HitPolicy.outputOrder(EvaluationContext ctx,
DecisionTable dt,
List<? extends Indexed> matches,
List<Object> results)
Output order – return a list of outputs in the order of the output values list
|
static Object |
HitPolicy.priority(EvaluationContext ctx,
DecisionTable dt,
List<? extends Indexed> matches,
List<Object> results)
Priority – multiple rules can match, with different outputs.
|
static Object |
HitPolicy.ruleOrder(EvaluationContext ctx,
DecisionTable dt,
List<? extends Indexed> matches,
List<Object> results)
Rule order – return a list of outputs in rule order
Collect – return a list of the outputs in arbitrary order
|
static Object |
HitPolicy.sumCollect(EvaluationContext ctx,
DecisionTable dt,
List<? extends Indexed> matches,
List<Object> results)
C+ – return the sum of the outputs
|
static Object |
HitPolicy.unique(EvaluationContext ctx,
DecisionTable dt,
List<? extends Indexed> matches,
List<Object> results)
Unique – only a single rule can be matched
|
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
AbstractCustomFEELFunction.internalInvoke(EvaluationContext ctx) |
protected Object |
CustomFEELFunction.internalInvoke(EvaluationContext ctx) |
FEELFnResult<List<Object>> |
SortFunction.invoke(EvaluationContext ctx,
List list,
FEELFunction function) |
FEELFnResult<Object> |
AbstractCustomFEELFunction.invoke(EvaluationContext ctx,
Object[] params) |
Object |
BaseFEELFunction.invoke(EvaluationContext ctx,
Object[] params)
this method should be overriden by custom function implementations that should be invoked reflectively
|
FEELFnResult<Object> |
DTInvokerFunction.invoke(EvaluationContext ctx,
Object[] params) |
FEELFnResult<Object> |
JavaFunction.invoke(EvaluationContext ctx,
Object[] params) |
Object |
DecisionTableFunction.invoke(EvaluationContext ctx,
Object outputs,
Object inputExpressionList,
List<?> inputValuesList,
Object outputValues,
List<List> ruleList,
String hitPolicy,
Object defaultOutputValue) |
Object |
BaseFEELFunction.invokeReflectively(EvaluationContext ctx,
Object[] params) |
protected List<List<UnaryTest>> |
DecisionTableFunction.objectToUnaryTestList(EvaluationContext ctx,
List<List<Object>> values) |
Modifier and Type | Method and Description |
---|---|
FEELFnResult<Object> |
InvokeFunction.invoke(EvaluationContext ctx,
String namespace,
String modelName,
String decisionName,
Map<String,Object> parameters) |
Modifier and Type | Method and Description |
---|---|
static Boolean |
EvalHelper.compare(Object left,
Object right,
EvaluationContext ctx,
BiPredicate<Comparable,Comparable> op)
Compares left and right operands using the given predicate and returns TRUE/FALSE accordingly
|
static Boolean |
EvalHelper.isEqual(Object left,
Object right,
EvaluationContext ctx)
Compares left and right for equality applying FEEL semantics to specific data types
|
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.