Rule to determine whether or not the selector applies to a
given object.
Returned by Selector matches in the event of a match.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| private final Set | |
| private final Selector | |
| pack-priv final int | |
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the difference between the specificity of this object and the specificity of the givenMatch objectthe o)Match object to be comparedImplements java. Compares this object with the given |
| public Set | Returns: the pseudo class state, nevernullGets the pseudo class states as an immutable set. |
| public Selector | |
| public int |
| idCount | back to summary |
|---|---|
| pack-priv final int idCount | |
| pseudoClasses | back to summary |
|---|---|
| private final Set<PseudoClass> pseudoClasses | |
| selector | back to summary |
|---|---|
| private final Selector selector | |
| specificity | back to summary |
|---|---|
| pack-priv final int specificity | |
| styleClassCount | back to summary |
|---|---|
| pack-priv final int styleClassCount | |
| Match | back to summary |
|---|---|
| pack-priv Match(final Selector selector, Set<PseudoClass> pseudoClasses, int idCount, int styleClassCount) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Match o) Implements java. Compares this object with the given Comparison is based on the specificity of the objects. Specificity is calculated based on the id count, the style class count and the pseudoclass count. | |
| getPseudoClasses | back to summary |
|---|---|
| public Set Gets the pseudo class states as an immutable set.
| |
| getSelector | back to summary |
|---|---|
| public Selector getSelector() Gets the
| |
| getSpecificity | back to summary |
|---|---|
| public int getSpecificity() Gets the specificity.
| |