Package org.thymeleaf.engine
Class Text
java.lang.Object
org.thymeleaf.engine.AbstractTemplateEvent
org.thymeleaf.engine.AbstractTextualTemplateEvent
org.thymeleaf.engine.Text
- All Implemented Interfaces:
CharSequence,IEngineTemplateEvent,ITemplateEvent,IText
-
Field Summary
Fields inherited from class org.thymeleaf.engine.AbstractTemplateEvent
col, line, templateName -
Constructor Summary
ConstructorsConstructorDescriptionText(CharSequence text) Text(CharSequence text, String templateName, int line, int col) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IModelVisitor visitor) Accept a visitor, implementation ofIModelVisitor.(package private) static TextasEngineText(IText text) voidbeHandled(ITemplateHandler handler) charcharAt(int index) getText()Returns the Text as a String.intlength()subSequence(int start, int end) toString()voidWrites this event to the specifiedWriter.Methods inherited from class org.thymeleaf.engine.AbstractTextualTemplateEvent
charAtContent, contentSubSequence, getContentLength, getContentText, isInlineable, isWhitespace, writeContentMethods inherited from class org.thymeleaf.engine.AbstractTemplateEvent
getCol, getLine, getTemplateName, hasLocationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePointsMethods inherited from interface org.thymeleaf.model.ITemplateEvent
getCol, getLine, getTemplateName, hasLocation
-
Constructor Details
-
Text
Text(CharSequence text) -
Text
Text(CharSequence text, String templateName, int line, int col)
-
-
Method Details
-
getText
Description copied from interface:ITextReturns the Text as a String.
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
accept
Description copied from interface:ITemplateEventAccept a visitor, implementation of
IModelVisitor.- Specified by:
acceptin interfaceITemplateEvent- Parameters:
visitor- the visitor.
-
write
Description copied from interface:ITemplateEventWrites this event to the specified
Writer.Template output performed at
OutputTemplateHandleris done by calling these methods at each of the events resulting from template processing.- Specified by:
writein interfaceITemplateEvent- Parameters:
writer- the writer this event should be written to.- Throws:
IOException- if an input/output exception occurs.
-
asEngineText
-
beHandled
- Specified by:
beHandledin interfaceIEngineTemplateEvent
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classAbstractTextualTemplateEvent
-