org.jhotdraw.xml.css
Class CSSParser
- java.lang.Object
-
- org.jhotdraw.xml.css.CSSParser
-
public class CSSParser extends java.lang.ObjectParsers a Cascading Style Sheet (CSS).IDENT {ident} ATKEYWORD @{ident} STRING {string} INVALID {invalid} HASH #{name} NUMBER {num} PERCENTAGE {num}% DIMENSION {num}{ident} URI url\({w}{string}{w}\) |url\({w}([!#$%&*-~]|{nonascii}|{escape})*{w}\) UNICODE-RANGE U\+[0-9A-F?]{1,6}(-[0-9A-F]{1,6})? CDO ; ; { \{ } \} ( \( ) \) [ \[ ] \] S [ \t\r\n\f]+ COMMENT \/\*[^*]*\*+([^/*][^*]*\*+)*\/ FUNCTION {ident}\( INCLUDES ~= DASHMATCH |= DELIM any other character not matched by the above rules, and neither a single nor a double quote stylesheet : [ CDO | CDC | S | statement ]*; statement : ruleset | at-rule; at-rule : ATKEYWORD S* any* [ block | ';' S* ]; block : '{' S* [ any | block | ATKEYWORD S* | ';' S* ]* '}' S*; ruleset : selector? '{' S* declaration? [ ';' S* declaration? ]* '}' S*; selector : any+; declaration : DELIM? property S* ':' S* value; property : IDENT; value : [ any | block | ATKEYWORD S* ]+; any : [ IDENT | NUMBER | PERCENTAGE | DIMENSION | STRING | DELIM | URI | HASH | UNICODE-RANGE | INCLUDES | DASHMATCH | FUNCTION S* any* ')' | '(' S* any* ')' | '[' S* any* ']' ] S*;
-
-
Constructor Summary
Constructors Constructor and Description CSSParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidparse(java.io.Reader css, StyleManager rm)voidparse(java.lang.String css, StyleManager rm)
-
-
-
Method Detail
-
parse
public void parse(java.lang.String css, StyleManager rm) throws java.io.IOException- Throws:
java.io.IOException
-
parse
public void parse(java.io.Reader css, StyleManager rm) throws java.io.IOException- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG