Class SelectorSpecificity
java.lang.Object
org.htmlunit.cssparser.parser.selector.SelectorSpecificity
- All Implemented Interfaces:
Serializable
,Comparable<SelectorSpecificity>
public class SelectorSpecificity
extends Object
implements Comparable<SelectorSpecificity>, Serializable
Calculates a selector's specificity.
- Author:
- Marc Guillemot, Ronald Brill
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SelectorSpecificity
The specificity for browser defaults.static final SelectorSpecificity
The specificity for declarations made in the style attributes of an element. -
Constructor Summary
-
Method Summary
-
Field Details
-
FROM_STYLE_ATTRIBUTE
The specificity for declarations made in the style attributes of an element. -
DEFAULT_STYLE_ATTRIBUTE
The specificity for browser defaults.
-
-
Constructor Details
-
SelectorSpecificity
Ctor.- Parameters:
selector
- the selector to read from
-
-
Method Details
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SelectorSpecificity>
-
hashCode
public int hashCode() -
equals
-