Interface ICssSelector
- All Known Implementing Classes:
-
AbstractCssSelector
,CssPageMarginBoxSelector
,CssPageSelector
,CssSelector
public interface ICssSelector
Interface for CSS Selector classes.
-
Method Summary
Modifier and TypeMethodDescriptionint
Calculates the specificity.boolean
Checks if a node matches the selector.
-
Method Details
-
calculateSpecificity
int calculateSpecificity()Calculates the specificity.- Returns:
- the specificity
-
matches
Checks if a node matches the selector.- Parameters:
-
node
- the node - Returns:
- true, if the selector is a match for the node
-