KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > css > parser > LexicalUnits


1 /*
2
3    Copyright 2000-2001 The Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16
17  */

18 package org.apache.batik.css.parser;
19
20 /**
21  * This interface defines the constants that represent CSS lexical units.
22  *
23  * @author <a HREF="mailto:stephane@hillion.org">Stephane Hillion</a>
24  * @version $Id: LexicalUnits.java,v 1.6 2005/03/27 08:58:31 cam Exp $
25  */

26 public interface LexicalUnits {
27
28     /**
29      * Represents the EOF lexical unit.
30      */

31     int EOF = 0;
32
33     /**
34      * Represents the '{' lexical unit.
35      */

36     int LEFT_CURLY_BRACE = 1;
37
38     /**
39      * Represents the '}' lexical unit.
40      */

41     int RIGHT_CURLY_BRACE = 2;
42
43     /**
44      * Represents the '=' lexical unit.
45      */

46     int EQUAL = 3;
47
48     /**
49      * Represents the '+' lexical unit.
50      */

51     int PLUS = 4;
52
53     /**
54      * Represents the '-' lexical unit.
55      */

56     int MINUS = 5;
57
58     /**
59      * Represents the ',' lexical unit.
60      */

61     int COMMA = 6;
62
63     /**
64      * Represents the '.' lexical unit.
65      */

66     int DOT = 7;
67
68     /**
69      * Represents the ';' lexical unit.
70      */

71     int SEMI_COLON = 8;
72
73     /**
74      * Represents the '&gt;' lexical unit.
75      */

76     int PRECEDE = 9;
77
78     /**
79      * Represents the '/' lexical unit.
80      */

81     int DIVIDE = 10;
82
83     /**
84      * Represents the '[' lexical unit.
85      */

86     int LEFT_BRACKET = 11;
87
88     /**
89      * Represents the ']' lexical unit.
90      */

91     int RIGHT_BRACKET = 12;
92
93     /**
94      * Represents the '*' lexical unit.
95      */

96     int ANY = 13;
97
98     /**
99      * Represents the '(' lexical unit.
100      */

101     int LEFT_BRACE = 14;
102
103     /**
104      * Represents the ')' lexical unit.
105      */

106     int RIGHT_BRACE = 15;
107
108     /**
109      * Represents the ':' lexical unit.
110      */

111     int COLON = 16;
112
113     /**
114      * Represents the white space lexical unit.
115      */

116     int SPACE = 17;
117
118     /**
119      * Represents the comment lexical unit.
120      */

121     int COMMENT = 18;
122
123     /**
124      * Represents the string lexical unit.
125      */

126     int STRING = 19;
127
128     /**
129      * Represents the identifier lexical unit.
130      */

131     int IDENTIFIER = 20;
132
133     /**
134      * Represents the '&lt;&#x21;--' lexical unit.
135      */

136     int CDO = 21;
137
138     /**
139      * Represents the '--&gt;' lexical unit.
140      */

141     int CDC = 22;
142
143     /**
144      * Represents the '&#x21;important' lexical unit.
145      */

146     int IMPORTANT_SYMBOL = 23;
147
148     /**
149      * Represents an integer.
150      */

151     int INTEGER = 24;
152
153     /**
154      * Represents the '|=' lexical unit.
155      */

156     int DASHMATCH = 25;
157
158     /**
159      * Represents the '~=' lexical unit.
160      */

161     int INCLUDES = 26;
162
163     /**
164      * Represents the '#name' lexical unit.
165      */

166     int HASH = 27;
167
168     /**
169      * Represents the '@import' lexical unit.
170      */

171     int IMPORT_SYMBOL = 28;
172
173     /**
174      * Represents the '@ident' lexical unit.
175      */

176     int AT_KEYWORD = 29;
177
178     /**
179      * Represents the '@charset' lexical unit.
180      */

181     int CHARSET_SYMBOL = 30;
182
183     /**
184      * Represents the '@font-face' lexical unit.
185      */

186     int FONT_FACE_SYMBOL = 31;
187
188     /**
189      * Represents the '@media' lexical unit.
190      */

191     int MEDIA_SYMBOL = 32;
192
193     /**
194      * Represents the '@page' lexical unit.
195      */

196     int PAGE_SYMBOL = 33;
197
198     /**
199      * Represents a dimension lexical unit.
200      */

201     int DIMENSION = 34;
202
203     /**
204      * Represents a ex lexical unit.
205      */

206     int EX = 35;
207
208     /**
209      * Represents a em lexical unit.
210      */

211     int EM = 36;
212
213     /**
214      * Represents a cm lexical unit.
215      */

216     int CM = 37;
217
218     /**
219      * Represents a mm lexical unit.
220      */

221     int MM = 38;
222
223     /**
224      * Represents a in lexical unit.
225      */

226     int IN = 39;
227
228     /**
229      * Represents a ms lexical unit.
230      */

231     int MS = 40;
232
233     /**
234      * Represents a hz lexical unit.
235      */

236     int HZ = 41;
237
238     /**
239      * Represents a % lexical unit.
240      */

241     int PERCENTAGE = 42;
242
243     /**
244      * Represents a s lexical unit.
245      */

246     int S = 43;
247
248     /**
249      * Represents a pc lexical unit.
250      */

251     int PC = 44;
252
253     /**
254      * Represents a pt lexical unit.
255      */

256     int PT = 45;
257
258     /**
259      * Represents a px lexical unit.
260      */

261     int PX = 46;
262
263     /**
264      * Represents a deg lexical unit.
265      */

266     int DEG = 47;
267
268     /**
269      * Represents a rad lexical unit.
270      */

271     int RAD = 48;
272
273     /**
274      * Represents a grad lexical unit.
275      */

276     int GRAD = 49;
277
278     /**
279      * Represents a khz lexical unit.
280      */

281     int KHZ = 50;
282
283     /**
284      * Represents a 'url(URI)' lexical unit.
285      */

286     int URI = 51;
287
288     /**
289      * Represents a 'ident(' lexical unit.
290      */

291     int FUNCTION = 52;
292
293     /**
294      * Represents a unicode range lexical unit.
295      */

296     int UNICODE_RANGE = 53;
297
298     /**
299      * represents a real number.
300      */

301     int REAL = 54;
302 }
303
Popular Tags