public interface ExtendedParser
extends org.w3c.css.sac.Parser
Parser
interface plus a
set of custom methods.Modifier and Type | Method and Description |
---|---|
org.w3c.css.sac.SACMediaList |
parseMedia(java.lang.String mediaText)
Parse a CSS media value.
|
boolean |
parsePriority(java.lang.String source)
Parse a CSS priority value (e.g. "!important").
|
org.w3c.css.sac.LexicalUnit |
parsePropertyValue(java.lang.String source)
Parse a CSS property value.
|
void |
parseRule(java.lang.String source)
Parse a CSS rule.
|
org.w3c.css.sac.SelectorList |
parseSelectors(java.lang.String source)
Parse a comma separated list of selectors.
|
void |
parseStyleDeclaration(java.lang.String source)
Parse a CSS style declaration (without '{' and '}').
|
void parseStyleDeclaration(java.lang.String source) throws org.w3c.css.sac.CSSException, java.io.IOException
source
- The declaration.org.w3c.css.sac.CSSException
- Any CSS exception, possibly
wrapping another exception.java.io.IOException
- An IO exception from the parser,
possibly from a byte stream or character stream
supplied by the application.void parseRule(java.lang.String source) throws org.w3c.css.sac.CSSException, java.io.IOException
org.w3c.css.sac.CSSException
- Any CSS exception, possibly
wrapping another exception.java.io.IOException
- An IO exception from the parser,
possibly from a byte stream or character stream
supplied by the application.org.w3c.css.sac.SelectorList parseSelectors(java.lang.String source) throws org.w3c.css.sac.CSSException, java.io.IOException
org.w3c.css.sac.CSSException
- Any CSS exception, possibly
wrapping another exception.java.io.IOException
- An IO exception from the parser,
possibly from a byte stream or character stream
supplied by the application.org.w3c.css.sac.LexicalUnit parsePropertyValue(java.lang.String source) throws org.w3c.css.sac.CSSException, java.io.IOException
org.w3c.css.sac.CSSException
- Any CSS exception, possibly
wrapping another exception.java.io.IOException
- An IO exception from the parser,
possibly from a byte stream or character stream
supplied by the application.org.w3c.css.sac.SACMediaList parseMedia(java.lang.String mediaText) throws org.w3c.css.sac.CSSException, java.io.IOException
org.w3c.css.sac.CSSException
- Any CSS exception, possibly
wrapping another exception.java.io.IOException
- An IO exception from the parser,
possibly from a byte stream or character stream
supplied by the application.boolean parsePriority(java.lang.String source) throws org.w3c.css.sac.CSSException, java.io.IOException
org.w3c.css.sac.CSSException
- Any CSS exception, possibly
wrapping another exception.java.io.IOException
- An IO exception from the parser,
possibly from a byte stream or character stream
supplied by the application.Copyright © 2022 Apache Software Foundation. All Rights Reserved.