Interface ICssSelector
-
- All Known Implementing Classes:
AbstractCssSelector
,CssPageMarginBoxSelector
,CssPageSelector
,CssSelector
public interface ICssSelector
Interface for CSS Selector classes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
calculateSpecificity()
Calculates the specificity.boolean
matches(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
-
-