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
Constructors Constructor Description TemplateHandlerAdapterMarkupHandler(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)voidhandleAutoCloseElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col)voidhandleAutoCloseElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col)voidhandleAutoOpenElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col)voidhandleAutoOpenElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col)voidhandleCDATASection(char[] buffer, int contentOffset, int contentLen, int outerOffset, int outerLen, int line, int col)voidhandleCloseElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col)voidhandleCloseElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col)voidhandleComment(char[] buffer, int contentOffset, int contentLen, int outerOffset, int outerLen, int line, int col)voidhandleDocType(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)voidhandleDocumentEnd(long endTimeNanos, long totalTimeNanos, int line, int col)voidhandleDocumentStart(long startTimeNanos, int line, int col)voidhandleInnerWhiteSpace(char[] buffer, int offset, int len, 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)voidhandleProcessingInstruction(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)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)voidhandleUnmatchedCloseElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col)voidhandleUnmatchedCloseElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col)voidhandleXmlDeclaration(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)
-
-
-
Constructor Detail
-
TemplateHandlerAdapterMarkupHandler
public TemplateHandlerAdapterMarkupHandler(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 org.attoparser.ParseException- Specified by:
handleDocumentStartin interfaceorg.attoparser.IDocumentHandler- Overrides:
handleDocumentStartin 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:
handleDocumentEndin interfaceorg.attoparser.IDocumentHandler- Overrides:
handleDocumentEndin 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:
handleXmlDeclarationin interfaceorg.attoparser.IXMLDeclarationHandler- Overrides:
handleXmlDeclarationin 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:
handleDocTypein interfaceorg.attoparser.IDocTypeHandler- Overrides:
handleDocTypein 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:
handleCDATASectionin interfaceorg.attoparser.ICDATASectionHandler- Overrides:
handleCDATASectionin 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:
handleCommentin interfaceorg.attoparser.ICommentHandler- Overrides:
handleCommentin 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:
handleTextin interfaceorg.attoparser.ITextHandler- Overrides:
handleTextin 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:
handleStandaloneElementStartin interfaceorg.attoparser.IElementHandler- Overrides:
handleStandaloneElementStartin 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:
handleStandaloneElementEndin interfaceorg.attoparser.IElementHandler- Overrides:
handleStandaloneElementEndin 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:
handleOpenElementStartin interfaceorg.attoparser.IElementHandler- Overrides:
handleOpenElementStartin 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:
handleOpenElementEndin interfaceorg.attoparser.IElementHandler- Overrides:
handleOpenElementEndin 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:
handleAutoOpenElementStartin interfaceorg.attoparser.IElementHandler- Overrides:
handleAutoOpenElementStartin 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:
handleAutoOpenElementEndin interfaceorg.attoparser.IElementHandler- Overrides:
handleAutoOpenElementEndin 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:
handleCloseElementStartin interfaceorg.attoparser.IElementHandler- Overrides:
handleCloseElementStartin 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:
handleCloseElementEndin interfaceorg.attoparser.IElementHandler- Overrides:
handleCloseElementEndin 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:
handleAutoCloseElementStartin interfaceorg.attoparser.IElementHandler- Overrides:
handleAutoCloseElementStartin 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:
handleAutoCloseElementEndin interfaceorg.attoparser.IElementHandler- Overrides:
handleAutoCloseElementEndin 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:
handleUnmatchedCloseElementStartin interfaceorg.attoparser.IElementHandler- Overrides:
handleUnmatchedCloseElementStartin 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:
handleUnmatchedCloseElementEndin interfaceorg.attoparser.IElementHandler- Overrides:
handleUnmatchedCloseElementEndin 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:
handleAttributein interfaceorg.attoparser.IAttributeSequenceHandler- Overrides:
handleAttributein 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:
handleInnerWhiteSpacein interfaceorg.attoparser.IAttributeSequenceHandler- Overrides:
handleInnerWhiteSpacein 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:
handleProcessingInstructionin interfaceorg.attoparser.IProcessingInstructionHandler- Overrides:
handleProcessingInstructionin classorg.attoparser.AbstractMarkupHandler- Throws:
org.attoparser.ParseException
-
-