Class EventProcessorTextHandler
- java.lang.Object
-
- org.thymeleaf.templateparser.text.AbstractTextHandler
-
- org.thymeleaf.templateparser.text.AbstractChainedTextHandler
-
- org.thymeleaf.templateparser.text.EventProcessorTextHandler
-
- All Implemented Interfaces:
ITextHandler
final class EventProcessorTextHandler extends AbstractChainedTextHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classEventProcessorTextHandler.StructureNamesRepository
-
Field Summary
Fields Modifier and Type Field Description private char[][]currentElementAttributeNamesprivate intcurrentElementAttributeNamesSizeprivate static intDEFAULT_ATTRIBUTE_NAMES_LENprivate static intDEFAULT_STACK_LENprivate char[][]elementStackprivate intelementStackSizeprivate EventProcessorTextHandler.StructureNamesRepositorystructureNamesRepository
-
Constructor Summary
Constructors Constructor Description EventProcessorTextHandler(ITextHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleancheckStackForElement(char[] buffer, int offset, int len, int line, int col)private voidgrowStack()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)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[]peekFromStack()private char[]popFromStack()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 Detail
-
DEFAULT_STACK_LEN
private static final int DEFAULT_STACK_LEN
- See Also:
- Constant Field Values
-
DEFAULT_ATTRIBUTE_NAMES_LEN
private static final int DEFAULT_ATTRIBUTE_NAMES_LEN
- See Also:
- Constant Field Values
-
structureNamesRepository
private EventProcessorTextHandler.StructureNamesRepository structureNamesRepository
-
elementStack
private char[][] elementStack
-
elementStackSize
private int elementStackSize
-
currentElementAttributeNames
private char[][] currentElementAttributeNames
-
currentElementAttributeNamesSize
private int currentElementAttributeNamesSize
-
-
Constructor Detail
-
EventProcessorTextHandler
EventProcessorTextHandler(ITextHandler handler)
-
-
Method Detail
-
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()
-
-