|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.thymeleaf.templateparser.html.AbstractHtmlTemplateParser
public abstract class AbstractHtmlTemplateParser
Document parser implementation for non-XML HTML documents.
Constructor Summary | |
---|---|
protected |
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 |
---|
protected AbstractHtmlTemplateParser(String templateModeName, int poolSize)
Method Detail |
---|
public final Document parseTemplate(Configuration configuration, String documentName, Reader reader)
ITemplateParser
Parses the document contained in the given Reader object.
parseTemplate
in interface ITemplateParser
configuration
- 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)
ITemplateParser
Parses the document fragment contained in the given String object.
parseFragment
in interface ITemplateParser
configuration
- 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 |