Package org.thymeleaf.engine
Class CloseElementTag
java.lang.Object
org.thymeleaf.engine.AbstractTemplateEvent
org.thymeleaf.engine.AbstractElementTag
org.thymeleaf.engine.CloseElementTag
- All Implemented Interfaces:
IEngineTemplateEvent,ICloseElementTag,IElementTag,ITemplateEvent
final class CloseElementTag
extends AbstractElementTag
implements ICloseElementTag, IEngineTemplateEvent
- Since:
- 3.0.0
-
Field Summary
FieldsFields inherited from class org.thymeleaf.engine.AbstractElementTag
elementCompleteName, elementDefinition, synthetic, templateModeFields inherited from class org.thymeleaf.engine.AbstractTemplateEvent
col, line, templateName -
Constructor Summary
ConstructorsConstructorDescriptionCloseElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, String elementCompleteName, String trailingWhiteSpace, boolean synthetic, boolean unmatched) CloseElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, String elementCompleteName, String trailingWhiteSpace, boolean synthetic, boolean unmatched, String templateName, int line, int col) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IModelVisitor visitor) Accept a visitor, implementation ofIModelVisitor.(package private) static CloseElementTagasEngineCloseElementTag(ICloseElementTag closeElementTag) voidbeHandled(ITemplateHandler handler) booleanReturns whether this close tag is unmatched, i.e.voidWrites this event to the specifiedWriter.Methods inherited from class org.thymeleaf.engine.AbstractElementTag
getElementCompleteName, getElementDefinition, getTemplateMode, isSynthetic, toStringMethods 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 org.thymeleaf.model.IElementTag
getElementCompleteName, getElementDefinition, getTemplateMode, isSyntheticMethods inherited from interface org.thymeleaf.model.ITemplateEvent
getCol, getLine, getTemplateName, hasLocation
-
Field Details
-
trailingWhiteSpace
-
unmatched
final boolean unmatched
-
-
Constructor Details
-
CloseElementTag
CloseElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, String elementCompleteName, String trailingWhiteSpace, boolean synthetic, boolean unmatched) -
CloseElementTag
CloseElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, String elementCompleteName, String trailingWhiteSpace, boolean synthetic, boolean unmatched, String templateName, int line, int col)
-
-
Method Details
-
isUnmatched
public boolean isUnmatched()Description copied from interface:ICloseElementTagReturns whether this close tag is unmatched, i.e. there is no corresponding previous open tag for it.
- Specified by:
isUnmatchedin interfaceICloseElementTag- Returns:
- true if the tag is unmatched, false if not.
-
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.
-
asEngineCloseElementTag
-
beHandled
- Specified by:
beHandledin interfaceIEngineTemplateEvent
-