Class Selectors
java.lang.Object
org.eclipse.e4.ui.css.core.impl.engine.selector.Selectors
Internal CSS selector AST.
The engine historically exposed W3C SAC selectors
(org.w3c.css.sac.Selector and friends) and matched against them
through a hierarchy of vendored Batik wrapper classes under
impl/sac/*. This package replaces both with a small set of records
that the engine owns end to end. The W3C SAC types stay only as long as
the parser still emits them; a translator turns the SAC selector tree
produced by the Batik SAC parser into one of these records before it
reaches the engine matcher.
Specificity follows CSS 2.1: 100 per id, 10 per class / attribute / pseudo-class, 1 per element, 0 for the universal selector. Combinators sum the specificity of their operands; selector lists report the maximum specificity over their alternatives.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordfirst + second— direct adjacent sibling combinator.static final recordCompound selector: every operand must match the same element.static final record[attr|='value']— matches whenattrequalsvalueor starts withvalue-.static final record[attr~='value']— matches whenattrcontainsvalueas a whitespace-separated word.static final record[attr]or[attr='value'].static final recordparent > child— child combinator.static final record.foo— matches by CSS class.static final recordancestor descendant— descendant combinator.static final recordButton— matches by local element name.static final record#foo— matches by CSS id.static final record:name— matches when the element answers true toisPseudoInstanceOf(name)on its CSS-stylable element wrapper.static interfaceA parsed CSS selector.static final classa, b— selector list.static final record*— matches any element. -
Method Summary