Class CustomFunctionTransformer
- java.lang.Object
-
- org.camunda.feel.context.JavaFunctionProvider
-
- org.camunda.bpm.dmn.feel.impl.scala.function.CustomFunctionTransformer
-
- All Implemented Interfaces:
org.camunda.feel.context.CustomFunctionProvider,org.camunda.feel.context.FunctionProvider
public class CustomFunctionTransformer extends org.camunda.feel.context.JavaFunctionProvider
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,org.camunda.feel.context.JavaFunction>functionsprotected static ScalaFeelLoggerLOGGERprotected org.camunda.feel.valuemapper.ValueMappervalueMapper
-
Constructor Summary
Constructors Constructor Description CustomFunctionTransformer(List<FeelCustomFunctionProvider> functionProviders, org.camunda.feel.valuemapper.ValueMapper valueMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>getFunctionNames()Optional<org.camunda.feel.context.JavaFunction>resolveFunction(String functionName)protected org.camunda.feel.syntaxtree.ValtoVal(Object rawResult)protected Function<List<org.camunda.feel.syntaxtree.Val>,org.camunda.feel.syntaxtree.Val>transformFunction(CustomFunction function)protected voidtransformFunctions(List<FeelCustomFunctionProvider> functionProviders)protected ObjectunpackVal(org.camunda.feel.syntaxtree.Val arg)protected List<Object>unpackVals(List<org.camunda.feel.syntaxtree.Val> args)
-
-
-
Field Detail
-
LOGGER
protected static final ScalaFeelLogger LOGGER
-
valueMapper
protected org.camunda.feel.valuemapper.ValueMapper valueMapper
-
-
Constructor Detail
-
CustomFunctionTransformer
public CustomFunctionTransformer(List<FeelCustomFunctionProvider> functionProviders, org.camunda.feel.valuemapper.ValueMapper valueMapper)
-
-
Method Detail
-
transformFunctions
protected void transformFunctions(List<FeelCustomFunctionProvider> functionProviders)
-
transformFunction
protected Function<List<org.camunda.feel.syntaxtree.Val>,org.camunda.feel.syntaxtree.Val> transformFunction(CustomFunction function)
-
toVal
protected org.camunda.feel.syntaxtree.Val toVal(Object rawResult)
-
unpackVal
protected Object unpackVal(org.camunda.feel.syntaxtree.Val arg)
-
resolveFunction
public Optional<org.camunda.feel.context.JavaFunction> resolveFunction(String functionName)
- Specified by:
resolveFunctionin classorg.camunda.feel.context.JavaFunctionProvider
-
getFunctionNames
public Collection<String> getFunctionNames()
- Specified by:
getFunctionNamesin classorg.camunda.feel.context.JavaFunctionProvider
-
-