| Constructor and Description |
|---|
FEELImpl() |
FEELImpl(List<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.
|
CompiledExpression |
compile(String expression,
CompilerContext ctx)
Compiles the string expression using the given
compiler context.
|
CompiledExpression |
compileExpressionList(String expression,
CompilerContext ctx) |
Object |
evaluate(CompiledExpression expr,
EvaluationContext ctx)
Evaluates the given compiled FEEL expression using the
given EvaluationContext, and returns the result
|
Object |
evaluate(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,
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.
|
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
|
CompilerContext |
newCompilerContext()
Factory method to create a new compiler context
|
CompilerContext |
newCompilerContext(Collection<org.kie.dmn.api.feel.runtime.events.FEELEventListener> contextListeners) |
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<FEELProfile> profiles)
public CompilerContext newCompilerContext()
FEELnewCompilerContext in interface FEELpublic CompilerContext newCompilerContext(Collection<org.kie.dmn.api.feel.runtime.events.FEELEventListener> contextListeners)
public CompiledExpression compile(String expression, CompilerContext ctx)
FEELpublic CompiledExpression compileExpressionList(String expression, CompilerContext ctx)
public Object evaluate(String expression)
FEELpublic Object evaluate(String expression, 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(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(CompiledExpression expr, EvaluationContext ctx)
FEELpublic List<UnaryTest> evaluateUnaryTests(String expression)
FEELevaluateUnaryTests in interface FEELexpression - a unary test list expressionpublic List<UnaryTest> evaluateUnaryTests(String expression, Map<String,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 FEELEventListenersManager getEventsManager(Collection<org.kie.dmn.api.feel.runtime.events.FEELEventListener> contextListeners)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.