Class CssClassSelectorItem

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String className
      The class 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

      • className

        private java.lang.String className
        The class name.
    • Constructor Detail

      • CssClassSelectorItem

        public CssClassSelectorItem​(java.lang.String className)
        Creates a new CssClassSelectorItem instance.
        Parameters:
        className - the class name
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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