Class FunctionWrapper
java.lang.Object
com.schibsted.spt.data.jslt.impl.FunctionWrapper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class(package private) static class(package private) static class(package private) static class(package private) static class(package private) static class(package private) static class(package private) static class(package private) static class(package private) static class(package private) static interface(package private) static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FunctionWrapper.ToJavaConverter[]private Methodprivate Stringprivate FunctionWrapper.ToJsonConverterprivate static Map<Class, FunctionWrapper.ToJavaConverter> private static Map<Class, FunctionWrapper.ToJsonConverter> -
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.private static FunctionWrapper.ToJavaConvertermakeJavaConverter(Class type) private static FunctionWrapper.ToJsonConvertermakeJsonConverter(Class type)
-
Field Details
-
name
-
method
-
converters
-
returnConverter
-
toJava
-
toJson
-
-
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. -
makeJavaConverter
-
makeJsonConverter
-