Uses of Interface
com.schibsted.spt.data.jslt.Function
Packages that use Function
Package
Description
The public API to the JSLT processor.
This package contains implementation-internal interfaces and classes.
The implementation of the JSLT parser.
-
Uses of Function in com.schibsted.spt.data.jslt
Fields in com.schibsted.spt.data.jslt with type parameters of type FunctionMethods in com.schibsted.spt.data.jslt that return FunctionModifier and TypeMethodDescriptionstatic Function
FunctionUtils.wrapStaticMethod
(String functionName, String className, String methodName) Create a JSLT function from a static Java method.static Function
FunctionUtils.wrapStaticMethod
(String functionName, String className, String methodName, Class[] paramTypes) Create a JSLT function from a static Java method.Method parameters in com.schibsted.spt.data.jslt with type arguments of type FunctionModifier and TypeMethodDescriptionstatic Expression
Parser.compile
(File jslt, Collection<Function> functions) Compile the given JSLT file with the given predefined functions.static Expression
Parser.compile
(String source, Reader reader, Collection<Function> functions) Compile JSLT expression from the Reader.static Expression
Parser.compileResource
(String jslt, Collection<Function> functions) Load and compile JSLT expression from the classpath with the given extension functions.static Expression
Parser.compileString
(String jslt, Collection<Function> functions) Compile JSLT expression given as an inline string with the given extension functions.Parser.withFunctions
(Collection<Function> theseFunctions) Create a new Parser with the given extension functions.Constructor parameters in com.schibsted.spt.data.jslt with type arguments of type FunctionModifierConstructorDescriptionprivate
Parser
(String source, Reader reader, Collection<Function> functions, ResourceResolver resolver, Map<String, Module> modules, JsonFilter filter) -
Uses of Function in com.schibsted.spt.data.jslt.impl
Classes in com.schibsted.spt.data.jslt.impl that implement FunctionModifier and TypeClassDescriptionclass
private static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
class
class
class
Represents a JSLT source code file loaded separately.class
An optimized version of contains(a, b) which is used when b is an array literal with a large number of values, so that a linear search becomes a performance drag.Fields in com.schibsted.spt.data.jslt.impl declared as FunctionFields in com.schibsted.spt.data.jslt.impl with type parameters of type FunctionModifier and TypeFieldDescriptionprivate Collection
<Function> ParseContext.extensions
BuiltinFunctions.functions
ExpressionImpl.functions
ModuleImpl.functions
ParseContext.functions
Methods in com.schibsted.spt.data.jslt.impl that return FunctionModifier and TypeMethodDescriptionExpressionImpl.getFunction
(String name) ParseContext.getFunction
(String name) Methods in com.schibsted.spt.data.jslt.impl that return types with arguments of type FunctionModifier and TypeMethodDescriptionParseContext.getDeclaredFunctions()
ParseContext.getExtensions()
Methods in com.schibsted.spt.data.jslt.impl with parameters of type FunctionModifier and TypeMethodDescriptionvoid
ParseContext.addDeclaredFunction
(String name, Function function) void
Constructor parameters in com.schibsted.spt.data.jslt.impl with type arguments of type FunctionModifierConstructorDescriptionExpressionImpl
(LetExpression[] lets, Map<String, Function> functions, ExpressionNode actual) ModuleImpl
(Map<String, Function> functions) ParseContext
(Collection<Function> extensions, String source, ResourceResolver resolver, Map<String, Module> namedModules, List<JstlFile> files, PreparationContext preparationContext, JsonFilter objectFilter) -
Uses of Function in com.schibsted.spt.data.jslt.parser
Method parameters in com.schibsted.spt.data.jslt.parser with type arguments of type FunctionModifier and TypeMethodDescriptionprivate static ExpressionImpl
ParserImpl.compileImport
(Collection<Function> functions, ParseContext parent, String jslt)