public class CSSOMParser extends Object
| Constructor and Description |
|---|
CSSOMParser()
Creates new CSSOMParser.
|
CSSOMParser(CSSParser parser)
Creates new CSSOMParser.
|
| Modifier and Type | Method and Description |
|---|---|
protected CSSStyleSheetImpl |
getParentStyleSheet() |
MediaQueryList |
parseMedia(InputSource source)
Parses a SAC input source into a MediaQueryList.
|
org.w3c.dom.css.CSSValue |
parsePropertyValue(InputSource source)
Parses a SAC input source into a CSSValue.
|
org.w3c.dom.css.CSSRule |
parseRule(InputSource source)
Parses a SAC input source into a CSSRule.
|
SelectorList |
parseSelectors(InputSource source)
Parses a SAC input source into a CSSSelectorList.
|
void |
parseStyleDeclaration(org.w3c.dom.css.CSSStyleDeclaration sd,
InputSource source)
Parses a SAC input source into a CSSOM style declaration.
|
org.w3c.dom.css.CSSStyleDeclaration |
parseStyleDeclaration(InputSource source)
Parses a SAC input source into a CSSOM style declaration.
|
CSSStyleSheetImpl |
parseStyleSheet(InputSource source,
String href)
Parses a SAC input source into a CSSOM style sheet.
|
void |
setErrorHandler(CSSErrorHandler eh) |
void |
setParentStyleSheet(CSSStyleSheetImpl parentStyleSheet) |
public CSSOMParser(CSSParser parser)
parser - the parserpublic CSSOMParser()
public void setErrorHandler(CSSErrorHandler eh)
eh - the error handler to be usedpublic CSSStyleSheetImpl parseStyleSheet(InputSource source, String href) throws IOException
source - the SAC input sourcehref - the hrefIOException - if the underlying SAC parser throws an IOExceptionpublic org.w3c.dom.css.CSSStyleDeclaration parseStyleDeclaration(InputSource source) throws IOException
source - the SAC input sourceIOException - if the underlying SAC parser throws an IOExceptionpublic void parseStyleDeclaration(org.w3c.dom.css.CSSStyleDeclaration sd, InputSource source) throws IOException
source - the SAC input sourcesd - the CSSOM style declarationIOException - if the underlying SAC parser throws an IOExceptionpublic org.w3c.dom.css.CSSValue parsePropertyValue(InputSource source) throws IOException
source - the SAC input sourceIOException - if the underlying SAC parser throws an IOExceptionpublic org.w3c.dom.css.CSSRule parseRule(InputSource source) throws IOException
source - the SAC input sourceIOException - if the underlying SAC parser throws an IOExceptionpublic SelectorList parseSelectors(InputSource source) throws IOException
source - the SAC input sourceIOException - if the underlying SAC parser throws an IOExceptionpublic MediaQueryList parseMedia(InputSource source) throws IOException
source - the SAC input sourceIOException - if the underlying SAC parser throws an IOExceptionpublic void setParentStyleSheet(CSSStyleSheetImpl parentStyleSheet)
parentStyleSheet - the new parent stylesheetprotected CSSStyleSheetImpl getParentStyleSheet()
Copyright © 2018. All rights reserved.