Class TemplateHandlerAdapterMarkupHandler

java.lang.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
  • Field Details

    • templateName

      private final String templateName
    • templateHandler

      private final ITemplateHandler templateHandler
    • elementDefinitions

      private final ElementDefinitions elementDefinitions
    • attributeDefinitions

      private final AttributeDefinitions attributeDefinitions
    • templateMode

      private final TemplateMode templateMode
    • lineOffset

      private final int lineOffset
    • colOffset

      private final int colOffset
    • currentElementLine

      private int currentElementLine
    • currentElementCol

      private int currentElementCol
    • currentElementAttributes

      private final List<Attribute> currentElementAttributes
    • currentElementInnerWhiteSpaces

      private final List<String> currentElementInnerWhiteSpaces
  • Constructor Details

  • Method Details

    • handleDocumentStart

      public void handleDocumentStart(long startTimeNanos, int line, int col) throws org.attoparser.ParseException
      Specified by:
      handleDocumentStart in interface org.attoparser.IDocumentHandler
      Overrides:
      handleDocumentStart in class org.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 interface org.attoparser.IDocumentHandler
      Overrides:
      handleDocumentEnd in class org.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 interface org.attoparser.IXMLDeclarationHandler
      Overrides:
      handleXmlDeclaration in class org.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 interface org.attoparser.IDocTypeHandler
      Overrides:
      handleDocType in class org.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 interface org.attoparser.ICDATASectionHandler
      Overrides:
      handleCDATASection in class org.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 interface org.attoparser.ICommentHandler
      Overrides:
      handleComment in class org.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 interface org.attoparser.ITextHandler
      Overrides:
      handleText in class org.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 interface org.attoparser.IElementHandler
      Overrides:
      handleStandaloneElementStart in class org.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 interface org.attoparser.IElementHandler
      Overrides:
      handleStandaloneElementEnd in class org.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 interface org.attoparser.IElementHandler
      Overrides:
      handleOpenElementStart in class org.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 interface org.attoparser.IElementHandler
      Overrides:
      handleOpenElementEnd in class org.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 interface org.attoparser.IElementHandler
      Overrides:
      handleAutoOpenElementStart in class org.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 interface org.attoparser.IElementHandler
      Overrides:
      handleAutoOpenElementEnd in class org.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 interface org.attoparser.IElementHandler
      Overrides:
      handleCloseElementStart in class org.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 interface org.attoparser.IElementHandler
      Overrides:
      handleCloseElementEnd in class org.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 interface org.attoparser.IElementHandler
      Overrides:
      handleAutoCloseElementStart in class org.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 interface org.attoparser.IElementHandler
      Overrides:
      handleAutoCloseElementEnd in class org.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 interface org.attoparser.IElementHandler
      Overrides:
      handleUnmatchedCloseElementStart in class org.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 interface org.attoparser.IElementHandler
      Overrides:
      handleUnmatchedCloseElementEnd in class org.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 interface org.attoparser.IAttributeSequenceHandler
      Overrides:
      handleAttribute in class org.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 interface org.attoparser.IAttributeSequenceHandler
      Overrides:
      handleInnerWhiteSpace in class org.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 interface org.attoparser.IProcessingInstructionHandler
      Overrides:
      handleProcessingInstruction in class org.attoparser.AbstractMarkupHandler
      Throws:
      org.attoparser.ParseException