Interface ICssSelectorItem

All Known Implementing Classes:
CssAttributeSelectorItem, CssClassSelectorItem, CssIdSelectorItem, CssPagePseudoClassSelectorItem, CssPageTypeSelectorItem, CssPseudoClassSelectorItem, CssPseudoElementSelectorItem, CssSeparatorSelectorItem, CssTagSelectorItem

public interface ICssSelectorItem
Interface for CSS selector items.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the specificity.
    boolean
    matches(INode element)
    Checks if the selector matches an element.
  • Method Details

    • getSpecificity

      int getSpecificity()
      Gets the specificity.
      Returns:
      the specificity
    • matches

      boolean matches (INode element)
      Checks if the selector matches an element.
      Parameters:
      element - the element
      Returns:
      true, if there's a match