| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.w3c.flute.parser.ParserField Summary | |
protected ConditionFactory | |
protected DocumentHandler | |
protected ErrorHandler | |
Token | |
boolean | |
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, NMCHAR, NMSTART, 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 | |
void |
|
SelectorList | |
void | |
void | |
Condition |
|
void |
|
char | |
void | |
void | |
SimpleSelector | |
void | |
LexicalUnit |
|
void |
|
LexicalUnitImpl |
|
ParseException | |
Token | |
String |
|
Token |
|
Condition |
|
LexicalUnitImpl |
|
void | |
void |
|
void |
|
void | |
String |
|
LexicalUnitImpl |
|
void |
|
void |
|
void |
|
boolean |
|
LexicalUnit |
|
void |
|
SelectorList |
|
void |
|
void |
|
void |
|
void |
|
boolean |
|
String |
|
Condition |
|
String | |
Selector |
|
SelectorList | |
void |
|
void |
|
void |
|
void |
|
void |
|
Selector |
|
void | |
void | |
LexicalUnitImpl |
|
char | |
LexicalUnitImpl |
|
LexicalUnitImpl |
|
protected ConditionFactory conditionFactory
protected DocumentHandler documentHandler
protected ErrorHandler errorHandler
public boolean lookingAhead
protected SelectorFactory selectorFactory
protected InputSource source
public final Condition _class(Condition pred)
throws ParseException
- Throws:
ParseException- exception during the parse
public final void _parseRule()
throws ParseExceptionThe 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 void disable_tracing()
public final SimpleSelector element_name()
throws ParseException
- Throws:
ParseException- exception during the parse
public final void enable_tracing()
public final LexicalUnit expr()
throws ParseException
- Throws:
ParseException- exception during the parse
public final LexicalUnitImpl function(char operator, 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 LexicalUnitImpl hexcolor(LexicalUnitImpl prev) throws ParseException
- Throws:
ParseException- exception during the parse
public final void importDeclaration()
throws ParseExceptionThe 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 LexicalUnitImpl operator(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,
IOExceptionParse methods used by DOM Level 2 implementation.
public void parseMediaRule(InputSource source)
throws CSSException,
IOExceptionpublic boolean parsePriority(InputSource source)
throws CSSException,
IOExceptionpublic LexicalUnit parsePropertyValue(InputSource source)
throws CSSException,
IOExceptionpublic void parseRule(InputSource source)
throws CSSException,
IOExceptionThis 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,
IOExceptionpublic void parseStyleDeclaration(InputSource source)
throws CSSException,
IOExceptionThis 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,
IOExceptionMain parse methods
- Parameters:
source- the source of the style sheet.
public void parseStyleSheet(String systemId)
throws CSSException,
IOExceptionConvenient method for URIs.
- Parameters:
systemId- the fully resolved URI of the style sheet.
public final void parserUnit()
throws ParseExceptionThe 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 setConditionFactory(ConditionFactory conditionFactory)
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 void setLocale(Locale locale)
throws CSSExceptionpublic void setSelectorFactory(SelectorFactory selectorFactory)
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 LexicalUnitImpl term(LexicalUnitImpl prev) throws ParseException
- Throws:
ParseException- exception during the parse
public final char unaryOperator()
throws ParseException
- Throws:
ParseException- exception during the parse