Class FunctionWrapper

java.lang.Object
com.schibsted.spt.data.jslt.impl.FunctionWrapper
All Implemented Interfaces:
Callable, Function

public class FunctionWrapper extends Object implements Function
  • Constructor Details

    • FunctionWrapper

      public FunctionWrapper(String name, Method method)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Function
      The name of the function.
      Specified by:
      getName in interface Callable
      Specified by:
      getName in interface Function
    • getMinArguments

      public int getMinArguments()
      Description copied from interface: Function
      The minimum number of arguments allowed.
      Specified by:
      getMinArguments in interface Callable
      Specified by:
      getMinArguments in interface Function
    • getMaxArguments

      public int getMaxArguments()
      Description copied from interface: Function
      The maximum number of arguments allowed.
      Specified by:
      getMaxArguments in interface Callable
      Specified by:
      getMaxArguments in interface Function
    • call

      public com.fasterxml.jackson.databind.JsonNode call(com.fasterxml.jackson.databind.JsonNode input, com.fasterxml.jackson.databind.JsonNode[] arguments)
      Description copied from interface: Function
      Perform the function on the given JSON input with the given arguments.
      Specified by:
      call in interface Function