Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.w3c.flute.parser.Parser
Field Summary | |
protected ConditionFactory | |
protected DocumentHandler | |
protected ErrorHandler | |
Token | |
boolean | |
protected String | |
protected SelectorFactory | |
protected InputSource | |
Token | |
ParserTokenManager |
Fields inherited from interface org.w3c.flute.parser.ParserConstants | |
ANY , ATKEYWORD , CDC , CDO , CHARSET_SYM , CM , COLON , COMMA , D , DASHMATCH , DEFAULT , DEG , DIMEN , DIV , DOT , EMS , EOF , EQ , ESCAPE , EXS , FONT_FACE_SYM , FUNCTION , GRAD , H , HASH , HZ , IDENT , IMPORTANT_SYM , IMPORT_SYM , IN , INCLUDES , IN_COMMENT , KHZ , LBRACE , LBRACKET , LPARAN , MEDIA_SYM , MINUS , MM , MS , NAME , NAMESPACE_IDENT , NAMESPACE_SYM , NMCHAR , NMSTART , NNAME , NONASCII , NUMBER , PAGE_SYM , PC , PERCENTAGE , PLUS , PRECEDES , PT , PX , RAD , RANGE , RANGE0 , RANGE1 , RANGE2 , RANGE3 , RANGE4 , RANGE5 , RANGE6 , RBRACE , RBRACKET , RPARAN , S , SECOND , SEMICOLON , STRING , STRINGCHAR , UNI , UNICODE , UNICODERANGE , UNKNOWN , URL , _URL , tokenImage |
Constructor Summary | |
| |
| |
Method Summary | |
void |
|
void | |
Condition |
|
void | |
void | |
void | |
String | |
void |
|
SelectorList | |
void | |
void | |
Condition |
|
void |
|
char | |
void | |
void | |
SimpleSelector | |
void | |
LexicalUnit |
|
void |
|
org.w3c.flute.parser.LexicalUnitImpl |
|
ParseException | |
Token | |
String |
|
Token |
|
Condition |
|
org.w3c.flute.parser.LexicalUnitImpl |
|
void | |
void |
|
void |
|
void | |
String |
|
void |
|
org.w3c.flute.parser.LexicalUnitImpl |
|
void |
|
void |
|
void |
|
String |
|
boolean |
|
LexicalUnit |
|
void |
|
SelectorList |
|
void |
|
void |
|
void |
|
void |
|
boolean |
|
String |
|
Condition |
|
String | |
Selector |
|
SelectorList | |
void |
|
void |
|
void |
|
void |
|
void |
|
Selector |
|
void | |
void | |
org.w3c.flute.parser.LexicalUnitImpl |
|
char | |
org.w3c.flute.parser.LexicalUnitImpl |
|
org.w3c.flute.parser.LexicalUnitImpl |
|
public final Condition _class(Condition pred) throws ParseException
- Throws:
ParseException
- exception during the parse
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.
public final void atRuleDeclaration() throws ParseException
- Throws:
ParseException
- exception during the parse
public final Condition attrib(Condition pred) throws ParseException
- Throws:
ParseException
- exception during the parse
public final char combinator() throws ParseException
- Throws:
ParseException
- exception during the parse
public final void declaration() throws ParseException
- Throws:
ParseException
- exception during the parse
public final SimpleSelector element_name() throws ParseException
- Throws:
ParseException
- exception during the parse
public final LexicalUnit expr() throws ParseException
- Throws:
ParseException
- exception during the parse
public final org.w3c.flute.parser.LexicalUnitImpl function(char operator, org.w3c.flute.parser.LexicalUnitImpl prev) throws ParseException
Handle all CSS2 functions.
- Throws:
ParseException
- exception during the parse
public String getParserVersion()
This methods returns "http://www.w3.org/TR/REC-CSS2".
- Returns:
- the string "http://www.w3.org/TR/REC-CSS2".
public final Condition hash(Condition pred) throws ParseException
- Throws:
ParseException
- exception during the parse
public final org.w3c.flute.parser.LexicalUnitImpl hexcolor(org.w3c.flute.parser.LexicalUnitImpl prev) throws ParseException
- Throws:
ParseException
- exception during the parse
public final void importDeclaration() throws ParseException
The import statement
- Throws:
ParseException
- exception during the parse
public final void media() throws ParseException
- Throws:
ParseException
- exception during the parse
public final String medium() throws ParseException
- Throws:
ParseException
- exception during the parse
public final void namespaceDeclaration() throws ParseException
The namespace statement
- Throws:
ParseException
- exception during the parse
public final org.w3c.flute.parser.LexicalUnitImpl operator(org.w3c.flute.parser.LexicalUnitImpl prev) throws ParseException
- Throws:
ParseException
- exception during the parse
public final void page() throws ParseException
- Throws:
ParseException
- exception during the parse
public void parseImportRule(InputSource source) throws CSSException, IOException
Parse methods used by DOM Level 2 implementation.
public String parseNamespaceToken(InputSource source) throws CSSException, IOException
public LexicalUnit parsePropertyValue(InputSource source) throws CSSException, IOException
public void parseRule(InputSource source) throws CSSException, IOException
This method parses only one rule (style rule or at-rule, except @charset).
- Parameters:
source
- the source of the rule.
public SelectorList parseSelectors(InputSource source) throws CSSException, IOException
public void parseStyleDeclaration(InputSource source) throws CSSException, IOException
This method parses a style declaration (including the surrounding curly braces).
- Parameters:
source
- the source of the style declaration.
public void parseStyleSheet(InputSource source) throws CSSException, IOException
Main parse methods
- Parameters:
source
- the source of the style sheet.
public void parseStyleSheet(String systemId) throws CSSException, IOException
Convenient method for URIs.
- Parameters:
systemId
- the fully resolved URI of the style sheet.
public final void parserUnit() throws ParseException
The main entry for the parser.
- Throws:
ParseException
- exception during the parse
public final boolean prio() throws ParseException
- Throws:
ParseException
- exception during the parse
public final String property() throws ParseException
- Throws:
ParseException
- exception during the parse
public final Condition pseudo(Condition pred) throws ParseException
- Throws:
ParseException
- exception during the parse
public final Selector selector() throws ParseException
- Throws:
ParseException
- exception during the parse
public void setDocumentHandler(DocumentHandler handler)
Set the document handler for this parser
public void setErrorHandler(ErrorHandler error)
Set the error handler for this parser
public final Selector simple_selector(Selector selector, char comb) throws ParseException
- Throws:
ParseException
- exception during the parse
public final void styleRule() throws ParseException
- Throws:
ParseException
- exception during the parse
public final org.w3c.flute.parser.LexicalUnitImpl term(org.w3c.flute.parser.LexicalUnitImpl prev) throws ParseException
- Throws:
ParseException
- exception during the parse
public final char unaryOperator() throws ParseException
- Throws:
ParseException
- exception during the parse
public final org.w3c.flute.parser.LexicalUnitImpl unicode(org.w3c.flute.parser.LexicalUnitImpl prev) throws ParseException
public final org.w3c.flute.parser.LexicalUnitImpl url(org.w3c.flute.parser.LexicalUnitImpl prev) throws ParseException