Package com.schibsted.spt.data.jslt.impl
Class JstlFile
- java.lang.Object
-
- com.schibsted.spt.data.jslt.impl.JstlFile
-
-
Field Summary
Fields Modifier and Type Field Description private ExpressionImplbodyprivate java.lang.Stringprefixprivate java.lang.Stringsource
-
Constructor Summary
Constructors Constructor Description JstlFile(java.lang.String prefix, java.lang.String source, ExpressionImpl body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.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)CallablegetCallable(java.lang.String name)Returns the function with the given name.intgetMaxArguments()The maximum number of arguments allowed.intgetMinArguments()The minimum number of arguments allowed.java.lang.StringgetName()The name of the function.
-
-
-
Field Detail
-
prefix
private java.lang.String prefix
-
body
private ExpressionImpl body
-
source
private java.lang.String source
-
-
Constructor Detail
-
JstlFile
public JstlFile(java.lang.String prefix, java.lang.String source, ExpressionImpl body)
-
-
Method Detail
-
getCallable
public Callable getCallable(java.lang.String name)
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
public java.lang.String 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
public void evaluateLetsOnly(Scope scope, com.fasterxml.jackson.databind.JsonNode input)
-
-