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.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.void
evaluateLetsOnly
(Scope scope, com.fasterxml.jackson.databind.JsonNode input) getCallable
(String name) Returns the function with the given name.int
The maximum number of arguments allowed.int
The 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:Module
Returns the function with the given name. The return value is a Callable, because the method may also return a macro.- Specified by:
getCallable
in interfaceModule
-
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. -
evaluateLetsOnly
-