public class Parser
extends java.lang.Object
| Constructor and Description |
|---|
Parser(java.io.Reader reader)
Create a Parser reading JSLT source from the given Reader.
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
compile()
Compile the JSLT from the defined parameters.
|
static Expression |
compile(java.io.File jslt)
Compile the given JSLT file.
|
static Expression |
compile(java.io.File jslt,
java.util.Collection<Function> functions)
Compile the given JSLT file with the given predefined functions.
|
static Expression |
compile(java.lang.String source,
java.io.Reader reader,
java.util.Collection<Function> functions)
Compile JSLT expression from the Reader.
|
static Expression |
compileResource(java.lang.String jslt)
Load and compile JSLT expression from the classpath.
|
static Expression |
compileResource(java.lang.String jslt,
java.util.Collection<Function> functions)
Load and compile JSLT expression from the classpath with the
given extension functions.
|
static Expression |
compileString(java.lang.String jslt)
Compile JSLT expression given as an inline string.
|
static Expression |
compileString(java.lang.String jslt,
java.util.Collection<Function> functions)
Compile JSLT expression given as an inline string with the given
extension functions.
|
Parser |
withFunctions(java.util.Collection<Function> theseFunctions)
Create a new Parser with the given extension functions.
|
Parser |
withNamedModules(java.util.Map<java.lang.String,Module> thisModules)
Create a new Parser with the given modules registered.
|
Parser |
withObjectFilter(JsonFilter filter)
Create a new Parser with the given filter for object values.
|
Parser |
withObjectFilter(java.lang.String filter)
Create a new Parser with the given filter for object values.
|
Parser |
withResourceResolver(ResourceResolver thisResolver)
Create a new Parser with the given resource resolver.
|
Parser |
withSource(java.lang.String thisSource)
Create a new Parser with the given source name.
|
public Parser(java.io.Reader reader)
ClasspathResourceResolver for import statements.public static Expression compile(java.io.File jslt)
public static Expression compile(java.io.File jslt, java.util.Collection<Function> functions)
public static Expression compileString(java.lang.String jslt)
public static Expression compileString(java.lang.String jslt, java.util.Collection<Function> functions)
public static Expression compileResource(java.lang.String jslt)
public static Expression compileResource(java.lang.String jslt, java.util.Collection<Function> functions)
public static Expression compile(java.lang.String source, java.io.Reader reader, java.util.Collection<Function> functions)
public Parser withSource(java.lang.String thisSource)
public Parser withFunctions(java.util.Collection<Function> theseFunctions)
public Parser withResourceResolver(ResourceResolver thisResolver)
public Parser withNamedModules(java.util.Map<java.lang.String,Module> thisModules)
public Parser withObjectFilter(java.lang.String filter)
public Parser withObjectFilter(JsonFilter filter)
public Expression compile()