Class AbstractTextHandler
- Object
-
- org.thymeleaf.templateparser.text.AbstractTextHandler
-
- All Implemented Interfaces:
ITextHandler
- Direct Known Subclasses:
AbstractChainedTextHandler
,TemplateHandlerAdapterTextHandler
public abstract class AbstractTextHandler extends Object implements ITextHandler
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTextHandler()
-
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
handleComment(char[] buffer, int contentOffset, int contentLen, int outerOffset, int outerLen, 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)
-
-
-
Method Detail
-
handleDocumentStart
public void handleDocumentStart(long startTimeNanos, int line, int col) throws TextParseException
- Specified by:
handleDocumentStart
in interfaceITextHandler
- Throws:
TextParseException
-
handleDocumentEnd
public void handleDocumentEnd(long endTimeNanos, long totalTimeNanos, int line, int col) throws TextParseException
- Specified by:
handleDocumentEnd
in interfaceITextHandler
- Throws:
TextParseException
-
handleText
public void handleText(char[] buffer, int offset, int len, int line, int col) throws TextParseException
- Specified by:
handleText
in interfaceITextHandler
- Throws:
TextParseException
-
handleComment
public void handleComment(char[] buffer, int contentOffset, int contentLen, int outerOffset, int outerLen, int line, int col) throws TextParseException
- Specified by:
handleComment
in interfaceITextHandler
- 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
- 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
- Throws:
TextParseException
-
handleOpenElementStart
public void handleOpenElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws TextParseException
- Specified by:
handleOpenElementStart
in interfaceITextHandler
- Throws:
TextParseException
-
handleOpenElementEnd
public void handleOpenElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col) throws TextParseException
- Specified by:
handleOpenElementEnd
in interfaceITextHandler
- Throws:
TextParseException
-
handleCloseElementStart
public void handleCloseElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws TextParseException
- Specified by:
handleCloseElementStart
in interfaceITextHandler
- Throws:
TextParseException
-
handleCloseElementEnd
public void handleCloseElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col) throws TextParseException
- Specified by:
handleCloseElementEnd
in interfaceITextHandler
- 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
- Throws:
TextParseException
-
-