Class ITemplateEventExtensions
- java.lang.Object
-
- nz.net.ultraq.thymeleaf.layoutdialect.models.extensions.ITemplateEventExtensions
-
public class ITemplateEventExtensions extends Object
Meta-programming extensions to theITemplateEventclass.- Author:
- zhanhb, Emanuel Rabina
-
-
Constructor Summary
Constructors Constructor Description ITemplateEventExtensions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanequals(ITemplateEvent event, Object other)static booleanisClosingElement(ITemplateEvent self)Returns whether or not this event represents an opening element.static booleanisClosingElementOf(ITemplateEvent self, String tagName)Returns whether or not this event represents a closing element of the given name.static booleanisOpeningElement(ITemplateEvent self)Returns whether or not this event represents an opening element.static booleanisOpeningElementOf(ITemplateEvent self, String tagName)Returns whether or not this event represents an opening element of the given name.static booleanisWhitespace(ITemplateEvent self)Returns whether or not this event represents collapsible whitespace.
-
-
-
Method Detail
-
isClosingElement
public static boolean isClosingElement(ITemplateEvent self)
Returns whether or not this event represents an opening element.- Parameters:
self-- Returns:
trueif this event is an opening tag.
-
isClosingElementOf
public static boolean isClosingElementOf(ITemplateEvent self, String tagName)
Returns whether or not this event represents a closing element of the given name.- Parameters:
self-tagName-- Returns:
trueif this event is a closing tag and has the given tag name.
-
isOpeningElement
public static boolean isOpeningElement(ITemplateEvent self)
Returns whether or not this event represents an opening element.- Parameters:
self-- Returns:
trueif this event is an opening tag.
-
isOpeningElementOf
public static boolean isOpeningElementOf(ITemplateEvent self, String tagName)
Returns whether or not this event represents an opening element of the given name.- Parameters:
self-tagName-- Returns:
trueif this event is an opening tag and has the given tag name.
-
isWhitespace
public static boolean isWhitespace(ITemplateEvent self)
Returns whether or not this event represents collapsible whitespace.- Parameters:
self-- Returns:
trueif this is a collapsible text node.
-
equals
public static boolean equals(@Nullable ITemplateEvent event, @Nullable Object other)
-
-