| Constructor and Description |
|---|
FEELImpl() |
FEELImpl(List<org.kie.dmn.feel.lang.FEELProfile> profiles) |
| 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.
|
org.kie.dmn.feel.lang.CompiledExpression |
compile(String expression,
org.kie.dmn.feel.lang.CompilerContext ctx)
Compiles the string expression using the given
compiler context.
|
org.kie.dmn.feel.lang.CompiledExpression |
compileUnaryTests(String expression,
org.kie.dmn.feel.lang.CompilerContext ctx)
Compiles the string expression using the given
compiler context.
|
Object |
evaluate(org.kie.dmn.feel.lang.CompiledExpression expr,
org.kie.dmn.feel.lang.EvaluationContext ctx)
Evaluates the given compiled FEEL expression using the
given EvaluationContext, and returns the result
|
Object |
evaluate(org.kie.dmn.feel.lang.CompiledExpression expr,
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,
org.kie.dmn.feel.lang.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<org.kie.dmn.feel.runtime.UnaryTest> |
evaluateUnaryTests(String expression)
Evaluates the given expression as a list of of unary tests.
|
List<org.kie.dmn.feel.runtime.UnaryTest> |
evaluateUnaryTests(String expression,
Map<String,org.kie.dmn.feel.lang.Type> variableTypes)
Evaluates the given expression as a list of of unary tests.
|
org.kie.dmn.feel.lang.impl.FEELEventListenersManager |
getEventsManager(Collection<org.kie.dmn.api.feel.runtime.events.FEELEventListener> contextListeners) |
Set<org.kie.dmn.api.feel.runtime.events.FEELEventListener> |
getListeners()
Retrieves the set of registered event listeners
|
org.kie.dmn.feel.lang.CompilerContext |
newCompilerContext()
Factory method to create a new compiler context
|
org.kie.dmn.feel.lang.CompilerContext |
newCompilerContext(Collection<org.kie.dmn.api.feel.runtime.events.FEELEventListener> contextListeners) |
org.kie.dmn.feel.lang.EvaluationContext |
newEvaluationContext(Collection<org.kie.dmn.api.feel.runtime.events.FEELEventListener> listeners,
Map<String,Object> inputVariables) |
String |
parseTest(String value) |
void |
removeListener(org.kie.dmn.api.feel.runtime.events.FEELEventListener listener)
Removes a listener from the list of event listeners.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewInstance, newInstancepublic FEELImpl()
public FEELImpl(List<org.kie.dmn.feel.lang.FEELProfile> profiles)
public org.kie.dmn.feel.lang.CompilerContext newCompilerContext()
FEELnewCompilerContext in interface FEELpublic org.kie.dmn.feel.lang.CompilerContext newCompilerContext(Collection<org.kie.dmn.api.feel.runtime.events.FEELEventListener> contextListeners)
public org.kie.dmn.feel.lang.CompiledExpression compile(String expression, org.kie.dmn.feel.lang.CompilerContext ctx)
FEELpublic org.kie.dmn.feel.lang.CompiledExpression compileUnaryTests(String expression, org.kie.dmn.feel.lang.CompilerContext ctx)
FEELcompileUnaryTests in interface FEELexpression - a FEEL expression for unary testsctx - a compiler contextpublic Object evaluate(String expression)
FEELpublic Object evaluate(String expression, org.kie.dmn.feel.lang.EvaluationContext ctx)
FEELpublic Object evaluate(String expression, Map<String,Object> inputVariables)
FEELevaluate in interface FEELexpression - 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.public Object evaluate(org.kie.dmn.feel.lang.CompiledExpression expr, Map<String,Object> inputVariables)
FEELevaluate in interface FEELexpr - 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.public Object evaluate(org.kie.dmn.feel.lang.CompiledExpression expr, org.kie.dmn.feel.lang.EvaluationContext ctx)
FEELpublic org.kie.dmn.feel.lang.EvaluationContext newEvaluationContext(Collection<org.kie.dmn.api.feel.runtime.events.FEELEventListener> listeners, Map<String,Object> inputVariables)
public List<org.kie.dmn.feel.runtime.UnaryTest> evaluateUnaryTests(String expression)
FEELevaluateUnaryTests in interface FEELexpression - a unary test list expressionpublic List<org.kie.dmn.feel.runtime.UnaryTest> evaluateUnaryTests(String expression, Map<String,org.kie.dmn.feel.lang.Type> variableTypes)
FEELevaluateUnaryTests in interface FEELexpression - a unary test list expressionvariableTypes - map of variable names and corresponding types,
necessary to compile the unary testspublic void addListener(org.kie.dmn.api.feel.runtime.events.FEELEventListener listener)
FEELaddListener in interface FEELlistener - the listener to registerpublic void removeListener(org.kie.dmn.api.feel.runtime.events.FEELEventListener listener)
FEELremoveListener in interface FEELlistener - the listener to removepublic Set<org.kie.dmn.api.feel.runtime.events.FEELEventListener> getListeners()
FEELgetListeners in interface FEELpublic org.kie.dmn.feel.lang.impl.FEELEventListenersManager getEventsManager(Collection<org.kie.dmn.api.feel.runtime.events.FEELEventListener> contextListeners)
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.