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
Fields Modifier and Type Field Description (package private) java.lang.StringtrailingWhiteSpace(package private) booleanunmatched-
Fields inherited from class org.thymeleaf.engine.AbstractElementTag
elementCompleteName, elementDefinition, synthetic, templateMode
-
Fields inherited from class org.thymeleaf.engine.AbstractTemplateEvent
col, line, templateName
-
-
Constructor Summary
Constructors Constructor Description CloseElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, java.lang.String elementCompleteName, java.lang.String trailingWhiteSpace, boolean synthetic, boolean unmatched)CloseElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, java.lang.String elementCompleteName, java.lang.String trailingWhiteSpace, boolean synthetic, boolean unmatched, java.lang.String templateName, int line, int col)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(IModelVisitor visitor)Accept a visitor, implementation ofIModelVisitor.(package private) static CloseElementTagasEngineCloseElementTag(ICloseElementTag closeElementTag)voidbeHandled(ITemplateHandler handler)booleanisUnmatched()Returns whether this close tag is unmatched, i.e.voidwrite(java.io.Writer writer)Writes this event to the specifiedWriter.-
Methods inherited from class org.thymeleaf.engine.AbstractElementTag
getElementCompleteName, getElementDefinition, getTemplateMode, isSynthetic, toString
-
Methods inherited from class org.thymeleaf.engine.AbstractTemplateEvent
getCol, getLine, getTemplateName, hasLocation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.thymeleaf.model.IElementTag
getElementCompleteName, getElementDefinition, getTemplateMode, isSynthetic
-
Methods inherited from interface org.thymeleaf.model.ITemplateEvent
getCol, getLine, getTemplateName, hasLocation
-
-
-
-
Constructor Detail
-
CloseElementTag
CloseElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, java.lang.String elementCompleteName, java.lang.String trailingWhiteSpace, boolean synthetic, boolean unmatched)
-
CloseElementTag
CloseElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, java.lang.String elementCompleteName, java.lang.String trailingWhiteSpace, boolean synthetic, boolean unmatched, java.lang.String templateName, int line, int col)
-
-
Method Detail
-
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
public void accept(IModelVisitor visitor)
Description copied from interface:ITemplateEventAccept a visitor, implementation of
IModelVisitor.- Specified by:
acceptin interfaceITemplateEvent- Parameters:
visitor- the visitor.
-
write
public void write(java.io.Writer writer) throws java.io.IOExceptionDescription 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:
java.io.IOException- if an input/output exception occurs.
-
asEngineCloseElementTag
static CloseElementTag asEngineCloseElementTag(ICloseElementTag closeElementTag)
-
beHandled
public void beHandled(ITemplateHandler handler)
- Specified by:
beHandledin interfaceIEngineTemplateEvent
-
-