Class JstlFile

java.lang.Object
com.schibsted.spt.data.jslt.impl.JstlFile
All Implemented Interfaces:
Callable, Function, Module

public class JstlFile extends Object implements Module, Function
Represents a JSLT source code file loaded separately.
  • Field Details

  • Constructor Details

  • Method Details

    • getCallable

      public Callable getCallable(String name)
      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 interface Module
    • getName

      public String getName()
      Description copied from interface: Function
      The name of the function.
      Specified by:
      getName in interface Callable
      Specified by:
      getName in interface Function
    • getMinArguments

      public int getMinArguments()
      Description copied from interface: Function
      The minimum number of arguments allowed.
      Specified by:
      getMinArguments in interface Callable
      Specified by:
      getMinArguments in interface Function
    • getMaxArguments

      public int getMaxArguments()
      Description copied from interface: Function
      The maximum number of arguments allowed.
      Specified by:
      getMaxArguments in interface Callable
      Specified by:
      getMaxArguments in interface Function
    • 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.
      Specified by:
      call in interface Function
    • evaluateLetsOnly

      public void evaluateLetsOnly(Scope scope, com.fasterxml.jackson.databind.JsonNode input)