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
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.camunda.feel.context.FunctionProvider

    org.camunda.feel.context.FunctionProvider.CacheFunctionProvider, org.camunda.feel.context.FunctionProvider.CacheFunctionProvider$, org.camunda.feel.context.FunctionProvider.CompositeFunctionProvider, org.camunda.feel.context.FunctionProvider.CompositeFunctionProvider$, org.camunda.feel.context.FunctionProvider.EmptyFunctionProvider$, org.camunda.feel.context.FunctionProvider.StaticFunctionProvider, org.camunda.feel.context.FunctionProvider.StaticFunctionProvider$
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Map<String,org.camunda.feel.context.JavaFunction>
     
    protected static final ScalaFeelLogger
     
    protected org.camunda.feel.valuemapper.ValueMapper
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomFunctionTransformer(List<FeelCustomFunctionProvider> functionProviders, org.camunda.feel.valuemapper.ValueMapper valueMapper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Optional<org.camunda.feel.context.JavaFunction>
    resolveFunction(String functionName)
     
    protected org.camunda.feel.syntaxtree.Val
    toVal(Object rawResult)
     
    protected Function<List<org.camunda.feel.syntaxtree.Val>,org.camunda.feel.syntaxtree.Val>
     
    protected void
     
    protected Object
    unpackVal(org.camunda.feel.syntaxtree.Val arg)
     
    protected List<Object>
    unpackVals(List<org.camunda.feel.syntaxtree.Val> args)
     

    Methods inherited from class org.camunda.feel.context.JavaFunctionProvider

    functionNames, getFunction, getFunctions, getFunctions, resolveFunctions

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOGGER

      protected static final ScalaFeelLogger LOGGER
    • functions

      protected Map<String,org.camunda.feel.context.JavaFunction> functions
    • valueMapper

      protected org.camunda.feel.valuemapper.ValueMapper valueMapper
  • Constructor Details

    • CustomFunctionTransformer

      public CustomFunctionTransformer(List<FeelCustomFunctionProvider> functionProviders, org.camunda.feel.valuemapper.ValueMapper valueMapper)
  • Method Details

    • transformFunctions

      protected void transformFunctions(List<FeelCustomFunctionProvider> functionProviders)
    • transformFunction

      protected Function<List<org.camunda.feel.syntaxtree.Val>,org.camunda.feel.syntaxtree.Val> transformFunction(CustomFunction function)
    • unpackVals

      protected List<Object> unpackVals(List<org.camunda.feel.syntaxtree.Val> args)
    • 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:
      resolveFunction in class org.camunda.feel.context.JavaFunctionProvider
    • getFunctionNames

      public Collection<String> getFunctionNames()
      Specified by:
      getFunctionNames in class org.camunda.feel.context.JavaFunctionProvider