001: /*
002:
003: ============================================================================
004: The Apache Software License, Version 1.1
005: ============================================================================
006:
007: Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
008:
009: Redistribution and use in source and binary forms, with or without modifica-
010: tion, are permitted provided that the following conditions are met:
011:
012: 1. Redistributions of source code must retain the above copyright notice,
013: this list of conditions and the following disclaimer.
014:
015: 2. Redistributions in binary form must reproduce the above copyright notice,
016: this list of conditions and the following disclaimer in the documentation
017: and/or other materials provided with the distribution.
018:
019: 3. The end-user documentation included with the redistribution, if any, must
020: include the following acknowledgment: "This product includes software
021: developed by the Apache Software Foundation (http://www.apache.org/)."
022: Alternately, this acknowledgment may appear in the software itself, if
023: and wherever such third-party acknowledgments normally appear.
024:
025: 4. The names "Batik" and "Apache Software Foundation" must not be
026: used to endorse or promote products derived from this software without
027: prior written permission. For written permission, please contact
028: apache@apache.org.
029:
030: 5. Products derived from this software may not be called "Apache", nor may
031: "Apache" appear in their name, without prior written permission of the
032: Apache Software Foundation.
033:
034: THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
035: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
036: FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
037: APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
038: INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
039: DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
040: OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
041: ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
042: (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
043: THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
044:
045: This software consists of voluntary contributions made by many individuals
046: on behalf of the Apache Software Foundation. For more information on the
047: Apache Software Foundation, please see <http://www.apache.org/>.
048:
049: */
050:
051: package org.apache.batik.css.parser;
052:
053: /**
054: * This interface defines the constants that represent CSS lexical units.
055: *
056: * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
057: * @version $Id$
058: */
059: public interface LexicalUnits {
060:
061: /**
062: * Represents the EOF lexical unit.
063: */
064: int EOF = 0;
065:
066: /**
067: * Represents the '{' lexical unit.
068: */
069: int LEFT_CURLY_BRACE = 1;
070:
071: /**
072: * Represents the '}' lexical unit.
073: */
074: int RIGHT_CURLY_BRACE = 2;
075:
076: /**
077: * Represents the '=' lexical unit.
078: */
079: int EQUAL = 3;
080:
081: /**
082: * Represents the '+' lexical unit.
083: */
084: int PLUS = 4;
085:
086: /**
087: * Represents the '-' lexical unit.
088: */
089: int MINUS = 5;
090:
091: /**
092: * Represents the ',' lexical unit.
093: */
094: int COMMA = 6;
095:
096: /**
097: * Represents the '.' lexical unit.
098: */
099: int DOT = 7;
100:
101: /**
102: * Represents the ';' lexical unit.
103: */
104: int SEMI_COLON = 8;
105:
106: /**
107: * Represents the '>' lexical unit.
108: */
109: int PRECEDE = 9;
110:
111: /**
112: * Represents the '/' lexical unit.
113: */
114: int DIVIDE = 10;
115:
116: /**
117: * Represents the '[' lexical unit.
118: */
119: int LEFT_BRACKET = 11;
120:
121: /**
122: * Represents the ']' lexical unit.
123: */
124: int RIGHT_BRACKET = 12;
125:
126: /**
127: * Represents the '*' lexical unit.
128: */
129: int ANY = 13;
130:
131: /**
132: * Represents the '(' lexical unit.
133: */
134: int LEFT_BRACE = 14;
135:
136: /**
137: * Represents the ')' lexical unit.
138: */
139: int RIGHT_BRACE = 15;
140:
141: /**
142: * Represents the ':' lexical unit.
143: */
144: int COLON = 16;
145:
146: /**
147: * Represents the white space lexical unit.
148: */
149: int SPACE = 17;
150:
151: /**
152: * Represents the comment lexical unit.
153: */
154: int COMMENT = 18;
155:
156: /**
157: * Represents the string lexical unit.
158: */
159: int STRING = 19;
160:
161: /**
162: * Represents the identifier lexical unit.
163: */
164: int IDENTIFIER = 20;
165:
166: /**
167: * Represents the '<!--' lexical unit.
168: */
169: int CDO = 21;
170:
171: /**
172: * Represents the '-->' lexical unit.
173: */
174: int CDC = 22;
175:
176: /**
177: * Represents the '!important' lexical unit.
178: */
179: int IMPORTANT_SYMBOL = 23;
180:
181: /**
182: * Represents an integer.
183: */
184: int INTEGER = 24;
185:
186: /**
187: * Represents the '|=' lexical unit.
188: */
189: int DASHMATCH = 25;
190:
191: /**
192: * Represents the '~=' lexical unit.
193: */
194: int INCLUDES = 26;
195:
196: /**
197: * Represents the '#name' lexical unit.
198: */
199: int HASH = 27;
200:
201: /**
202: * Represents the '@import' lexical unit.
203: */
204: int IMPORT_SYMBOL = 28;
205:
206: /**
207: * Represents the '@ident' lexical unit.
208: */
209: int AT_KEYWORD = 29;
210:
211: /**
212: * Represents the '@charset' lexical unit.
213: */
214: int CHARSET_SYMBOL = 30;
215:
216: /**
217: * Represents the '@font-face' lexical unit.
218: */
219: int FONT_FACE_SYMBOL = 31;
220:
221: /**
222: * Represents the '@media' lexical unit.
223: */
224: int MEDIA_SYMBOL = 32;
225:
226: /**
227: * Represents the '@page' lexical unit.
228: */
229: int PAGE_SYMBOL = 33;
230:
231: /**
232: * Represents a dimension lexical unit.
233: */
234: int DIMENSION = 34;
235:
236: /**
237: * Represents a ex lexical unit.
238: */
239: int EX = 35;
240:
241: /**
242: * Represents a em lexical unit.
243: */
244: int EM = 36;
245:
246: /**
247: * Represents a cm lexical unit.
248: */
249: int CM = 37;
250:
251: /**
252: * Represents a mm lexical unit.
253: */
254: int MM = 38;
255:
256: /**
257: * Represents a in lexical unit.
258: */
259: int IN = 39;
260:
261: /**
262: * Represents a ms lexical unit.
263: */
264: int MS = 40;
265:
266: /**
267: * Represents a hz lexical unit.
268: */
269: int HZ = 41;
270:
271: /**
272: * Represents a % lexical unit.
273: */
274: int PERCENTAGE = 42;
275:
276: /**
277: * Represents a s lexical unit.
278: */
279: int S = 43;
280:
281: /**
282: * Represents a pc lexical unit.
283: */
284: int PC = 44;
285:
286: /**
287: * Represents a pt lexical unit.
288: */
289: int PT = 45;
290:
291: /**
292: * Represents a px lexical unit.
293: */
294: int PX = 46;
295:
296: /**
297: * Represents a deg lexical unit.
298: */
299: int DEG = 47;
300:
301: /**
302: * Represents a rad lexical unit.
303: */
304: int RAD = 48;
305:
306: /**
307: * Represents a grad lexical unit.
308: */
309: int GRAD = 49;
310:
311: /**
312: * Represents a khz lexical unit.
313: */
314: int KHZ = 50;
315:
316: /**
317: * Represents a 'url(URI)' lexical unit.
318: */
319: int URI = 51;
320:
321: /**
322: * Represents a 'ident(' lexical unit.
323: */
324: int FUNCTION = 52;
325:
326: /**
327: * Represents a unicode range lexical unit.
328: */
329: int UNICODE_RANGE = 53;
330:
331: /**
332: * represents a real number.
333: */
334: int REAL = 54;
335: }
|