Produced by Araxis Merge on 9/25/2018 2:13:28 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | build 3.zip\build 3\MHLTH_YS_137_Source\JavaScript\resources\javaJDF-1.8.0\src\sun\tools\java | Constants.java | Mon Jan 22 14:46:56 2018 UTC |
2 | build 3.zip\build 3\MHLTH_YS_137_Source\JavaScript\resources\javaJDF-1.8.0\src\sun\tools\java | Constants.java | Wed Sep 12 18:00:50 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 1180 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | /* | |
2 | * Copyrig ht (c) 199 4, 2004, O racle and/ or its aff iliates. A ll rights reserved. | |
3 | * DO NOT ALTER OR R EMOVE COPY RIGHT NOTI CES OR THI S FILE HEA DER. | |
4 | * | |
5 | * This co de is free software; you can r edistribut e it and/o r modify i t | |
6 | * under t he terms o f the GNU General Pu blic Licen se version 2 only, a s | |
7 | * publish ed by the Free Softw are Founda tion. Ora cle design ates this | |
8 | * particu lar file a s subject to the "Cl asspath" e xception a s provided | |
9 | * by Orac le in the LICENSE fi le that ac companied this code. | |
10 | * | |
11 | * This co de is dist ributed in the hope that it wi ll be usef ul, but WI THOUT | |
12 | * ANY WAR RANTY; wit hout even the implie d warranty of MERCHA NTABILITY or | |
13 | * FITNESS FOR A PAR TICULAR PU RPOSE. Se e the GNU General Pu blic Licen se | |
14 | * version 2 for mor e details (a copy is included in the LIC ENSE file that | |
15 | * accompa nied this code). | |
16 | * | |
17 | * You sho uld have r eceived a copy of th e GNU Gene ral Public License v ersion | |
18 | * 2 along with this work; if not, write to the Fr ee Softwar e Foundati on, | |
19 | * Inc., 5 1 Franklin St, Fifth Floor, Bo ston, MA 0 2110-1301 USA. | |
20 | * | |
21 | * Please contact Or acle, 500 Oracle Par kway, Redw ood Shores , CA 94065 USA | |
22 | * or visi t www.orac le.com if you need a dditional informatio n or have any | |
23 | * questio ns. | |
24 | */ | |
25 | ||
26 | ||
27 | package su n.tools.ja va; | |
28 | ||
29 | /** | |
30 | * This in terface de fines cons tant that are used | |
31 | * through out the co mpiler. It inherits from Runti meConstant s, | |
32 | * which i s an autog enerated c lass that contains c ontstants | |
33 | * defined in the in terpreter. | |
34 | * | |
35 | * WARNING : The cont ents of th is source file are n ot part of any | |
36 | * support ed API. C ode that d epends on them does so at its own risk: | |
37 | * they ar e subject to change or removal without n otice. | |
38 | * | |
39 | * @author Arth ur van Hof f | |
40 | */ | |
41 | ||
42 | public | |
43 | interface Constants extends Ru ntimeConst ants { | |
44 | ||
45 | /* | |
46 | * Ena ble/disabl e inclusio n of certa in debug t racing cod e in the | |
47 | * com piler. Wh en include d, the tra cing code may be sel ectively | |
48 | * ena bled at ru ntime, oth erwise we save the s pace/time overhead. | |
49 | * Sho uld normal ly be 'fal se' for a release ve rsion. | |
50 | */ | |
51 | public static fi nal boolea n tracing = true; | |
52 | ||
53 | /* | |
54 | * Fre quently us ed identif iers | |
55 | */ | |
56 | Identi fier idApp end = Iden tifier.loo kup("appen d"); | |
57 | Identi fier idCla ssInit = I dentifier. lookup("<c linit>"); | |
58 | Identi fier idCod e = Identi fier.looku p("Code"); | |
59 | Identi fier idIni t = Identi fier.looku p("<init>" ); | |
60 | Identi fier idLen gth = Iden tifier.loo kup("lengt h"); | |
61 | Identi fier idNul l = Identi fier.looku p(""); | |
62 | Identi fier idSta r = Identi fier.looku p("*"); | |
63 | Identi fier idSup er = Ident ifier.look up("super" ); | |
64 | Identi fier idThi s = Identi fier.looku p("this"); | |
65 | Identi fier idCla ss = Ident ifier.look up("class" ); | |
66 | Identi fier idToS tring = Id entifier.l ookup("toS tring"); | |
67 | Identi fier idVal ueOf = Ide ntifier.lo okup("valu eOf"); | |
68 | Identi fier idNew = Identif ier.lookup ("new"); | |
69 | Identi fier idGet Class = Id entifier.l ookup("get Class"); | |
70 | Identi fier idTYP E = Identi fier.looku p("TYPE"); | |
71 | Identi fier idFin allyReturn Value = Id entifier.l ookup("<re turn>"); | |
72 | ||
73 | Identi fier idJav aLang = Id entifier.l ookup("jav a.lang"); | |
74 | ||
75 | Identi fier idJav aLangClone able = Ide ntifier.lo okup("java .lang.Clon eable"); | |
76 | ||
77 | Identi fier idJav aLangError = Identif ier.lookup ("java.lan g.Error"); | |
78 | Identi fier idJav aLangExcep tion = Ide ntifier.lo okup("java .lang.Exce ption"); | |
79 | Identi fier idJav aLangObjec t = Identi fier.looku p("java.la ng.Object" ); | |
80 | Identi fier idJav aLangClass = Identif ier.lookup ("java.lan g.Class"); | |
81 | Identi fier idJav aLangRunti meExceptio n = | |
82 | Identifier .lookup("j ava.lang.R untimeExce ption"); | |
83 | Identi fier idJav aLangStrin g = Identi fier.looku p("java.la ng.String" ); | |
84 | Identi fier idJav aLangStrin gBuffer = | |
85 | Identifier .lookup("j ava.lang.S tringBuffe r"); | |
86 | Identi fier idJav aLangThrow able = Ide ntifier.lo okup("java .lang.Thro wable"); | |
87 | ||
88 | Identi fier idJav aIoSeriali zable = Id entifier.l ookup("jav a.io.Seria lizable"); | |
89 | ||
90 | ||
91 | Identi fier idCon stantValue = Identif ier.lookup ("Constant Value"); | |
92 | Identi fier idLoc alVariable Table = Id entifier.l ookup("Loc alVariable Table"); | |
93 | Identi fier idLin eNumberTab le = Ident ifier.look up("LineNu mberTable" ); | |
94 | // JCOV | |
95 | Identi fier idCov erageTable = Identif ier.lookup ("Coverage Table"); | |
96 | // end JCO V | |
97 | Identi fier idSou rceFile = Identifier .lookup("S ourceFile" ); | |
98 | Identi fier idDoc umentation = Identif ier.lookup ("Document ation"); | |
99 | Identi fier idDep recated = Identifier .lookup("D eprecated" ); | |
100 | Identi fier idSyn thetic = I dentifier. lookup("Sy nthetic"); | |
101 | Identi fier idExc eptions = Identifier .lookup("E xceptions" ); | |
102 | Identi fier idInn erClasses = Identifi er.lookup( "InnerClas ses"); | |
103 | ||
104 | /* met hods we ne ed to know about */ | |
105 | Identi fier idClo ne = Ident ifier.look up("clone" ); | |
106 | ||
107 | ||
108 | /* Thi s is not a real sign ature mark er, since it is also | |
109 | * an identifier constitue nt charact er. | |
110 | */ | |
111 | char SIGC_INNE RCLASS = '$'; | |
112 | String SIG_INNER CLASS = "$"; | |
113 | ||
114 | String prefixThi s = "this$ "; | |
115 | String prefixVal = "val$" ; | |
116 | String prefixLoc = "loc$" ; | |
117 | String prefixAcc ess = "acces s$"; | |
118 | String prefixCla ss = "class $"; | |
119 | String prefixArr ay = "array $"; | |
120 | ||
121 | /* | |
122 | * Fla gs | |
123 | */ | |
124 | int F_ VERBOSE = 1 << 0 ; | |
125 | int F_ DUMP = 1 << 1 ; | |
126 | int F_ WARNINGS = 1 << 2 ; | |
127 | ||
128 | // The meaning o f -g has c hanged, so F_DEBUG f lag is rem oved. | |
129 | // pub lic static final int F_DEBUG = 1 << 3; | |
130 | int F_ DEBUG_LINE S = 1 << 1 2; | |
131 | int F_ DEBUG_VARS = 1 << 1 3; | |
132 | int F_ DEBUG_SOUR CE = 1 << 1 8; | |
133 | ||
134 | // The meaning o f -O has c hanged, so F_OPTIMIZ E flag is removed. | |
135 | // pub lic static final int F_OPTIMIZ E = 1 << 4; | |
136 | int F_ OPT = 1 << 1 4; | |
137 | int F_ OPT_INTERC LASS = 1 << 1 5; | |
138 | ||
139 | int F_ DEPENDENCI ES = 1 << 5 ; | |
140 | ||
141 | // JCOV | |
142 | int F_ COVERAGE = 1 << 6 ; | |
143 | int F_ COVDATA = 1 << 7 ; | |
144 | // end JCO V | |
145 | ||
146 | int F_ DEPRECATIO N = 1 << 9 ; | |
147 | int F_ PRINT_DEPE NDENCIES = 1 << 1 0; | |
148 | int F_ VERSION12 = 1 << 1 1; | |
149 | ||
150 | ||
151 | int F_ ERRORSREPO RTED = 1 << 1 6; | |
152 | ||
153 | int F_ STRICTDEFA ULT = 1 << 1 7; | |
154 | ||
155 | /* | |
156 | * Mod ifiers. | |
157 | * | |
158 | * The re has bee n much con fusion reg arding mod ifiers. T here | |
159 | * are a number of distinc t usages: | |
160 | * | |
161 | * - in class files to a nnotate cl asses, as per JVM pg . 102. | |
162 | * - in class files to a nnotate me thods, as per JVM pg . 104. | |
163 | * - in class files to a nnotate In nerClass a ttributes, as per | |
164 | * http ://java.su n.com/prod ucts/jdk/1 .1/docs/gu ide/innerc lasses | |
165 | * - in the c ompiler to record ja va source level modi fiers, | |
166 | * as p er JLS pg. 157 et al ., plus mi sc. info s uch as whe ther | |
167 | * a me thod is de precated | |
168 | * - in the J VM to reco rd misc. i nfo, such as whether a method has | |
169 | * has been compi led | |
170 | * | |
171 | * To make matte rs worse, the terms "access fl ags" and " modifiers" | |
172 | * are often use d intercha ngably, an d some inf ormation t hat might | |
173 | * mak e sense as a flag is expressed using att ributes (i e. Synthet ic). | |
174 | * | |
175 | * The constants defined h erein have been divi ded by whe ther they | |
176 | * mak e sense on ly within the compil er (M_* an d MM_*) or whether | |
177 | * the y only mak e sense to the JVM ( ACC_* and ACCM_*). At an earl ier | |
178 | * tim e these we re all lum ped togeth er. Futur e maintena nce should | |
179 | * str ive to kee p the dist inction cl ear. | |
180 | * | |
181 | * Not e that mod ifier M_ST RICTFP is not in gen eral recov erable fro m | |
182 | * the ACC_STRIC T bit in c lassfiles. | |
183 | * | |
184 | * Not e also tha t the modi fiers M_LO CAL and M_ ANONYMOUS do not app ear | |
185 | * in the InnerC lass attri bute, as t hey are ab ove the fi rst 16 bit s. | |
186 | */ | |
187 | ||
188 | // Mod ifiers mea ningful to both Java source an d the JVM. These | |
189 | // hav e been kep t the same bit in th e M_* and ACC_* form s | |
190 | // to avoid dest abilizing the compil er. | |
191 | int M_ PUBLIC = ACC_PU BLIC; | |
192 | int M_ PRIVATE = ACC_PR IVATE; | |
193 | int M_ PROTECTED = ACC_PR OTECTED; | |
194 | int M_ STATIC = ACC_ST ATIC; | |
195 | int M_ TRANSIENT = ACC_TR ANSIENT; | |
196 | int M_ SYNCHRONIZ ED = ACC_SY NCHRONIZED ; // colli des with A CC_SUPER | |
197 | int M_ ABSTRACT = ACC_AB STRACT; | |
198 | int M_ NATIVE = ACC_NA TIVE; | |
199 | int M_ FINAL = ACC_FI NAL; | |
200 | int M_ VOLATILE = ACC_VO LATILE; | |
201 | int M_ INTERFACE = ACC_IN TERFACE; | |
202 | ||
203 | // Mod ifiers not meaningfu l to the J VM. The J VM only al lows 16 bi ts | |
204 | // for modifiers , so keepi ng these i n the unus able bits after the first | |
205 | // 16 is a good idea. | |
206 | int M_ ANONYMOUS = 0x0001 0000; | |
207 | int M_ LOCAL = 0x0002 0000; | |
208 | int M_ DEPRECATED = 0x0004 0000; | |
209 | int M_ SYNTHETIC = 0x0008 0000; | |
210 | int M_ INLINEABLE = 0x0010 0000; | |
211 | ||
212 | int M_ STRICTFP = 0x0020 0000; | |
213 | ||
214 | String paraDepre cated = "@depr ecated"; | |
215 | ||
216 | // Mas ks for mod ifiers tha t apply to Java sour ce code | |
217 | int MM _CLASS = M_PUBLIC | |
218 | | M_IN TERFACE | |
219 | | M_FI NAL | |
220 | | M_AB STRACT | |
221 | | M_ST RICTFP; | |
222 | int MM _MEMBER = M_PUBLIC | |
223 | | M_PR IVATE | |
224 | | M_PR OTECTED | |
225 | | M_FI NAL | |
226 | | M_ST ATIC; | |
227 | int MM _FIELD = MM_MEMBER | |
228 | | M_TR ANSIENT | |
229 | | M_VO LATILE; | |
230 | int MM _METHOD = MM_MEMBER | |
231 | | M_SY NCHRONIZED | |
232 | | M_AB STRACT | |
233 | | M_NA TIVE | |
234 | | M_ST RICTFP; | |
235 | ||
236 | // Mas ks for mod ifiers tha t apply to class fil es. | |
237 | // Not e that the M_SYNTHET IC modifie r is never written o ut to a cl ass file. | |
238 | // Syn thetic mem bers are i ndicated u sing the " Synthetic" attribute . | |
239 | int AC CM_CLASS = ACC_PUBL IC | |
240 | | ACC_ INTERFACE | |
241 | | ACC_ FINAL | |
242 | | ACC_ ABSTRACT | |
243 | | ACC_ SUPER | |
244 | | ACC_ STRICT; | |
245 | int AC CM_MEMBER = ACC_PUBL IC | |
246 | | ACC_ PRIVATE | |
247 | | ACC_ PROTECTED | |
248 | | ACC_ FINAL | |
249 | | ACC_ STATIC; | |
250 | // The M_ANONYMO US and M_L OCAL modif iers are n ot mention ed in the | |
251 | // inn er classes specifica tion and a re never w ritten to classfiles . | |
252 | // Als o note tha t ACC_SUPE R should n ever be se t in an In nerClass | |
253 | // att ribute. | |
254 | int AC CM_INNERCL ASS = ACC_ PUBLIC | |
255 | | ACC_ PRIVATE | |
256 | | ACC_ PROTECTED | |
257 | | ACC_ STATIC | |
258 | | ACC_ ABSTRACT | |
259 | | ACC_ FINAL | |
260 | | ACC_ INTERFACE | |
261 | | ACC_ STRICT; | |
262 | int AC CM_FIELD = ACCM_MEM BER | |
263 | | ACC_ TRANSIENT | |
264 | | ACC_ VOLATILE; | |
265 | int AC CM_METHOD = ACCM_MEM BER | |
266 | | ACC_ SYNCHRONIZ ED | |
267 | | ACC_ ABSTRACT | |
268 | | ACC_ NATIVE | |
269 | | ACC_ STRICT; | |
270 | ||
271 | /* | |
272 | * Typ e codes | |
273 | */ | |
274 | int TC _BOOLEAN = 0; | |
275 | int TC _BYTE = 1; | |
276 | int TC _CHAR = 2; | |
277 | int TC _SHORT = 3; | |
278 | int TC _INT = 4; | |
279 | int TC _LONG = 5; | |
280 | int TC _FLOAT = 6; | |
281 | int TC _DOUBLE = 7; | |
282 | int TC _NULL = 8; | |
283 | int TC _ARRAY = 9; | |
284 | int TC _CLASS = 10; | |
285 | int TC _VOID = 11; | |
286 | int TC _METHOD = 12; | |
287 | int TC _ERROR = 13; | |
288 | ||
289 | // JCOV | |
290 | /* | |
291 | * Cov er's types | |
292 | */ | |
293 | int CT _FIRST_KIN D = 1; | |
294 | int CT _METHOD = 1; | |
295 | int CT _FIKT_METH OD = 2; | |
296 | int CT _BLOCK = 3; | |
297 | int CT _FIKT_RET = 4; | |
298 | int CT _CASE = 5; | |
299 | int CT _SWITH_WO_ DEF = 6; | |
300 | int CT _BRANCH_TR UE = 7; | |
301 | int CT _BRANCH_FA LSE = 8; | |
302 | int CT _LAST_KIND = 8; | |
303 | // end JCO V | |
304 | ||
305 | /* | |
306 | * Typ e Masks | |
307 | */ | |
308 | int TM _NULL = 1 << TC _NULL; | |
309 | int TM _VOID = 1 << TC _VOID; | |
310 | int TM _BOOLEAN = 1 << TC _BOOLEAN; | |
311 | int TM _BYTE = 1 << TC _BYTE; | |
312 | int TM _CHAR = 1 << TC _CHAR; | |
313 | int TM _SHORT = 1 << TC _SHORT; | |
314 | int TM _INT = 1 << TC _INT; | |
315 | int TM _LONG = 1 << TC _LONG; | |
316 | int TM _FLOAT = 1 << TC _FLOAT; | |
317 | int TM _DOUBLE = 1 << TC _DOUBLE; | |
318 | int TM _ARRAY = 1 << TC _ARRAY; | |
319 | int TM _CLASS = 1 << TC _CLASS; | |
320 | int TM _METHOD = 1 << TC _METHOD; | |
321 | int TM _ERROR = 1 << TC _ERROR; | |
322 | ||
323 | int TM _INT32 = TM_BYTE | TM_SHOR T | TM_CHA R | TM_INT ; | |
324 | int TM _NUM32 = TM_INT3 2 | TM_FLO AT; | |
325 | int TM _NUM64 = TM_LONG | TM_DOUB LE; | |
326 | int TM _INTEGER = TM_INT3 2 | TM_LON G; | |
327 | int TM _REAL = TM_FLOA T | TM_DOU BLE; | |
328 | int TM _NUMBER = TM_INTE GER | TM_R EAL; | |
329 | int TM _REFERENCE = TM_ARRA Y | TM_CLA SS | TM_NU LL; | |
330 | ||
331 | /* | |
332 | * Cla ss status | |
333 | */ | |
334 | int CS _UNDEFINED = 0; | |
335 | int CS _UNDECIDED = 1; | |
336 | int CS _BINARY = 2; | |
337 | int CS _SOURCE = 3; | |
338 | int CS _PARSED = 4; | |
339 | int CS _CHECKED = 5; | |
340 | int CS _COMPILED = 6; | |
341 | int CS _NOTFOUND = 7; | |
342 | ||
343 | ||
344 | /* | |
345 | * Att ributes | |
346 | */ | |
347 | int AT T_ALL = 0xFF FFFFFF; | |
348 | int AT T_CODE = 1 << 1; | |
349 | int AT T_ALLCLASS ES = 1 << 2; | |
350 | ||
351 | /* | |
352 | * Num ber of bit s used in file offse ts. The l ine number and | |
353 | * fil e offset a re concate nated into a long, w ith enough room | |
354 | * for other inf ormation t o be added later if desired (s uch as | |
355 | * tok en lengths ). For th e moment e xplicit bi t manipula tions | |
356 | * are used to m odify the fields. T his makes sense for efficiency | |
357 | * but at some p oint these ought to be better encapsulat ed. | |
358 | */ | |
359 | int WH EREOFFSETB ITS = 32; | |
360 | long M AXFILESIZE = (1L << WHEREOF FSETBITS) - 1; | |
361 | long M AXLINENUMB ER = (1L << (64 - W HEREOFFSET BITS)) - 1 ; | |
362 | ||
363 | /* | |
364 | * Ope rators | |
365 | */ | |
366 | int CO MMA = 0; | |
367 | int AS SIGN = 1; | |
368 | ||
369 | int AS GMUL = 2; | |
370 | int AS GDIV = 3; | |
371 | int AS GREM = 4; | |
372 | int AS GADD = 5; | |
373 | int AS GSUB = 6; | |
374 | int AS GLSHIFT = 7; | |
375 | int AS GRSHIFT = 8; | |
376 | int AS GURSHIFT = 9; | |
377 | int AS GBITAND = 10; | |
378 | int AS GBITOR = 11; | |
379 | int AS GBITXOR = 12; | |
380 | ||
381 | int CO ND = 13; | |
382 | int OR = 14; | |
383 | int AN D = 15; | |
384 | int BI TOR = 16; | |
385 | int BI TXOR = 17; | |
386 | int BI TAND = 18; | |
387 | int NE = 19; | |
388 | int EQ = 20; | |
389 | int GE = 21; | |
390 | int GT = 22; | |
391 | int LE = 23; | |
392 | int LT = 24; | |
393 | int IN STANCEOF = 25; | |
394 | int LS HIFT = 26; | |
395 | int RS HIFT = 27; | |
396 | int UR SHIFT = 28; | |
397 | int AD D = 29; | |
398 | int SU B = 30; | |
399 | int DI V = 31; | |
400 | int RE M = 32; | |
401 | int MU L = 33; | |
402 | int CA ST = 34; // (x)y | |
403 | int PO S = 35; // +x | |
404 | int NE G = 36; // -x | |
405 | int NO T = 37; | |
406 | int BI TNOT = 38; | |
407 | int PR EINC = 39; // ++x | |
408 | int PR EDEC = 40; // --x | |
409 | int NE WARRAY = 41; | |
410 | int NE WINSTANCE = 42; | |
411 | int NE WFROMNAME = 43; | |
412 | int PO STINC = 44; // x++ | |
413 | int PO STDEC = 45; // x-- | |
414 | int FI ELD = 46; | |
415 | int ME THOD = 47; // x(y) | |
416 | int AR RAYACCESS = 48; // x[y] | |
417 | int NE W = 49; | |
418 | int IN C = 50; | |
419 | int DE C = 51; | |
420 | ||
421 | int CO NVERT = 55; // implici t conversi on | |
422 | int EX PR = 56; // (x) | |
423 | int AR RAY = 57; // {x, y, ...} | |
424 | int GO TO = 58; | |
425 | ||
426 | /* | |
427 | * Val ue tokens | |
428 | */ | |
429 | int ID ENT = 60; | |
430 | int BO OLEANVAL = 61; | |
431 | int BY TEVAL = 62; | |
432 | int CH ARVAL = 63; | |
433 | int SH ORTVAL = 64; | |
434 | int IN TVAL = 65; | |
435 | int LO NGVAL = 66; | |
436 | int FL OATVAL = 67; | |
437 | int DO UBLEVAL = 68; | |
438 | int ST RINGVAL = 69; | |
439 | ||
440 | /* | |
441 | * Typ e keywords | |
442 | */ | |
443 | int BY TE = 70; | |
444 | int CH AR = 71; | |
445 | int SH ORT = 72; | |
446 | int IN T = 73; | |
447 | int LO NG = 74; | |
448 | int FL OAT = 75; | |
449 | int DO UBLE = 76; | |
450 | int VO ID = 77; | |
451 | int BO OLEAN = 78; | |
452 | ||
453 | /* | |
454 | * Exp ression ke ywords | |
455 | */ | |
456 | int TR UE = 80; | |
457 | int FA LSE = 81; | |
458 | int TH IS = 82; | |
459 | int SU PER = 83; | |
460 | int NU LL = 84; | |
461 | ||
462 | /* | |
463 | * Sta tement key words | |
464 | */ | |
465 | int IF = 90; | |
466 | int EL SE = 91; | |
467 | int FO R = 92; | |
468 | int WH ILE = 93; | |
469 | int DO = 94; | |
470 | int SW ITCH = 95; | |
471 | int CA SE = 96; | |
472 | int DE FAULT = 97; | |
473 | int BR EAK = 98; | |
474 | int CO NTINUE = 99; | |
475 | int RE TURN = 100; | |
476 | int TR Y = 101; | |
477 | int CA TCH = 102; | |
478 | int FI NALLY = 103; | |
479 | int TH ROW = 104; | |
480 | int ST AT = 105; | |
481 | int EX PRESSION = 106; | |
482 | int DE CLARATION = 107; | |
483 | int
|
|
484 | ||
485 | /* | |
486 | * Dec laration k eywords | |
487 | */ | |
488 | int IM PORT = 110; | |
489 | int CL ASS = 111; | |
490 | int EX TENDS = 112; | |
491 | int IM PLEMENTS = 113; | |
492 | int IN TERFACE = 114; | |
493 | int PA CKAGE = 115; | |
494 | ||
495 | /* | |
496 | * Mod ifier keyw ords | |
497 | */ | |
498 | int PR IVATE = 120; | |
499 | int PU BLIC = 121; | |
500 | int PR OTECTED = 122; | |
501 | int CO NST = 123; | |
502 | int ST ATIC = 124; | |
503 | int TR ANSIENT = 125; | |
504 | int SY NCHRONIZED = 126; | |
505 | int NA TIVE = 127; | |
506 | int FI NAL = 128; | |
507 | int VO LATILE = 129; | |
508 | int AB STRACT = 130; | |
509 | int ST RICTFP = 131; | |
510 | ||
511 | /* | |
512 | * Pun ctuation | |
513 | */ | |
514 | int SE MICOLON = 135; | |
515 | int CO LON = 136; | |
516 | int QU ESTIONMARK = 137; | |
517 | int LB RACE = 138; | |
518 | int RB RACE = 139; | |
519 | int LP AREN = 140; | |
520 | int RP AREN = 141; | |
521 | int LS QBRACKET = 142; | |
522 | int RS QBRACKET = 143; | |
523 | int TH ROWS = 144; | |
524 | ||
525 | /* | |
526 | * Spe cial token s | |
527 | */ | |
528 | int ER ROR = 145; // an erro r | |
529 | int CO MMENT = 146; // not use d anymore. | |
530 | int TY PE = 147; | |
531 | int LE NGTH = 148; | |
532 | int IN LINERETURN = 149; | |
533 | int IN LINEMETHOD = 150; | |
534 | int IN LINENEWINS TANCE = 151; | |
535 | ||
536 | /* | |
537 | * Ope rator prec edence | |
538 | */ | |
539 | int op Precedence [] = { | |
540 | 10 , 11, 11, 11, 11, 11 , 11, 11, 11, 11, | |
541 | 11 , 11, 11, 12, 13, 14 , 15, 16, 17, 18, | |
542 | 18 , 19, 19, 19, 19, 19 , 20, 20, 20, 21, | |
543 | 21 , 22, 22, 22, 23, 24 , 24, 24, 24, 24, | |
544 | 24 , 25, 25, 26, 26, 26 , 26, 26, 26 | |
545 | }; | |
546 | ||
547 | /* | |
548 | * Ope rator name s | |
549 | */ | |
550 | String opNames[] = { | |
551 | ", ", "=", "*=", "/=", "%=", | |
552 | "+ =", "-=" , "<<=", ">>=", ">>>=", | |
553 | "& =", "|=" , "^=", "?:", "||", | |
554 | "& &", "|", "^", "&", "!=", | |
555 | "= =", ">=" , ">", "<=", "<", | |
556 | "i nstanceof" , "<<", "> >", ">>>", "+", | |
557 | "- ", "/", "%", "*", "cast", | |
558 | "+ ", "-", "!", "~", "++", | |
559 | "- -", "new ", "new", "new", "++", | |
560 | "- -", "fie ld","metho d","[]", "new", | |
561 | "+ +", "--" , null, null, null, | |
562 | ||
563 | "c onvert", " expr", "ar ray", "got o", null, | |
564 | ||
565 | "I dentifier" , "boolean ", "byte", "char", " short", | |
566 | "i nt", "long ", "float" , "double" , "string" , | |
567 | ||
568 | "b yte", "cha r", "short ", "int", "long", | |
569 | "f loat", "do uble", "vo id", "bool ean", null , | |
570 | ||
571 | "t rue", "fal se", "this ", "super" , "null", | |
572 | nu ll, null , null, null, null, | |
573 | ||
574 | "i f", "els e", "for", "while", "do", | |
575 | "s witch", "c ase", "def ault", "br eak", "con tinue", | |
576 | "r eturn", "t ry", "catc h", "final ly", "thro w", | |
577 | "s tat", "exp ression", "declarati on", "decl aration", null, | |
578 | ||
579 | "i mport", "c lass", "ex tends", "i mplements" , "interfa ce", | |
580 | "p ackage", n ull, null, null, null, | |
581 | ||
582 | "p rivate", " public", " protected" , "const", "static", | |
583 | "t ransient", "synchron ized", "na tive", "fi nal", "vol atile", | |
584 | "a bstract", "strictfp" , null, nu ll, null, | |
585 | ||
586 | "; ", ":", "?", "{", "}", | |
587 | "( ", ")", "[", "]", "throws", | |
588 | "e rror", "co mment", "t ype", "len gth", "inl ine-return ", | |
589 | "i nline-meth od", "inli ne-new" | |
590 | }; | |
591 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.