Class RuleIndex
java.lang.Object
org.eclipse.e4.ui.css.core.impl.engine.selector.RuleIndex
Buckets style rules by the rightmost simple selector of each selector
alternative, so the cascade only runs the matcher against rules that can
possibly match a given element.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne selector alternative of a style rule, with its cascade position. -
Method Summary
Modifier and TypeMethodDescriptionEvery indexed candidate, in cascade order.candidatesFor(Element element) The candidates whose bucket key the element satisfies, in cascade order.static RuleIndexof(List<CSSStyleSheetImpl> styleSheets) Indexes every style rule of the given stylesheets in cascade order.
-
Method Details
-
of
Indexes every style rule of the given stylesheets in cascade order. -
candidatesFor
The candidates whose bucket key the element satisfies, in cascade order. A superset of the actually matching alternatives; callers still run the matcher on each candidate. -
allCandidates
Every indexed candidate, in cascade order.
-