Class Selectors
java.lang.Object
org.eclipse.e4.ui.css.core.impl.engine.selector.Selectors
Internal CSS selector AST.
This package is the engine's own selector model: a small set of records the parser builds directly and the matcher consumes end to end. It replaced an earlier layer of vendored selector wrapper classes that the engine no longer depends on.
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