KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > core > compiler > ITerminalSymbols


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.jdt.core.compiler;
13  
14 /**
15  * Maps each terminal symbol in the java-grammar into a unique integer.
16  * This integer is used to represent the terminal when computing a parsing action.
17  * <p>
18  * This interface is not intended to be implemented by clients.
19  * </p>
20  *
21  * @see IScanner
22  * @since 2.0
23  */

24 public interface ITerminalSymbols {
25
26     int TokenNameWHITESPACE = 1000;
27     int TokenNameCOMMENT_LINE = 1001;
28     int TokenNameCOMMENT_BLOCK = 1002;
29     int TokenNameCOMMENT_JAVADOC = 1003;
30     
31     int TokenNameIdentifier = 5;
32     int TokenNameabstract = 98;
33     
34     /**
35      * "assert" token (added in J2SE 1.4).
36      */

37     int TokenNameassert = 118;
38     int TokenNameboolean = 18;
39     int TokenNamebreak = 119;
40     int TokenNamebyte = 19;
41     int TokenNamecase = 211;
42     int TokenNamecatch = 225;
43     int TokenNamechar = 20;
44     int TokenNameclass = 165;
45     int TokenNamecontinue = 120;
46     int TokenNamedefault = 212;
47     int TokenNamedo = 121;
48     int TokenNamedouble = 21;
49     int TokenNameelse = 213;
50     int TokenNameextends = 243;
51     int TokenNamefalse = 37;
52     int TokenNamefinal = 99;
53     int TokenNamefinally = 226;
54     int TokenNamefloat = 22;
55     int TokenNamefor = 122;
56     int TokenNameif = 123;
57     int TokenNameimplements = 268;
58     int TokenNameimport = 191;
59     int TokenNameinstanceof = 65;
60     int TokenNameint = 23;
61     int TokenNameinterface = 180;
62     int TokenNamelong = 24;
63     int TokenNamenative = 100;
64     int TokenNamenew = 32;
65     int TokenNamenull = 38;
66     int TokenNamepackage = 214;
67     int TokenNameprivate = 101;
68     int TokenNameprotected = 102;
69     int TokenNamepublic = 103;
70     int TokenNamereturn = 124;
71     int TokenNameshort = 25;
72     int TokenNamestatic = 94;
73     int TokenNamestrictfp = 104;
74     int TokenNamesuper = 33;
75     int TokenNameswitch = 125;
76     int TokenNamesynchronized = 85;
77     int TokenNamethis = 34;
78     int TokenNamethrow = 126;
79     int TokenNamethrows = 227;
80     int TokenNametransient = 105;
81     int TokenNametrue = 39;
82     int TokenNametry = 127;
83     int TokenNamevoid = 26;
84     int TokenNamevolatile = 106;
85     int TokenNamewhile = 117;
86     int TokenNameIntegerLiteral = 40;
87     int TokenNameLongLiteral = 41;
88     int TokenNameFloatingPointLiteral = 42;
89     int TokenNameDoubleLiteral = 43;
90     int TokenNameCharacterLiteral = 44;
91     int TokenNameStringLiteral = 45;
92     int TokenNamePLUS_PLUS = 1;
93     int TokenNameMINUS_MINUS = 2;
94     int TokenNameEQUAL_EQUAL = 35;
95     int TokenNameLESS_EQUAL = 66;
96     int TokenNameGREATER_EQUAL = 67;
97     int TokenNameNOT_EQUAL = 36;
98     int TokenNameLEFT_SHIFT = 14;
99     int TokenNameRIGHT_SHIFT = 11;
100     int TokenNameUNSIGNED_RIGHT_SHIFT = 12;
101     int TokenNamePLUS_EQUAL = 168;
102     int TokenNameMINUS_EQUAL = 169;
103     int TokenNameMULTIPLY_EQUAL = 170;
104     int TokenNameDIVIDE_EQUAL = 171;
105     int TokenNameAND_EQUAL = 172;
106     int TokenNameOR_EQUAL = 173;
107     int TokenNameXOR_EQUAL = 174;
108     int TokenNameREMAINDER_EQUAL = 175;
109     int TokenNameLEFT_SHIFT_EQUAL = 176;
110     int TokenNameRIGHT_SHIFT_EQUAL = 177;
111     int TokenNameUNSIGNED_RIGHT_SHIFT_EQUAL = 178;
112     int TokenNameOR_OR = 80;
113     int TokenNameAND_AND = 79;
114     int TokenNamePLUS = 3;
115     int TokenNameMINUS = 4;
116     int TokenNameNOT = 71;
117     int TokenNameREMAINDER = 9;
118     int TokenNameXOR = 63;
119     int TokenNameAND = 62;
120     int TokenNameMULTIPLY = 8;
121     int TokenNameOR = 70;
122     int TokenNameTWIDDLE = 72;
123     int TokenNameDIVIDE = 10;
124     int TokenNameGREATER = 68;
125     int TokenNameLESS = 69;
126     int TokenNameLPAREN = 7;
127     int TokenNameRPAREN = 86;
128     int TokenNameLBRACE = 110;
129     int TokenNameRBRACE = 95;
130     int TokenNameLBRACKET = 15;
131     int TokenNameRBRACKET = 166;
132     int TokenNameSEMICOLON = 64;
133     int TokenNameQUESTION = 81;
134     int TokenNameCOLON = 154;
135     int TokenNameCOMMA = 90;
136     int TokenNameDOT = 6;
137     int TokenNameEQUAL = 167;
138     int TokenNameEOF = 158;
139     int TokenNameERROR = 309;
140      
141     /**
142      * "enum" keyword (added in J2SE 1.5).
143      * @since 3.0
144      */

145     int TokenNameenum = 400;
146      
147     /**
148      * "@" token (added in J2SE 1.5).
149      * @since 3.0
150      */

151     int TokenNameAT = 401;
152      
153     /**
154      * "..." token (added in J2SE 1.5).
155      * @since 3.0
156      */

157     int TokenNameELLIPSIS = 402;
158     
159     /**
160      * @since 3.1
161      */

162     int TokenNameconst = 403;
163     
164     /**
165      * @since 3.1
166      */

167     int TokenNamegoto = 404;
168 }
169
Popular Tags