Class SacTranslator
java.lang.Object
org.eclipse.e4.ui.css.core.impl.engine.selector.SacTranslator
Converts a SAC selector tree (as produced by the Batik parser) into the
engine's internal
Selectors AST.
The translator is the single boundary between the SAC parser output and the
rest of the engine. Once a stylesheet has been parsed, only the internal
AST flows through CSSEngine.matches, the rule list, and
SelectorMatcher. SAC types do not cross this boundary.
Specificity is preserved exactly: the internal records compute it the same
way the legacy SAC wrappers did (100 per id, 10 per class / attribute /
pseudo-class, 1 per element, 0 for *). Combinators sum operands.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Selectors.Selectortranslate(org.w3c.css.sac.Selector sac) Translate a single SACSelector.static Selectors.SelectorListtranslate(org.w3c.css.sac.SelectorList sacList) Translate an entireSelectorListinto the internal form.
-
Method Details
-
translate
Translate an entireSelectorListinto the internal form. -
translate
Translate a single SACSelector.
-