public class TemplateParser extends Object
Templates.| Modifier and Type | Class and Description |
|---|---|
static class |
TemplateParser.FilterDefinition
Wrapper for the name of a
Filter and its parameters. |
static class |
TemplateParser.Filters
Convenience class that wraps around a
List of
TemplateParser.FilterDefinitions and can filter an object through all the
filters it contains. |
| Constructor and Description |
|---|
TemplateParser() |
| Modifier and Type | Method and Description |
|---|---|
static Template |
parse(Reader input)
Parses the input of the template if it wasn’t already parsed.
|
static Template |
parse(Reader input,
WhitespaceRemover whitespaceRemover)
Parses the input of the template if it wasn’t already parsed.
|
public static Template parse(Reader input) throws TemplateException
input - The input to parseTemplateException - if the template can not be parsedpublic static Template parse(Reader input, WhitespaceRemover whitespaceRemover) throws TemplateException
WhitespaceRemover is allowed to process all text strings that are
found between two template tags.input - The input to parsewhitespaceRemover - The whitespace removerTemplateException - if the template can not be parsedCopyright © 2026. All rights reserved.