# Class SacTranslator

java.lang.Object
org.eclipse.e4.ui.css.core.impl.engine.selector.SacTranslator

public final class SacTranslator extends Object
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 Type
Method
Description
`static Selectors.Selector`
`translate(org.w3c.css.sac.Selector sac)`
Translate a single SAC `Selector`.
`static Selectors.SelectorList`
`translate(org.w3c.css.sac.SelectorList sacList)`
Translate an entire `SelectorList` into the internal form.

### Methods inherited from class Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Method Details

### translate

public static Selectors.SelectorList translate(org.w3c.css.sac.SelectorList sacList)
Translate an entire `SelectorList` into the internal form.

### translate

public static Selectors.Selector translate(org.w3c.css.sac.Selector sac)
Translate a single SAC `Selector`.