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 java.util.Map<java.lang.String,org.camunda.feel.context.JavaFunction>
functions
protected static ScalaFeelLogger
LOGGER
protected org.camunda.feel.valuemapper.ValueMapper
valueMapper
-
Constructor Summary
Constructors Constructor Description CustomFunctionTransformer(java.util.List<FeelCustomFunctionProvider> functionProviders, org.camunda.feel.valuemapper.ValueMapper valueMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>
getFunctionNames()
java.util.Optional<org.camunda.feel.context.JavaFunction>
resolveFunction(java.lang.String functionName)
protected org.camunda.feel.syntaxtree.Val
toVal(java.lang.Object rawResult)
protected java.util.function.Function<java.util.List<org.camunda.feel.syntaxtree.Val>,org.camunda.feel.syntaxtree.Val>
transformFunction(CustomFunction function)
protected void
transformFunctions(java.util.List<FeelCustomFunctionProvider> functionProviders)
protected java.lang.Object
unpackVal(org.camunda.feel.syntaxtree.Val arg)
protected java.util.List<java.lang.Object>
unpackVals(java.util.List<org.camunda.feel.syntaxtree.Val> args)
-
-
-
Field Detail
-
LOGGER
protected static final ScalaFeelLogger LOGGER
-
functions
protected java.util.Map<java.lang.String,org.camunda.feel.context.JavaFunction> functions
-
valueMapper
protected org.camunda.feel.valuemapper.ValueMapper valueMapper
-
-
Constructor Detail
-
CustomFunctionTransformer
public CustomFunctionTransformer(java.util.List<FeelCustomFunctionProvider> functionProviders, org.camunda.feel.valuemapper.ValueMapper valueMapper)
-
-
Method Detail
-
transformFunctions
protected void transformFunctions(java.util.List<FeelCustomFunctionProvider> functionProviders)
-
transformFunction
protected java.util.function.Function<java.util.List<org.camunda.feel.syntaxtree.Val>,org.camunda.feel.syntaxtree.Val> transformFunction(CustomFunction function)
-
unpackVals
protected java.util.List<java.lang.Object> unpackVals(java.util.List<org.camunda.feel.syntaxtree.Val> args)
-
toVal
protected org.camunda.feel.syntaxtree.Val toVal(java.lang.Object rawResult)
-
unpackVal
protected java.lang.Object unpackVal(org.camunda.feel.syntaxtree.Val arg)
-
resolveFunction
public java.util.Optional<org.camunda.feel.context.JavaFunction> resolveFunction(java.lang.String functionName)
- Specified by:
resolveFunction
in classorg.camunda.feel.context.JavaFunctionProvider
-
getFunctionNames
public java.util.Collection<java.lang.String> getFunctionNames()
- Specified by:
getFunctionNames
in classorg.camunda.feel.context.JavaFunctionProvider
-
-