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 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)
void
handleCloseElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col)
void
handleCloseElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col)
void
handleDocumentEnd(long endTimeNanos, long totalTimeNanos, int line, int col)
void
handleDocumentStart(long startTimeNanos, int line, int col)
void
handleOpenElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col)
void
handleOpenElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col)
void
handleStandaloneElementEnd(char[] buffer, int nameOffset, int nameLen, boolean minimized, int line, int col)
void
handleStandaloneElementStart(char[] buffer, int nameOffset, int nameLen, boolean minimized, int line, int col)
void
handleText(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:
handleDocumentStart
in interfaceITextHandler
- Overrides:
handleDocumentStart
in classAbstractTextHandler
- Throws:
TextParseException
-
handleDocumentEnd
public void handleDocumentEnd(long endTimeNanos, long totalTimeNanos, int line, int col) throws TextParseException
- Specified by:
handleDocumentEnd
in interfaceITextHandler
- Overrides:
handleDocumentEnd
in classAbstractTextHandler
- Throws:
TextParseException
-
handleText
public void handleText(char[] buffer, int offset, int len, int line, int col) throws TextParseException
- Specified by:
handleText
in interfaceITextHandler
- Overrides:
handleText
in classAbstractTextHandler
- Throws:
TextParseException
-
handleStandaloneElementStart
public void handleStandaloneElementStart(char[] buffer, int nameOffset, int nameLen, boolean minimized, int line, int col) throws TextParseException
- Specified by:
handleStandaloneElementStart
in interfaceITextHandler
- Overrides:
handleStandaloneElementStart
in classAbstractTextHandler
- Throws:
TextParseException
-
handleStandaloneElementEnd
public void handleStandaloneElementEnd(char[] buffer, int nameOffset, int nameLen, boolean minimized, int line, int col) throws TextParseException
- Specified by:
handleStandaloneElementEnd
in interfaceITextHandler
- Overrides:
handleStandaloneElementEnd
in classAbstractTextHandler
- Throws:
TextParseException
-
handleOpenElementStart
public void handleOpenElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws TextParseException
- Specified by:
handleOpenElementStart
in interfaceITextHandler
- Overrides:
handleOpenElementStart
in classAbstractTextHandler
- Throws:
TextParseException
-
handleOpenElementEnd
public void handleOpenElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col) throws TextParseException
- Specified by:
handleOpenElementEnd
in interfaceITextHandler
- Overrides:
handleOpenElementEnd
in classAbstractTextHandler
- Throws:
TextParseException
-
handleCloseElementStart
public void handleCloseElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws TextParseException
- Specified by:
handleCloseElementStart
in interfaceITextHandler
- Overrides:
handleCloseElementStart
in classAbstractTextHandler
- Throws:
TextParseException
-
handleCloseElementEnd
public void handleCloseElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col) throws TextParseException
- Specified by:
handleCloseElementEnd
in interfaceITextHandler
- Overrides:
handleCloseElementEnd
in 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:
handleAttribute
in interfaceITextHandler
- Overrides:
handleAttribute
in classAbstractTextHandler
- Throws:
TextParseException
-
-