Class FunctionWrapper
java.lang.Object
com.schibsted.spt.data.jslt.impl.FunctionWrapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodecall(com.fasterxml.jackson.databind.JsonNode input, com.fasterxml.jackson.databind.JsonNode[] arguments) Perform the function on the given JSON input with the given arguments.intThe maximum number of arguments allowed.intThe minimum number of arguments allowed.getName()The name of the function.
-
Constructor Details
-
FunctionWrapper
-
-
Method Details
-
getName
-
getMinArguments
public int getMinArguments()Description copied from interface:FunctionThe minimum number of arguments allowed.- Specified by:
getMinArgumentsin interfaceCallable- Specified by:
getMinArgumentsin interfaceFunction
-
getMaxArguments
public int getMaxArguments()Description copied from interface:FunctionThe maximum number of arguments allowed.- Specified by:
getMaxArgumentsin interfaceCallable- Specified by:
getMaxArgumentsin interfaceFunction
-
call
public com.fasterxml.jackson.databind.JsonNode call(com.fasterxml.jackson.databind.JsonNode input, com.fasterxml.jackson.databind.JsonNode[] arguments) Description copied from interface:FunctionPerform the function on the given JSON input with the given arguments.
-