org.w3c.flute.parser
public class Parser extends Object implements Parser, ParserConstants
Version: $Revision: 6653 $
| Nested Class Summary | |
|---|---|
| static class | Parser.JJCalls |
| Field Summary | |
|---|---|
| protected ConditionFactory | conditionFactory |
| protected DocumentHandler | documentHandler |
| protected ErrorHandler | errorHandler |
| Token | jj_nt |
| boolean | lookingAhead |
| protected String | pseudoElt |
| protected SelectorFactory | selectorFactory |
| protected InputSource | source |
| static StringBuffer | SPACE |
| Token | token |
| ParserTokenManager | token_source |
| Constructor Summary | |
|---|---|
| Parser()
Creates a new Parser | |
| Parser(CharStream stream) | |
| Parser(ParserTokenManager tm) | |
| Method Summary | |
|---|---|
| void | afterImportDeclaration() |
| void | atRuleDeclaration() |
| Condition | attrib(Condition pred) |
| void | charset() |
| char | combinator() |
| String | convertIdent(String s) |
| String | convertString(String s) |
| String | convertStringIndex(String s, int start, int len) |
| void | declaration() |
| void | disable_tracing() |
| SimpleSelector | element_name() |
| void | enable_tracing() |
| LexicalUnit | expr() |
| void | fontFace() |
| LexicalUnitImpl | function(char operator, LexicalUnitImpl prev)
Handle all CSS2 functions. |
| ParseException | generateParseException() |
| Token | getNextToken() |
| String | getParserVersion()
This methods returns "http://www.w3.org/TR/REC-CSS2". |
| Token | getToken(int index) |
| Condition | hash(Condition pred) |
| LexicalUnitImpl | hexcolor(LexicalUnitImpl prev) |
| void | ignoreStatement() |
| void | importDeclaration()
The import statement
|
| void | media() |
| void | mediaStatement(MediaListImpl ml) |
| String | medium() |
| void | namespaceDeclaration()
The namespace statement
|
| float | number(char operator, Token n, int lengthUnit) |
| LexicalUnitImpl | operator(LexicalUnitImpl prev) |
| void | page() |
| void | parseImportRule(InputSource source)
Parse methods used by DOM Level 2 implementation. |
| void | parseMediaRule(InputSource source) |
| String | parseNamespaceToken(InputSource source) |
| boolean | parsePriority(InputSource source) |
| LexicalUnit | parsePropertyValue(InputSource source) |
| void | parserUnit()
The main entry for the parser.
|
| void | parseRule(InputSource source)
This method parses only one rule (style rule or at-rule, except @charset).
|
| SelectorList | parseSelectors(InputSource source) |
| void | parseStyleDeclaration(InputSource source)
This method parses a style declaration (including the surrounding curly
braces).
|
| void | parseStyleSheet(InputSource source)
Main parse methods
|
| void | parseStyleSheet(String systemId)
Convenient method for URIs.
|
| boolean | prio() |
| String | property() |
| Condition | pseudo(Condition pred) |
| String | pseudo_page() |
| void | rejectToken(Token t) |
| void | ReInit(CharStream stream) |
| void | ReInit(ParserTokenManager tm) |
| Selector | selector() |
| SelectorList | selectorList() |
| void | setConditionFactory(ConditionFactory conditionFactory) |
| void | setDocumentHandler(DocumentHandler handler)
Set the document handler for this parser |
| void | setErrorHandler(ErrorHandler error)
Set the error handler for this parser |
| void | setLocale(Locale locale) |
| void | setSelectorFactory(SelectorFactory selectorFactory) |
| Selector | simple_selector(Selector selector, char comb) |
| String | skipAfterExpression() |
| String | skipStatement() |
| String | skipStatementNoSemicolon() |
| void | skipUnknownRule() |
| String | skip_to_matching_brace() |
| void | styleRule() |
| LexicalUnitImpl | term(LexicalUnitImpl prev) |
| char | unaryOperator() |
| LexicalUnitImpl | unicode(LexicalUnitImpl prev) |
| LexicalUnitImpl | url(LexicalUnitImpl prev) |
| Condition | _class(Condition pred) |
| void | _parseDeclarationBlock() |
| void | _parseImportRule() |
| void | _parseMediaRule() |
| String | _parseNamespaceToken() |
| void | _parseRule()
The following functions are useful for a DOM CSS implementation only and are
not part of the general CSS2 parser. |
| SelectorList | _parseSelectors() |
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Returns: the string "http://www.w3.org/TR/REC-CSS2".
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Parameters: source the source of the rule.
Throws: IOException the source can't be parsed. CSSException the source is not CSS valid.
Parameters: source the source of the style declaration.
Throws: IOException the source can't be parsed. CSSException the source is not CSS valid.
Parameters: source the source of the style sheet.
Throws: IOException the source can't be parsed. CSSException the source is not CSS valid.
Parameters: systemId the fully resolved URI of the style sheet.
Throws: IOException the source can't be parsed. CSSException the source is not CSS valid.
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Throws: CSSException Not yet implemented
UNKNOWN:
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse
Throws: ParseException exception during the parse