public class CompilerContextImpl extends Object implements CompilerContext
Constructor and Description |
---|
CompilerContextImpl(FEELEventListenersManager eventsManager)
PLEASE NOTICE: it is recommended to instance the CompilerContext via the FEEL instance, so to have all profile configuration applied correctly.
|
Modifier and Type | Method and Description |
---|---|
CompilerContextImpl |
addFEELFunctions(Collection<FEELFunction> customFunction) |
CompilerContext |
addInputVariable(String name,
Object value) |
CompilerContext |
addInputVariableType(String name,
Type type) |
FEELTypeRegistry |
getFEELFeelTypeRegistry() |
Collection<FEELFunction> |
getFEELFunctions() |
Map<String,Object> |
getInputVariables() |
Map<String,Type> |
getInputVariableTypes() |
Set<org.kie.dmn.api.feel.runtime.events.FEELEventListener> |
getListeners() |
boolean |
isDoCompile() |
void |
setDoCompile(boolean doCompile) |
void |
setFEELTypeRegistry(FEELTypeRegistry typeRegistry) |
public CompilerContextImpl(FEELEventListenersManager eventsManager)
public Set<org.kie.dmn.api.feel.runtime.events.FEELEventListener> getListeners()
getListeners
in interface CompilerContext
public CompilerContext addInputVariableType(String name, Type type)
addInputVariableType
in interface CompilerContext
public Map<String,Type> getInputVariableTypes()
getInputVariableTypes
in interface CompilerContext
public CompilerContext addInputVariable(String name, Object value)
addInputVariable
in interface CompilerContext
public Map<String,Object> getInputVariables()
getInputVariables
in interface CompilerContext
public CompilerContextImpl addFEELFunctions(Collection<FEELFunction> customFunction)
addFEELFunctions
in interface CompilerContext
public Collection<FEELFunction> getFEELFunctions()
getFEELFunctions
in interface CompilerContext
public boolean isDoCompile()
isDoCompile
in interface CompilerContext
public void setDoCompile(boolean doCompile)
setDoCompile
in interface CompilerContext
public void setFEELTypeRegistry(FEELTypeRegistry typeRegistry)
setFEELTypeRegistry
in interface CompilerContext
public FEELTypeRegistry getFEELFeelTypeRegistry()
getFEELFeelTypeRegistry
in interface CompilerContext
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.