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 |
|---|---|
| private final int | |
| private final Set | |
| private final Selector | |
| private final int | |
| private 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 | |
| pack-priv static Match | |
| private static Match | |
| private static Match |
| idCount | back to summary |
|---|---|
| private final int idCount | |
| pseudoClasses | back to summary |
|---|---|
| private final Set<PseudoClass> pseudoClasses | |
| selector | back to summary |
|---|---|
| private final Selector selector | |
| specificity | back to summary |
|---|---|
| private final int specificity | |
| styleClassCount | back to summary |
|---|---|
| private 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.
| |
| of | back to summary |
|---|---|
| pack-priv static Match of(Selector selector) | |
| ofCompoundSelector | back to summary |
|---|---|
| private static Match ofCompoundSelector(CompoundSelector selector) | |
| ofSimpleSelector | back to summary |
|---|---|
| private static Match ofSimpleSelector(SimpleSelector selector) | |