Interface ICssSelector
-
- All Known Implementing Classes:
AbstractCssSelector,CssPageMarginBoxSelector,CssPageSelector,CssSelector
public interface ICssSelectorInterface for CSS Selector classes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcalculateSpecificity()Calculates the specificity.booleanmatches(INode node)Checks if a node matches the selector.
-
-
-
Method Detail
-
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
-
-