public abstract class Combinator extends java.lang.Object implements Selector
The specificity of a combinator is the sum of the specificities of its selectors.
Constructor and Description |
---|
Combinator(Selector firstSelector,
Selector secondSelector)
Creates a combinator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Selector |
getFirstSelector()
Returns the first selector of this combinator.
|
Selector |
getSecondSelector()
Returns the second selector of this combinator.
|
int |
getSpecificity()
Returns the specificity of this selector.
|
int |
hashCode() |
clone, getClass, notify, notifyAll, toString, wait, wait, wait
appliesToWidget
public Selector getFirstSelector()
public Selector getSecondSelector()
public int getSpecificity()
Selector
The specificity allows to determine in which order the rules of a stylesheet should be applied.
A specificity is composed of four numbers (defined by CSS2 specification):
SelectorHelper
provides a method to
compute the specificity of a selector.getSpecificity
in interface Selector
public boolean equals(@Nullable java.lang.Object obj)
public int hashCode()
hashCode
in class java.lang.Object