|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectorg.thymeleaf.templateparser.html.AbstractHtmlTemplateParser
public abstract class AbstractHtmlTemplateParser
Document parser implementation for non-XML HTML documents.
| Constructor Summary | |
|---|---|
AbstractHtmlTemplateParser(String templateModeName,
int poolSize)
|
|
| Method Summary | |
|---|---|
protected TemplatePreprocessingReader |
getTemplatePreprocessingReader(Reader reader)
|
List<Node> |
parseFragment(Configuration configuration,
String fragment)
Parses the document fragment contained in the given String object. |
Document |
parseTemplate(Configuration configuration,
String documentName,
Reader reader)
Parses the document contained in the given Reader object. |
protected boolean |
shouldAddThymeleafRootToParser()
|
protected abstract List<Node> |
unwrapFragment(Document document)
|
protected abstract String |
wrapFragment(String fragment)
|
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractHtmlTemplateParser(String templateModeName,
int poolSize)
| Method Detail |
|---|
public final Document parseTemplate(Configuration configuration,
String documentName,
Reader reader)
ITemplateParserParses the document contained in the given Reader object.
parseTemplate in interface ITemplateParserconfiguration - the Configuration objectdocumentName - the document name (optional).reader - the Reader on the document to be parsed (required).
public final List<Node> parseFragment(Configuration configuration,
String fragment)
ITemplateParserParses the document fragment contained in the given String object.
parseFragment in interface ITemplateParserconfiguration - the Configuration objectfragment - the String containing the fragment
protected abstract String wrapFragment(String fragment)
protected abstract List<Node> unwrapFragment(Document document)
protected boolean shouldAddThymeleafRootToParser()
protected TemplatePreprocessingReader getTemplatePreprocessingReader(Reader reader)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||