Class EventProcessorTextHandler
java.lang.Object
org.thymeleaf.templateparser.text.AbstractTextHandler
org.thymeleaf.templateparser.text.AbstractChainedTextHandler
org.thymeleaf.templateparser.text.EventProcessorTextHandler
- All Implemented Interfaces:
ITextHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate char[][]private intprivate static final intprivate static final intprivate char[][]private int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancheckStackForElement(char[] buffer, int offset, int len, int line, int col) private voidvoidhandleAttribute(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) voidhandleCloseElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) voidhandleDocumentEnd(long endTimeNanos, long totalTimeNanos, int line, int col) voidhandleOpenElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) voidhandleStandaloneElementStart(char[] buffer, int nameOffset, int nameLen, boolean minimized, int line, int col) private char[]private char[]private voidpushToStack(char[] buffer, int offset, int len) Methods inherited from class org.thymeleaf.templateparser.text.AbstractChainedTextHandler
getNext, handleCloseElementEnd, handleComment, handleDocumentStart, handleOpenElementEnd, handleStandaloneElementEnd, handleText
-
Field Details
-
DEFAULT_STACK_LEN
private static final int DEFAULT_STACK_LEN- See Also:
-
DEFAULT_ATTRIBUTE_NAMES_LEN
private static final int DEFAULT_ATTRIBUTE_NAMES_LEN- See Also:
-
structureNamesRepository
-
elementStack
private char[][] elementStack -
elementStackSize
private int elementStackSize -
currentElementAttributeNames
private char[][] currentElementAttributeNames -
currentElementAttributeNamesSize
private int currentElementAttributeNamesSize
-
-
Constructor Details
-
EventProcessorTextHandler
EventProcessorTextHandler(ITextHandler handler)
-
-
Method Details
-
handleDocumentEnd
public void handleDocumentEnd(long endTimeNanos, long totalTimeNanos, int line, int col) throws TextParseException - Specified by:
handleDocumentEndin interfaceITextHandler- Overrides:
handleDocumentEndin classAbstractChainedTextHandler- Throws:
TextParseException
-
handleStandaloneElementStart
public void handleStandaloneElementStart(char[] buffer, int nameOffset, int nameLen, boolean minimized, int line, int col) throws TextParseException - Specified by:
handleStandaloneElementStartin interfaceITextHandler- Overrides:
handleStandaloneElementStartin classAbstractChainedTextHandler- Throws:
TextParseException
-
handleOpenElementStart
public void handleOpenElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws TextParseException - Specified by:
handleOpenElementStartin interfaceITextHandler- Overrides:
handleOpenElementStartin classAbstractChainedTextHandler- Throws:
TextParseException
-
handleCloseElementStart
public void handleCloseElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws TextParseException - Specified by:
handleCloseElementStartin interfaceITextHandler- Overrides:
handleCloseElementStartin classAbstractChainedTextHandler- 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:
handleAttributein interfaceITextHandler- Overrides:
handleAttributein classAbstractChainedTextHandler- Throws:
TextParseException
-
checkStackForElement
private boolean checkStackForElement(char[] buffer, int offset, int len, int line, int col) throws TextParseException - Throws:
TextParseException
-
pushToStack
private void pushToStack(char[] buffer, int offset, int len) -
peekFromStack
private char[] peekFromStack() -
popFromStack
private char[] popFromStack() -
growStack
private void growStack()
-