Class 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.CompositeFunctionProvider, org.camunda.feel.context.FunctionProvider.StaticFunctionProvider
    • 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  
    • 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)  
      • 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 Detail

      • 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

      • 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 class org.camunda.feel.context.JavaFunctionProvider
      • getFunctionNames

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