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(String media)
Parses a string into a MediaQueryList.
|
CSSValueImpl |
parsePropertyValue(String propertyValue)
Parses a input string into a CSSValue.
|
AbstractCSSRuleImpl |
parseRule(String rule)
Parses a string into a CSSRule.
|
SelectorList |
parseSelectors(String selectors)
Parses a string into a CSSSelectorList.
|
void |
parseStyleDeclaration(CSSStyleDeclarationImpl sd,
String styleDecl)
Parses a input string into a CSSOM style declaration.
|
CSSStyleDeclarationImpl |
parseStyleDeclaration(String styleDecl)
Parses a input string 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 CSSStyleDeclarationImpl parseStyleDeclaration(String styleDecl) throws IOException
styleDecl - the input stringIOException - if the underlying SAC parser throws an IOExceptionpublic void parseStyleDeclaration(CSSStyleDeclarationImpl sd, String styleDecl) throws IOException
styleDecl - the input stringsd - the CSSOM style declarationIOException - if the underlying SAC parser throws an IOExceptionpublic CSSValueImpl parsePropertyValue(String propertyValue) throws IOException
propertyValue - the input stringIOException - if the underlying SAC parser throws an IOExceptionpublic AbstractCSSRuleImpl parseRule(String rule) throws IOException
rule - the input stringIOException - if the underlying SAC parser throws an IOExceptionpublic SelectorList parseSelectors(String selectors) throws IOException
selectors - the input stringIOException - if the underlying SAC parser throws an IOExceptionpublic MediaQueryList parseMedia(String media) throws IOException
media - the input stringIOException - if the underlying SAC parser throws an IOExceptionpublic void setParentStyleSheet(CSSStyleSheetImpl parentStyleSheet)
parentStyleSheet - the new parent stylesheetprotected CSSStyleSheetImpl getParentStyleSheet()
Copyright © 2020. All rights reserved.