_class
public final Condition _class(Condition pred)
throws ParseException
_parseDeclarationBlock
public final void _parseDeclarationBlock()
throws ParseException
_parseImportRule
public final void _parseImportRule()
throws ParseException
_parseMediaRule
public final void _parseMediaRule()
throws ParseException
_parseRule
public final void _parseRule()
throws ParseException
The following functions are useful for a DOM CSS implementation only and are
not part of the general CSS2 parser.
_parseSelectors
public final SelectorList _parseSelectors()
throws ParseException
afterImportDeclaration
public final void afterImportDeclaration()
throws ParseException
atRuleDeclaration
public final void atRuleDeclaration()
throws ParseException
attrib
public final Condition attrib(Condition pred)
throws ParseException
disable_tracing
public final void disable_tracing()
element_name
public final SimpleSelector element_name()
throws ParseException
enable_tracing
public final void enable_tracing()
getNextToken
public final Token getNextToken()
getParserVersion
public String getParserVersion()
This methods returns "http://www.w3.org/TR/REC-CSS2".
- the string "http://www.w3.org/TR/REC-CSS2".
getToken
public final Token getToken(int index)
ignoreStatement
public final void ignoreStatement()
throws ParseException
importDeclaration
public final void importDeclaration()
throws ParseException
The import statement
parseImportRule
public void parseImportRule(InputSource source)
throws CSSException,
IOException
Parse methods used by DOM Level 2 implementation.
parseMediaRule
public void parseMediaRule(InputSource source)
throws CSSException,
IOException
parsePriority
public boolean parsePriority(InputSource source)
throws CSSException,
IOException
parsePropertyValue
public LexicalUnit parsePropertyValue(InputSource source)
throws CSSException,
IOException
parseRule
public void parseRule(InputSource source)
throws CSSException,
IOException
This method parses only one rule (style rule or at-rule, except @charset).
source
- the source of the rule.
parseSelectors
public SelectorList parseSelectors(InputSource source)
throws CSSException,
IOException
parseStyleDeclaration
public void parseStyleDeclaration(InputSource source)
throws CSSException,
IOException
This method parses a style declaration (including the surrounding curly
braces).
source
- the source of the style declaration.
parseStyleSheet
public void parseStyleSheet(InputSource source)
throws CSSException,
IOException
Main parse methods
source
- the source of the style sheet.
parseStyleSheet
public void parseStyleSheet(String systemId)
throws CSSException,
IOException
Convenient method for URIs.
systemId
- the fully resolved URI of the style sheet.
parserUnit
public final void parserUnit()
throws ParseException
The main entry for the parser.
pseudo
public final Condition pseudo(Condition pred)
throws ParseException
selectorList
public final SelectorList selectorList()
throws ParseException
setConditionFactory
public void setConditionFactory(ConditionFactory conditionFactory)
setDocumentHandler
public void setDocumentHandler(DocumentHandler handler)
Set the document handler for this parser
setErrorHandler
public void setErrorHandler(ErrorHandler error)
Set the error handler for this parser
setLocale
public void setLocale(Locale locale)
throws CSSException
setSelectorFactory
public void setSelectorFactory(SelectorFactory selectorFactory)
simple_selector
public final Selector simple_selector(Selector selector,
char comb)
throws ParseException
skipUnknownRule
public final void skipUnknownRule()
throws ParseException