Class Selectors.SelectorList
java.lang.Object
org.eclipse.e4.ui.css.core.impl.engine.selector.Selectors.SelectorList
- All Implemented Interfaces:
Selectors.Selector
- Enclosing class:
Selectors
a, b — selector list. Specificity reports the maximum over the
alternatives so cascade ordering can match a list against an element by
iterating its alternatives.
A regular final class rather than a record because the cascade reads
specificity() once per matched alternative and we want it
precomputed; record components cannot host derived state.
-
Constructor Details
-
SelectorList
-
-
Method Details
-
alternatives
-
getLength
public int getLength()Number of alternatives in the list. SAC-style accessor for callers iterating the list. -
item
i-th alternative. SAC-style accessor for callers iterating the list. -
specificity
public int specificity()Description copied from interface:Selectors.SelectorCSS specificity contribution of this selector.- Specified by:
specificityin interfaceSelectors.Selector
-
text
Description copied from interface:Selectors.SelectorBest-effort textual reproduction of the selector.- Specified by:
textin interfaceSelectors.Selector
-
equals
-
hashCode
-
toString
-