Package com.schibsted.spt.data.jslt.impl
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 Method
private String
private FunctionWrapper.ToJsonConverter
private static Map
<Class, FunctionWrapper.ToJavaConverter> private static Map
<Class, FunctionWrapper.ToJsonConverter> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
call
(com.fasterxml.jackson.databind.JsonNode input, com.fasterxml.jackson.databind.JsonNode[] arguments) Perform the function on the given JSON input with the given arguments.int
The maximum number of arguments allowed.int
The minimum number of arguments allowed.getName()
The name of the function.private static FunctionWrapper.ToJavaConverter
makeJavaConverter
(Class type) private static FunctionWrapper.ToJsonConverter
makeJsonConverter
(Class type)
-
Field Details
-
name
-
method
-
converters
-
returnConverter
-
toJava
-
toJson
-
-
Constructor Details
-
FunctionWrapper
-
-
Method Details
-
getName
Description copied from interface:Function
The name of the function. -
getMinArguments
public int getMinArguments()Description copied from interface:Function
The minimum number of arguments allowed.- Specified by:
getMinArguments
in interfaceCallable
- Specified by:
getMinArguments
in interfaceFunction
-
getMaxArguments
public int getMaxArguments()Description copied from interface:Function
The maximum number of arguments allowed.- Specified by:
getMaxArguments
in interfaceCallable
- Specified by:
getMaxArguments
in 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:Function
Perform the function on the given JSON input with the given arguments. -
makeJavaConverter
-
makeJsonConverter
-