public class StyleSheetParser extends Object implements StyleSheetParserConstants
Modifier and Type | Class and Description |
---|---|
static class |
StyleSheetParser.Number |
Modifier and Type | Field and Description |
---|---|
private List<int[]> |
jj_expentries |
private int[] |
jj_expentry |
private int |
jj_gen |
(package private) SimpleCharStream |
jj_input_stream |
private int |
jj_kind |
private int[] |
jj_la1 |
private static int[] |
jj_la1_0 |
private static int[] |
jj_la1_1 |
private static int[] |
jj_la1_2 |
private static int[] |
jj_la1_3 |
private static int[] |
jj_la1_4 |
Token |
jj_nt
Next token.
|
private int |
jj_ntk |
protected StyleSheet |
stylesheet
The style sheet.
|
Token |
token
Current token.
|
StyleSheetParserTokenManager |
token_source
Generated Token Manager.
|
ABOVE, ALONG, ANGLE, ARROW, ARROWIMGURL, ARROWSHAPE, ARROWSIZE, ATLEFT, ATRIGHT, ATZOOM, BLOB, BOLD, BOLD_ITALIC, BOX, BUTTON, CANVASCOLOR, CENTER, CIRCLE, CLICKED, COLON, COMA, COMMENT, CROSS, CUBICCURVE, DASHES, DEFAULT, DIAMOND, DIGIT, DOT, DOTS, DOUBLE, DYNICON, DYNPLAIN, DYNSIZE, EDGE, EOF, EOL, FILLCOLOR, FILLIMAGE, FILLMODE, FIT, FLOW, FREEPLANE, FROM, GRADIENTDIAGONAL1, GRADIENTDIAGONAL2, GRADIENTHORIZONTAL, GRADIENTRADIAL, GRADIENTVERTICAL, GRAPH, HEXDIGIT, HIDDEN, HSQUARELINE, HTMLCOLOR, ICON, ICONMODE, IDENTIFIER, IMAGE, IMAGES, IMAGESCALED, IMAGESCALEDRATIOMAX, IMAGESCALEDRATIOMIN, IMAGETILED, ITALIC, JCOMPONENT, JUSTIFY, LBRACE, LEFT, LINE, LPAREN, LSQUARELINE, NODE, NODE0, NODE1, NONE, NORMAL, OVERZOOM, PADDING, PANEL, PIECHART, PLAIN, POLYGON, POLYLINE, POLYLINESCALED, PROJECTION, RBRACE, REAL, RGB, RGBA, RIGHT, ROUNDEDBOX, RPAREN, SELECTED, SEMICOLON, SHADOWCOLOR, SHADOWMODE, SHADOWOFFSET, SHADOWWIDTH, SHAPE, SHAPEPOINTS, SHARP, SIZE, SIZEMODE, SPRITE, SPRITEORIENT, SQUARELINE, STRING, STROKECOLOR, STROKEMODE, STROKEWIDTH, TEXTALIGNMENT, TEXTBACKGROUNDCOLOR, TEXTBACKGROUNDMODE, TEXTBOX, TEXTCIRCLE, TEXTCOLOR, TEXTDIAMOND, TEXTFIELD, TEXTFONT, TEXTMODE, TEXTOFFSET, TEXTPADDING, TEXTPARAGRAPH, TEXTROUNDEDBOX, TEXTSIZE, TEXTSTYLE, TEXTVISIBILITY, TEXTVISIBILITYMODE, TO, tokenImage, TRIANGLE, TRUNCATED, UNDER, UNDERZOOM, UNITS, URL, VISIBILITY, VISIBILITYMODE, VSQUARELINE, ZINDEX, ZOOMRANGE, ZOOMS
Constructor and Description |
---|
StyleSheetParser(InputStream stream)
Constructor with InputStream.
|
StyleSheetParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
StyleSheetParser(Reader stream)
Constructor.
|
StyleSheetParser(StyleSheet stylesheet,
InputStream stream) |
StyleSheetParser(StyleSheetParserTokenManager tm)
Constructor with generated Token Manager.
|
StyleSheetParser(StyleSheet stylesheet,
Reader stream) |
protected StyleSheet stylesheet
public StyleSheetParserTokenManager token_source
SimpleCharStream jj_input_stream
private int jj_ntk
private int jj_gen
private final int[] jj_la1
private static int[] jj_la1_0
private static int[] jj_la1_1
private static int[] jj_la1_2
private static int[] jj_la1_3
private static int[] jj_la1_4
private List<int[]> jj_expentries
private int[] jj_expentry
private int jj_kind
public StyleSheetParser(StyleSheet stylesheet, InputStream stream)
public StyleSheetParser(StyleSheet stylesheet, Reader stream)
public StyleSheetParser(InputStream stream)
public StyleSheetParser(InputStream stream, String encoding)
public StyleSheetParser(Reader stream)
public StyleSheetParser(StyleSheetParserTokenManager tm)
public void close() throws IOException
IOException
public final void start() throws ParseException
ParseException
public final Rule rule() throws ParseException
ParseException
public final void styles(Style style) throws ParseException
ParseException
public final void stylesStart(Style style) throws ParseException
ParseException
public final Selector select() throws ParseException
ParseException
public final void style(Style style) throws ParseException
ParseException
public final Value value() throws ParseException
ParseException
public final Values values() throws ParseException
ParseException
public final String url() throws ParseException
ParseException
public final String icon() throws ParseException
ParseException
public final String font() throws ParseException
ParseException
public final Color color() throws ParseException
ParseException
public final Colors colors() throws ParseException
ParseException
public final StyleConstants.FillMode fillMode() throws ParseException
ParseException
public final StyleConstants.StrokeMode strokeMode() throws ParseException
ParseException
public final StyleConstants.ShadowMode shadowMode() throws ParseException
ParseException
public final StyleConstants.TextMode textMode() throws ParseException
ParseException
public final StyleConstants.TextVisibilityMode textVisMode() throws ParseException
ParseException
public final StyleConstants.TextBackgroundMode textBgMode() throws ParseException
ParseException
public final StyleConstants.TextStyle textStyle() throws ParseException
ParseException
public final StyleConstants.SizeMode sizeMode() throws ParseException
ParseException
public final StyleConstants.TextAlignment textAlign() throws ParseException
ParseException
public final StyleConstants.IconMode iconMode() throws ParseException
ParseException
public final StyleConstants.VisibilityMode visMode() throws ParseException
ParseException
public final StyleConstants.Shape shape() throws ParseException
ParseException
public final StyleConstants.ArrowShape arrowShape() throws ParseException
ParseException
public final StyleConstants.JComponents jcomponent() throws ParseException
ParseException
public final StyleConstants.SpriteOrientation spriteOrient() throws ParseException
ParseException
private static void jj_la1_init_0()
private static void jj_la1_init_1()
private static void jj_la1_init_2()
private static void jj_la1_init_3()
private static void jj_la1_init_4()
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(StyleSheetParserTokenManager tm)
private Token jj_consume_token(int kind) throws ParseException
ParseException
public final Token getNextToken()
private int jj_ntk()
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses