Package org.thymeleaf.engine
Class TemplateHandlerAdapterMarkupHandler
Object
org.attoparser.AbstractMarkupHandler
org.thymeleaf.engine.TemplateHandlerAdapterMarkupHandler
- All Implemented Interfaces:
org.attoparser.IAttributeSequenceHandler
,org.attoparser.ICDATASectionHandler
,org.attoparser.ICommentHandler
,org.attoparser.IDocTypeHandler
,org.attoparser.IDocumentHandler
,org.attoparser.IElementHandler
,org.attoparser.IMarkupHandler
,org.attoparser.IProcessingInstructionHandler
,org.attoparser.ITextHandler
,org.attoparser.IXMLDeclarationHandler
public final class TemplateHandlerAdapterMarkupHandler
extends org.attoparser.AbstractMarkupHandler
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateHandlerAdapterMarkupHandler
(String templateName, ITemplateHandler templateHandler, ElementDefinitions elementDefinitions, AttributeDefinitions attributeDefinitions, TemplateMode templateMode, int lineOffset, int colOffset) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
handleAutoCloseElementEnd
(char[] buffer, int nameOffset, int nameLen, int line, int col) void
handleAutoCloseElementStart
(char[] buffer, int nameOffset, int nameLen, int line, int col) void
handleAutoOpenElementEnd
(char[] buffer, int nameOffset, int nameLen, int line, int col) void
handleAutoOpenElementStart
(char[] buffer, int nameOffset, int nameLen, int line, int col) void
handleCDATASection
(char[] buffer, int contentOffset, int contentLen, int outerOffset, int outerLen, int line, int col) 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
handleDocType
(char[] buffer, int keywordOffset, int keywordLen, int keywordLine, int keywordCol, int elementNameOffset, int elementNameLen, int elementNameLine, int elementNameCol, int typeOffset, int typeLen, int typeLine, int typeCol, int publicIdOffset, int publicIdLen, int publicIdLine, int publicIdCol, int systemIdOffset, int systemIdLen, int systemIdLine, int systemIdCol, int internalSubsetOffset, int internalSubsetLen, int internalSubsetLine, int internalSubsetCol, int outerOffset, int outerLen, int outerLine, int outerCol) void
handleDocumentEnd
(long endTimeNanos, long totalTimeNanos, int line, int col) void
handleDocumentStart
(long startTimeNanos, int line, int col) void
handleInnerWhiteSpace
(char[] buffer, int offset, int len, 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
handleProcessingInstruction
(char[] buffer, int targetOffset, int targetLen, int targetLine, int targetCol, int contentOffset, int contentLen, int contentLine, int contentCol, int outerOffset, int outerLen, 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) void
handleUnmatchedCloseElementEnd
(char[] buffer, int nameOffset, int nameLen, int line, int col) void
handleUnmatchedCloseElementStart
(char[] buffer, int nameOffset, int nameLen, int line, int col) void
handleXmlDeclaration
(char[] buffer, int keywordOffset, int keywordLen, int keywordLine, int keywordCol, int versionOffset, int versionLen, int versionLine, int versionCol, int encodingOffset, int encodingLen, int encodingLine, int encodingCol, int standaloneOffset, int standaloneLen, int standaloneLine, int standaloneCol, int outerOffset, int outerLen, int line, int col) Methods inherited from class org.attoparser.AbstractMarkupHandler
setParseConfiguration, setParseSelection, setParseStatus
-
Constructor Details
-
TemplateHandlerAdapterMarkupHandler
public TemplateHandlerAdapterMarkupHandler(String templateName, ITemplateHandler templateHandler, ElementDefinitions elementDefinitions, AttributeDefinitions attributeDefinitions, TemplateMode templateMode, int lineOffset, int colOffset)
-
-
Method Details
-
handleDocumentStart
public void handleDocumentStart(long startTimeNanos, int line, int col) throws org.attoparser.ParseException - Specified by:
handleDocumentStart
in interfaceorg.attoparser.IDocumentHandler
- Overrides:
handleDocumentStart
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleDocumentEnd
public void handleDocumentEnd(long endTimeNanos, long totalTimeNanos, int line, int col) throws org.attoparser.ParseException - Specified by:
handleDocumentEnd
in interfaceorg.attoparser.IDocumentHandler
- Overrides:
handleDocumentEnd
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleXmlDeclaration
public void handleXmlDeclaration(char[] buffer, int keywordOffset, int keywordLen, int keywordLine, int keywordCol, int versionOffset, int versionLen, int versionLine, int versionCol, int encodingOffset, int encodingLen, int encodingLine, int encodingCol, int standaloneOffset, int standaloneLen, int standaloneLine, int standaloneCol, int outerOffset, int outerLen, int line, int col) throws org.attoparser.ParseException - Specified by:
handleXmlDeclaration
in interfaceorg.attoparser.IXMLDeclarationHandler
- Overrides:
handleXmlDeclaration
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleDocType
public void handleDocType(char[] buffer, int keywordOffset, int keywordLen, int keywordLine, int keywordCol, int elementNameOffset, int elementNameLen, int elementNameLine, int elementNameCol, int typeOffset, int typeLen, int typeLine, int typeCol, int publicIdOffset, int publicIdLen, int publicIdLine, int publicIdCol, int systemIdOffset, int systemIdLen, int systemIdLine, int systemIdCol, int internalSubsetOffset, int internalSubsetLen, int internalSubsetLine, int internalSubsetCol, int outerOffset, int outerLen, int outerLine, int outerCol) throws org.attoparser.ParseException - Specified by:
handleDocType
in interfaceorg.attoparser.IDocTypeHandler
- Overrides:
handleDocType
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleCDATASection
public void handleCDATASection(char[] buffer, int contentOffset, int contentLen, int outerOffset, int outerLen, int line, int col) throws org.attoparser.ParseException - Specified by:
handleCDATASection
in interfaceorg.attoparser.ICDATASectionHandler
- Overrides:
handleCDATASection
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleComment
public void handleComment(char[] buffer, int contentOffset, int contentLen, int outerOffset, int outerLen, int line, int col) throws org.attoparser.ParseException - Specified by:
handleComment
in interfaceorg.attoparser.ICommentHandler
- Overrides:
handleComment
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleText
public void handleText(char[] buffer, int offset, int len, int line, int col) throws org.attoparser.ParseException - Specified by:
handleText
in interfaceorg.attoparser.ITextHandler
- Overrides:
handleText
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleStandaloneElementStart
public void handleStandaloneElementStart(char[] buffer, int nameOffset, int nameLen, boolean minimized, int line, int col) throws org.attoparser.ParseException - Specified by:
handleStandaloneElementStart
in interfaceorg.attoparser.IElementHandler
- Overrides:
handleStandaloneElementStart
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleStandaloneElementEnd
public void handleStandaloneElementEnd(char[] buffer, int nameOffset, int nameLen, boolean minimized, int line, int col) throws org.attoparser.ParseException - Specified by:
handleStandaloneElementEnd
in interfaceorg.attoparser.IElementHandler
- Overrides:
handleStandaloneElementEnd
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleOpenElementStart
public void handleOpenElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws org.attoparser.ParseException - Specified by:
handleOpenElementStart
in interfaceorg.attoparser.IElementHandler
- Overrides:
handleOpenElementStart
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleOpenElementEnd
public void handleOpenElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col) throws org.attoparser.ParseException - Specified by:
handleOpenElementEnd
in interfaceorg.attoparser.IElementHandler
- Overrides:
handleOpenElementEnd
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleAutoOpenElementStart
public void handleAutoOpenElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws org.attoparser.ParseException - Specified by:
handleAutoOpenElementStart
in interfaceorg.attoparser.IElementHandler
- Overrides:
handleAutoOpenElementStart
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleAutoOpenElementEnd
public void handleAutoOpenElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col) throws org.attoparser.ParseException - Specified by:
handleAutoOpenElementEnd
in interfaceorg.attoparser.IElementHandler
- Overrides:
handleAutoOpenElementEnd
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleCloseElementStart
public void handleCloseElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws org.attoparser.ParseException - Specified by:
handleCloseElementStart
in interfaceorg.attoparser.IElementHandler
- Overrides:
handleCloseElementStart
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleCloseElementEnd
public void handleCloseElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col) throws org.attoparser.ParseException - Specified by:
handleCloseElementEnd
in interfaceorg.attoparser.IElementHandler
- Overrides:
handleCloseElementEnd
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleAutoCloseElementStart
public void handleAutoCloseElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws org.attoparser.ParseException - Specified by:
handleAutoCloseElementStart
in interfaceorg.attoparser.IElementHandler
- Overrides:
handleAutoCloseElementStart
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleAutoCloseElementEnd
public void handleAutoCloseElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col) throws org.attoparser.ParseException - Specified by:
handleAutoCloseElementEnd
in interfaceorg.attoparser.IElementHandler
- Overrides:
handleAutoCloseElementEnd
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleUnmatchedCloseElementStart
public void handleUnmatchedCloseElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws org.attoparser.ParseException - Specified by:
handleUnmatchedCloseElementStart
in interfaceorg.attoparser.IElementHandler
- Overrides:
handleUnmatchedCloseElementStart
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleUnmatchedCloseElementEnd
public void handleUnmatchedCloseElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col) throws org.attoparser.ParseException - Specified by:
handleUnmatchedCloseElementEnd
in interfaceorg.attoparser.IElementHandler
- Overrides:
handleUnmatchedCloseElementEnd
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
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 org.attoparser.ParseException - Specified by:
handleAttribute
in interfaceorg.attoparser.IAttributeSequenceHandler
- Overrides:
handleAttribute
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleInnerWhiteSpace
public void handleInnerWhiteSpace(char[] buffer, int offset, int len, int line, int col) throws org.attoparser.ParseException - Specified by:
handleInnerWhiteSpace
in interfaceorg.attoparser.IAttributeSequenceHandler
- Overrides:
handleInnerWhiteSpace
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-
handleProcessingInstruction
public void handleProcessingInstruction(char[] buffer, int targetOffset, int targetLen, int targetLine, int targetCol, int contentOffset, int contentLen, int contentLine, int contentCol, int outerOffset, int outerLen, int line, int col) throws org.attoparser.ParseException - Specified by:
handleProcessingInstruction
in interfaceorg.attoparser.IProcessingInstructionHandler
- Overrides:
handleProcessingInstruction
in classorg.attoparser.AbstractMarkupHandler
- Throws:
org.attoparser.ParseException
-