Class AbstractChainedTextHandler
- Object
-
- org.thymeleaf.templateparser.text.AbstractTextHandler
-
- org.thymeleaf.templateparser.text.AbstractChainedTextHandler
-
- All Implemented Interfaces:
ITextHandler
public abstract class AbstractChainedTextHandler extends AbstractTextHandler
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractChainedTextHandler(ITextHandler next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ITextHandler
getNext()
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)
-
-
-
Constructor Detail
-
AbstractChainedTextHandler
protected AbstractChainedTextHandler(ITextHandler next)
-
-
Method Detail
-
getNext
protected ITextHandler getNext()
-
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
-
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
- Overrides:
handleComment
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
-
-