| Constructor and Description |
|---|
FunctionWrapper(java.lang.String name,
java.lang.reflect.Method method) |
| Modifier and Type | Method and Description |
|---|---|
com.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 |
getMaxArguments()
The maximum number of arguments allowed.
|
int |
getMinArguments()
The minimum number of arguments allowed.
|
java.lang.String |
getName()
The name of the function.
|
public FunctionWrapper(java.lang.String name,
java.lang.reflect.Method method)
public java.lang.String getName()
Functionpublic int getMinArguments()
FunctiongetMinArguments in interface CallablegetMinArguments in interface Functionpublic int getMaxArguments()
FunctiongetMaxArguments in interface CallablegetMaxArguments in interface Functionpublic com.fasterxml.jackson.databind.JsonNode call(com.fasterxml.jackson.databind.JsonNode input,
com.fasterxml.jackson.databind.JsonNode[] arguments)
Function