Class AbstractCSSParser
java.lang.Object
org.eclipse.e4.ui.css.core.impl.dom.parsers.AbstractCSSParser
- All Implemented Interfaces:
CSSParser
- Direct Known Subclasses:
CSSParserImpl
Abstract
CSSParser
implementation.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.css.sac.ConditionFactory
Get the SACConditionFactory
used by SACParser
.Return instance ofDocumentHandlerFactory
.org.w3c.css.sac.Parser
Return SACParser
to use.Return factoryISACParserFactory
to use.org.w3c.css.sac.SelectorFactory
Get the SACSelectorFactory
used by SACParser
.parsePropertyValue
(org.w3c.css.sac.InputSource source) parseRule
(org.w3c.css.sac.InputSource source) org.w3c.css.sac.SelectorList
parseSelectors
(org.w3c.css.sac.InputSource source) Parse CSSsource
selectors value with SACParser
and returnSelectorList
instance.parseStyleDeclaration
(org.w3c.css.sac.InputSource source) void
parseStyleDeclaration
(CSSStyleDeclaration styleDeclaration, org.w3c.css.sac.InputSource source) Parse CSSsource
style declaration with SACParser
and update thestyleDecelaration
.parseStyleSheet
(org.w3c.css.sac.InputSource source) void
setConditionFactory
(org.w3c.css.sac.ConditionFactory conditionFactory) Set the SACConditionFactory
used by SACParser
.void
setDocumentHandlerFactory
(DocumentHandlerFactory documentHandlerFactory) Set instance ofDocumentHandlerFactory
.void
setParentStyleSheet
(CSSStyleSheet parentStyleSheet) Set the parentCSSStyleSheet
.void
setParser
(org.w3c.css.sac.Parser parser) Set SACParser
to use.void
setSACParserFactory
(ISACParserFactory parserFactory) Set factoryISACParserFactory
to use.void
setSelectorFactory
(org.w3c.css.sac.SelectorFactory selectorFactory) Set the SACSelectorFactory
used by SACParser
.
-
Constructor Details
-
AbstractCSSParser
public AbstractCSSParser()
-
-
Method Details
-
parseStyleSheet
Description copied from interface:CSSParser
- Specified by:
parseStyleSheet
in interfaceCSSParser
- Parameters:
source
- style sheet.- Throws:
IOException
-
parseStyleDeclaration
public CSSStyleDeclaration parseStyleDeclaration(org.w3c.css.sac.InputSource source) throws IOException Description copied from interface:CSSParser
- Specified by:
parseStyleDeclaration
in interfaceCSSParser
- Parameters:
source
- style declaration.- Throws:
IOException
-
parseStyleDeclaration
public void parseStyleDeclaration(CSSStyleDeclaration styleDeclaration, org.w3c.css.sac.InputSource source) throws IOException Description copied from interface:CSSParser
Parse CSSsource
style declaration with SACParser
and update thestyleDecelaration
.- Specified by:
parseStyleDeclaration
in interfaceCSSParser
- Throws:
IOException
-
parsePropertyValue
Description copied from interface:CSSParser
- Specified by:
parsePropertyValue
in interfaceCSSParser
- Parameters:
source
- CSS value.- Throws:
IOException
-
parseRule
Description copied from interface:CSSParser
- Specified by:
parseRule
in interfaceCSSParser
- Parameters:
source
- CSS rule.- Throws:
IOException
-
parseSelectors
public org.w3c.css.sac.SelectorList parseSelectors(org.w3c.css.sac.InputSource source) throws IOException Description copied from interface:CSSParser
Parse CSSsource
selectors value with SACParser
and returnSelectorList
instance.- Specified by:
parseSelectors
in interfaceCSSParser
- Throws:
IOException
-
setParentStyleSheet
Description copied from interface:CSSParser
Set the parentCSSStyleSheet
.- Specified by:
setParentStyleSheet
in interfaceCSSParser
-
getDocumentHandlerFactory
Return instance ofDocumentHandlerFactory
. -
setDocumentHandlerFactory
Set instance ofDocumentHandlerFactory
.- Specified by:
setDocumentHandlerFactory
in interfaceCSSParser
-
getParser
public org.w3c.css.sac.Parser getParser()Return SACParser
to use. -
setParser
public void setParser(org.w3c.css.sac.Parser parser) Set SACParser
to use. -
getSACParserFactory
Return factoryISACParserFactory
to use. -
setSACParserFactory
Set factoryISACParserFactory
to use. -
getConditionFactory
public org.w3c.css.sac.ConditionFactory getConditionFactory()Description copied from interface:CSSParser
Get the SACConditionFactory
used by SACParser
.- Specified by:
getConditionFactory
in interfaceCSSParser
-
setConditionFactory
public void setConditionFactory(org.w3c.css.sac.ConditionFactory conditionFactory) Description copied from interface:CSSParser
Set the SACConditionFactory
used by SACParser
.- Specified by:
setConditionFactory
in interfaceCSSParser
-
getSelectorFactory
public org.w3c.css.sac.SelectorFactory getSelectorFactory()Description copied from interface:CSSParser
Get the SACSelectorFactory
used by SACParser
.- Specified by:
getSelectorFactory
in interfaceCSSParser
-
setSelectorFactory
public void setSelectorFactory(org.w3c.css.sac.SelectorFactory selectorFactory) Description copied from interface:CSSParser
Set the SACSelectorFactory
used by SACParser
.- Specified by:
setSelectorFactory
in interfaceCSSParser
-