public final class TemplateHandlerAdapterTextHandler extends AbstractTextHandler
Constructor and Description |
---|
TemplateHandlerAdapterTextHandler(String templateName,
ITemplateHandler templateHandler,
ElementDefinitions elementDefinitions,
AttributeDefinitions attributeDefinitions,
TemplateMode templateMode,
int lineOffset,
int colOffset) |
Modifier and Type | Method and 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 |
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) |
handleComment
public TemplateHandlerAdapterTextHandler(String templateName, ITemplateHandler templateHandler, ElementDefinitions elementDefinitions, AttributeDefinitions attributeDefinitions, TemplateMode templateMode, int lineOffset, int colOffset)
public void handleDocumentStart(long startTimeNanos, int line, int col) throws TextParseException
handleDocumentStart
in interface ITextHandler
handleDocumentStart
in class AbstractTextHandler
TextParseException
public void handleDocumentEnd(long endTimeNanos, long totalTimeNanos, int line, int col) throws TextParseException
handleDocumentEnd
in interface ITextHandler
handleDocumentEnd
in class AbstractTextHandler
TextParseException
public void handleText(char[] buffer, int offset, int len, int line, int col) throws TextParseException
handleText
in interface ITextHandler
handleText
in class AbstractTextHandler
TextParseException
public void handleStandaloneElementStart(char[] buffer, int nameOffset, int nameLen, boolean minimized, int line, int col) throws TextParseException
handleStandaloneElementStart
in interface ITextHandler
handleStandaloneElementStart
in class AbstractTextHandler
TextParseException
public void handleStandaloneElementEnd(char[] buffer, int nameOffset, int nameLen, boolean minimized, int line, int col) throws TextParseException
handleStandaloneElementEnd
in interface ITextHandler
handleStandaloneElementEnd
in class AbstractTextHandler
TextParseException
public void handleOpenElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws TextParseException
handleOpenElementStart
in interface ITextHandler
handleOpenElementStart
in class AbstractTextHandler
TextParseException
public void handleOpenElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col) throws TextParseException
handleOpenElementEnd
in interface ITextHandler
handleOpenElementEnd
in class AbstractTextHandler
TextParseException
public void handleCloseElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws TextParseException
handleCloseElementStart
in interface ITextHandler
handleCloseElementStart
in class AbstractTextHandler
TextParseException
public void handleCloseElementEnd(char[] buffer, int nameOffset, int nameLen, int line, int col) throws TextParseException
handleCloseElementEnd
in interface ITextHandler
handleCloseElementEnd
in class AbstractTextHandler
TextParseException
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
handleAttribute
in interface ITextHandler
handleAttribute
in class AbstractTextHandler
TextParseException
Copyright © 2016 The THYMELEAF team. All rights reserved.