Package com.schibsted.spt.data.jslt.impl
Class JstlFile
java.lang.Object
com.schibsted.spt.data.jslt.impl.JstlFile
Represents a JSLT source code file loaded separately.
-
Field Summary
Fields -
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.voidevaluateLetsOnly(Scope scope, com.fasterxml.jackson.databind.JsonNode input) getCallable(String name) Returns the function with the given name.intThe maximum number of arguments allowed.intThe minimum number of arguments allowed.getName()The name of the function.
-
Field Details
-
prefix
-
body
-
source
-
-
Constructor Details
-
JstlFile
-
-
Method Details
-
getCallable
Description copied from interface:ModuleReturns the function with the given name. The return value is a Callable, because the method may also return a macro.- Specified by:
getCallablein interfaceModule
-
getName
Description copied from interface:FunctionThe name of the function. -
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. -
evaluateLetsOnly
-