Package org.kie.dmn.feel.lang.impl
Class CompilerContextImpl
- java.lang.Object
-
- org.kie.dmn.feel.lang.impl.CompilerContextImpl
-
- All Implemented Interfaces:
CompilerContext
public class CompilerContextImpl extends Object implements CompilerContext
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompilerContextImpladdFEELFunctions(Collection<FEELFunction> customFunction)CompilerContextaddInputVariable(String name, Object value)CompilerContextaddInputVariableType(String name, Type type)FEELTypeRegistrygetFEELFeelTypeRegistry()Collection<FEELFunction>getFEELFunctions()Map<String,Object>getInputVariables()Map<String,Type>getInputVariableTypes()Set<org.kie.dmn.api.feel.runtime.events.FEELEventListener>getListeners()booleanisDoCompile()voidsetDoCompile(boolean doCompile)voidsetFEELTypeRegistry(FEELTypeRegistry typeRegistry)
-
-
-
Constructor Detail
-
CompilerContextImpl
public CompilerContextImpl(FEELEventListenersManager eventsManager)
PLEASE NOTICE: it is recommended to instance the CompilerContext via the FEEL instance, so to have all profile configuration applied correctly.
-
-
Method Detail
-
getListeners
public Set<org.kie.dmn.api.feel.runtime.events.FEELEventListener> getListeners()
- Specified by:
getListenersin interfaceCompilerContext
-
addInputVariableType
public CompilerContext addInputVariableType(String name, Type type)
- Specified by:
addInputVariableTypein interfaceCompilerContext
-
getInputVariableTypes
public Map<String,Type> getInputVariableTypes()
- Specified by:
getInputVariableTypesin interfaceCompilerContext
-
addInputVariable
public CompilerContext addInputVariable(String name, Object value)
- Specified by:
addInputVariablein interfaceCompilerContext
-
getInputVariables
public Map<String,Object> getInputVariables()
- Specified by:
getInputVariablesin interfaceCompilerContext
-
addFEELFunctions
public CompilerContextImpl addFEELFunctions(Collection<FEELFunction> customFunction)
- Specified by:
addFEELFunctionsin interfaceCompilerContext
-
getFEELFunctions
public Collection<FEELFunction> getFEELFunctions()
- Specified by:
getFEELFunctionsin interfaceCompilerContext
-
isDoCompile
public boolean isDoCompile()
- Specified by:
isDoCompilein interfaceCompilerContext
-
setDoCompile
public void setDoCompile(boolean doCompile)
- Specified by:
setDoCompilein interfaceCompilerContext
-
setFEELTypeRegistry
public void setFEELTypeRegistry(FEELTypeRegistry typeRegistry)
- Specified by:
setFEELTypeRegistryin interfaceCompilerContext
-
getFEELFeelTypeRegistry
public FEELTypeRegistry getFEELFeelTypeRegistry()
- Specified by:
getFEELFeelTypeRegistryin interfaceCompilerContext
-
-