Class CssParser
java.lang.Object
org.eclipse.e4.ui.css.core.impl.parser.CssParser
Recursive-descent CSS parser for the Eclipse engine's supported subset. It
builds
CSSStyleSheetImpl with CSSStyleRuleImpl /
CSSImportRuleImpl rules, Selectors selector trees, and
CssValues value records.
@media, @font-face and @page are parsed and discarded;
!important is recorded on the declaration; @import is kept as
an import rule.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CSSValueparsePropertyValue(String value) Parse a single property value, e.g.static Selectors.SelectorListparseSelectors(String selectors) Parse a standalone selector group, e.g. forCSSEngine.parseSelectors.static CSSStyleDeclarationparseStyleDeclaration(String style) Parse a standalone declaration list, e.g.static CSSStyleSheetImplparseStyleSheet(String css) Parse a complete style sheet.
-
Method Details
-
parseStyleSheet
Parse a complete style sheet. -
parseStyleDeclaration
Parse a standalone declaration list, e.g."color: red; margin: 0". -
parsePropertyValue
-
parseSelectors
Parse a standalone selector group, e.g. forCSSEngine.parseSelectors.
-