Package org.thymeleaf.engine
Class TemplateHandlerAdapterTextHandler
- Object
-
- org.thymeleaf.templateparser.text.AbstractTextHandler
-
- org.thymeleaf.engine.TemplateHandlerAdapterTextHandler
-
- All Implemented Interfaces:
ITextHandler
public final class TemplateHandlerAdapterTextHandler extends AbstractTextHandler
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
-
Constructor Summary
Constructors Constructor Description TemplateHandlerAdapterTextHandler(String templateName, ITemplateHandler templateHandler, ElementDefinitions elementDefinitions, AttributeDefinitions attributeDefinitions, TemplateMode templateMode, int lineOffset, int colOffset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleAttribute(char[] buffer, int nameOffset, int nameLen, int nameLine, int nameCol, int operatorOffset, int operatorLen, int operatorLine, int operatorCol, int valueContentOffset, int valueContentLen, int valueOuterOffset, int valueOuterLen, int valueLine, int valueCol)voidhandleCloseElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col)voidhandleCloseElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col)voidhandleDocumentEnd(long endTimeNanos, long totalTimeNanos, int line, int col)voidhandleDocumentStart(long startTimeNanos, int line, int col)voidhandleOpenElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col)voidhandleOpenElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col)voidhandleStandaloneElementEnd(char[] buffer, int nameOffset, int nameLen, boolean minimized, int line, int col)voidhandleStandaloneElementStart(char[] buffer, int nameOffset, int nameLen, boolean minimized, int line, int col)voidhandleText(char[] buffer, int offset, int len, int line, int col)-
Methods inherited from class org.thymeleaf.templateparser.text.AbstractTextHandler
handleComment
-
-
-
-
Constructor Detail
-
TemplateHandlerAdapterTextHandler
public TemplateHandlerAdapterTextHandler(String templateName, ITemplateHandler templateHandler, ElementDefinitions elementDefinitions, AttributeDefinitions attributeDefinitions, TemplateMode templateMode, int lineOffset, int colOffset)
-
-
Method Detail
-
handleDocumentStart
public void handleDocumentStart(long startTimeNanos, int line, int col) throws TextParseException- Specified by:
handleDocumentStartin interfaceITextHandler- Overrides:
handleDocumentStartin classAbstractTextHandler- Throws:
TextParseException
-
handleDocumentEnd
public void handleDocumentEnd(long endTimeNanos, long totalTimeNanos, int line, int col) throws TextParseException- Specified by:
handleDocumentEndin interfaceITextHandler- Overrides:
handleDocumentEndin classAbstractTextHandler- Throws:
TextParseException
-
handleText
public void handleText(char[] buffer, int offset, int len, int line, int col) throws TextParseException- Specified by:
handleTextin interfaceITextHandler- Overrides:
handleTextin classAbstractTextHandler- Throws:
TextParseException
-
handleStandaloneElementStart
public void handleStandaloneElementStart(char[] buffer, int nameOffset, int nameLen, boolean minimized, int line, int col) throws TextParseException- Specified by:
handleStandaloneElementStartin interfaceITextHandler- Overrides:
handleStandaloneElementStartin classAbstractTextHandler- Throws:
TextParseException
-
handleStandaloneElementEnd
public void handleStandaloneElementEnd(char[] buffer, int nameOffset, int nameLen, boolean minimized, int line, int col) throws TextParseException- Specified by:
handleStandaloneElementEndin interfaceITextHandler- Overrides:
handleStandaloneElementEndin classAbstractTextHandler- Throws:
TextParseException
-
handleOpenElementStart
public void handleOpenElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws TextParseException- Specified by:
handleOpenElementStartin interfaceITextHandler- Overrides:
handleOpenElementStartin classAbstractTextHandler- Throws:
TextParseException
-
handleOpenElementEnd
public void handleOpenElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col) throws TextParseException- Specified by:
handleOpenElementEndin interfaceITextHandler- Overrides:
handleOpenElementEndin classAbstractTextHandler- Throws:
TextParseException
-
handleCloseElementStart
public void handleCloseElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws TextParseException- Specified by:
handleCloseElementStartin interfaceITextHandler- Overrides:
handleCloseElementStartin classAbstractTextHandler- Throws:
TextParseException
-
handleCloseElementEnd
public void handleCloseElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col) throws TextParseException- Specified by:
handleCloseElementEndin interfaceITextHandler- Overrides:
handleCloseElementEndin classAbstractTextHandler- Throws:
TextParseException
-
handleAttribute
public void handleAttribute(char[] buffer, int nameOffset, int nameLen, int nameLine, int nameCol, int operatorOffset, int operatorLen, int operatorLine, int operatorCol, int valueContentOffset, int valueContentLen, int valueOuterOffset, int valueOuterLen, int valueLine, int valueCol) throws TextParseException- Specified by:
handleAttributein interfaceITextHandler- Overrides:
handleAttributein classAbstractTextHandler- Throws:
TextParseException
-
-