Class ITemplateEventExtensions


  • public class ITemplateEventExtensions
    extends Object
    Meta-programming extensions to the ITemplateEvent class.
    Author:
    zhanhb, Emanuel Rabina
    • Constructor Detail

      • ITemplateEventExtensions

        public ITemplateEventExtensions()
    • Method Detail

      • isClosingElement

        public static boolean isClosingElement​(ITemplateEvent self)
        Returns whether or not this event represents an opening element.
        Parameters:
        self -
        Returns:
        true if 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:
        true if 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:
        true if 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:
        true if 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:
        true if this is a collapsible text node.