public interface FEEL
Modifier and Type | Method and Description |
---|---|
void |
addListener(org.kie.dmn.api.feel.runtime.events.FEELEventListener listener)
Registers a new event listener into this FEEL instance.
|
CompiledExpression |
compile(String expression,
CompilerContext ctx)
Compiles the string expression using the given
compiler context.
|
Object |
evaluate(CompiledExpression expr,
EvaluationContext ctx)
Evaluates the given compiled FEEL expression using the
given EvaluationContext, and returns the result
|
Object |
evaluate(CompiledExpression expression,
Map<String,Object> inputVariables)
Evaluates the given compiled FEEL expression using the
given input variables, and returns the result
|
Object |
evaluate(String expression)
Evaluates the given FEEL expression and returns
the result
|
Object |
evaluate(String expression,
EvaluationContext ctx)
Evaluates the given FEEL expression using the
given EvaluationContext, and returns the result
|
Object |
evaluate(String expression,
Map<String,Object> inputVariables)
Evaluates the given FEEL expression using the
given input variables, and returns the result
|
List<UnaryTest> |
evaluateUnaryTests(String expression)
Evaluates the given expression as a list of of unary tests.
|
List<UnaryTest> |
evaluateUnaryTests(String expression,
Map<String,Type> variableTypes)
Evaluates the given expression as a list of of unary tests.
|
Set<org.kie.dmn.api.feel.runtime.events.FEELEventListener> |
getListeners()
Retrieves the set of registered event listeners
|
CompilerContext |
newCompilerContext()
Factory method to create a new compiler context
|
static FEEL |
newInstance()
Factory method to create a new FEEL engine instance
|
static FEEL |
newInstance(List<FEELProfile> profiles)
Factory method to create a new FEEL engine instance using custom FEELProfile(s)
|
void |
removeListener(org.kie.dmn.api.feel.runtime.events.FEELEventListener listener)
Removes a listener from the list of event listeners.
|
static FEEL newInstance()
static FEEL newInstance(List<FEELProfile> profiles)
CompilerContext newCompilerContext()
CompiledExpression compile(String expression, CompilerContext ctx)
expression
- a FEEL expressionctx
- a compiler contextObject evaluate(String expression)
expression
- a FEEL expressionObject evaluate(String expression, EvaluationContext ctx)
expression
- a FEEL expressionctx
- the EvaluationContext to be used for defining
input variables and additional feel event listeners
contextual to this method callObject evaluate(String expression, Map<String,Object> inputVariables)
expression
- a FEEL expressioninputVariables
- a map of input Variables. The keys
on the map are the variable names,
that need to follow the naming rules
for the FEEL language. The values on
the map are the corresponding values
for the variables. It is completely
fine to use a previously returned FEEL
context as inputVariables.Object evaluate(CompiledExpression expression, Map<String,Object> inputVariables)
expression
- a FEEL expressioninputVariables
- a map of input Variables. The keys
on the map are the variable names,
that need to follow the naming rules
for the FEEL language. The values on
the map are the corresponding values
for the variables. It is completely
fine to use a previously returned FEEL
context as inputVariables.Object evaluate(CompiledExpression expr, EvaluationContext ctx)
expression
- a FEEL expressionctx
- the EvaluationContext to be used for defining
input variables and additional feel event listeners
contextual to this method callList<UnaryTest> evaluateUnaryTests(String expression)
expression
- a unary test list expressionList<UnaryTest> evaluateUnaryTests(String expression, Map<String,Type> variableTypes)
expression
- a unary test list expressionvariableTypes
- map of variable names and corresponding types,
necessary to compile the unary testsvoid addListener(org.kie.dmn.api.feel.runtime.events.FEELEventListener listener)
listener
- the listener to registervoid removeListener(org.kie.dmn.api.feel.runtime.events.FEELEventListener listener)
listener
- the listener to removeSet<org.kie.dmn.api.feel.runtime.events.FEELEventListener> getListeners()
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.