Interface ICssSelector

All Known Implementing Classes:
AbstractCssSelector, CssPageMarginBoxSelector, CssPageSelector, CssSelector

public interface ICssSelector
Interface for CSS Selector classes.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Calculates the specificity.
    boolean
    matches(INode node)
    Checks if a node matches the selector.
  • Method Details

    • calculateSpecificity

      int calculateSpecificity()
      Calculates the specificity.
      Returns:
      the specificity
    • matches

      boolean matches (INode node)
      Checks if a node matches the selector.
      Parameters:
      node - the node
      Returns:
      true, if the selector is a match for the node