Class CustomFunctionTransformer

  • All Implemented Interfaces:
    org.camunda.feel.context.CustomFunctionProvider, org.camunda.feel.context.FunctionProvider

    public class CustomFunctionTransformer
    extends org.camunda.feel.context.JavaFunctionProvider
    • Field Detail

      • functions

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

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

      • CustomFunctionTransformer

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

      • 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