Class CssTagSelectorItem

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean isUniversal
      Indicates if the selector is universally valid.
      private java.lang.String tagName
      The tag name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getSpecificity()
      Gets the specificity.
      boolean matches​(INode node)
      Checks if the selector matches an element.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • tagName

        private java.lang.String tagName
        The tag name.
      • isUniversal

        private boolean isUniversal
        Indicates if the selector is universally valid.
    • Constructor Detail

      • CssTagSelectorItem

        public CssTagSelectorItem​(java.lang.String tagName)
        Creates a new CssTagSelectorItem instance.
        Parameters:
        tagName - the tag name
    • Method Detail

      • matches

        public boolean matches​(INode node)
        Description copied from interface: ICssSelectorItem
        Checks if the selector matches an element.
        Specified by:
        matches in interface ICssSelectorItem
        Parameters:
        node - the element
        Returns:
        true, if there's a match
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object