added -J option to preserve unmodified files in preexisting jarfile
[org.ibex.tool.git] / src / org / eclipse / jdt / internal / compiler / parser / TerminalTokens.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package org.eclipse.jdt.internal.compiler.parser;
12
13 /**
14  * IMPORTANT NOTE: These constants are dedicated to the internal Scanner implementation. 
15  * It is mirrored in org.eclipse.jdt.core.compiler public package where it is API. 
16  * The mirror implementation is using the backward compatible ITerminalSymbols constant 
17  * definitions (stable with 2.0), whereas the internal implementation uses TerminalTokens 
18  * which constant values reflect the latest parser generation state.
19  */
20 /**
21  * Maps each terminal symbol in the java-grammar into a unique integer. 
22  * This integer is used to represent the terminal when computing a parsing action. 
23  * 
24  * Disclaimer : These constant values are generated automatically using a Java 
25  * grammar, therefore their actual values are subject to change if new keywords 
26  * were added to the language (for instance, 'assert' is a keyword in 1.4).
27  */
28 public interface TerminalTokens {
29
30         // special tokens not part of grammar - not autogenerated
31         int TokenNameWHITESPACE = 1000,
32                 TokenNameCOMMENT_LINE = 1001,
33                 TokenNameCOMMENT_BLOCK = 1002,
34                 TokenNameCOMMENT_JAVADOC = 1003;
35
36         int TokenNameIdentifier = 26,
37                 TokenNameabstract = 56,
38                 TokenNameassert = 74,
39                 TokenNameboolean = 32,
40                 TokenNamebreak = 75,
41                 TokenNamebyte = 33,
42                 TokenNamecase = 100,
43                 TokenNamecatch = 101,
44                 TokenNamechar = 34,
45                 TokenNameclass = 72,
46                 TokenNamecontinue = 76,
47                 TokenNamedefault = 96,
48                 TokenNamedo = 77,
49                 TokenNamedouble = 35,
50                 TokenNameelse = 102,
51                 TokenNameenum = 103,
52                 TokenNameextends = 97,
53                 TokenNamefalse = 45,
54                 TokenNamefinal = 57,
55                 TokenNamefinally = 104,
56                 TokenNamefloat = 36,
57                 TokenNamefor = 78,
58                 TokenNameif = 79,
59                 TokenNameimplements = 106,
60                 TokenNameimport = 99,
61                 TokenNameinstanceof = 15,
62                 TokenNameint = 37,
63                 TokenNameinterface = 80,
64                 TokenNamelong = 38,
65                 TokenNamenative = 58,
66                 TokenNamenew = 43,
67                 TokenNamenull = 46,
68                 TokenNamepackage = 98,
69                 TokenNameprivate = 59,
70                 TokenNameprotected = 60,
71                 TokenNamepublic = 61,
72                 TokenNamereturn = 81,
73                 TokenNameshort = 39,
74                 TokenNamestatic = 54,
75                 TokenNamestrictfp = 62,
76                 TokenNamesuper = 41,
77                 TokenNameswitch = 82,
78                 TokenNamesynchronized = 55,
79                 TokenNamethis = 42,
80                 TokenNamethrow = 83,
81                 TokenNamethrows = 105,
82                 TokenNametransient = 63,
83                 TokenNametrue = 47,
84                 TokenNametry = 84,
85                 TokenNamevoid = 40,
86                 TokenNamevolatile = 64,
87                 TokenNamewhile = 73,
88                 TokenNameIntegerLiteral = 48,
89                 TokenNameLongLiteral = 49,
90                 TokenNameFloatingPointLiteral = 50,
91                 TokenNameDoubleLiteral = 51,
92                 TokenNameCharacterLiteral = 52,
93                 TokenNameStringLiteral = 53,
94                 TokenNamePLUS_PLUS = 10,
95                 TokenNameMINUS_MINUS = 11,
96                 TokenNameEQUAL_EQUAL = 18,
97                 TokenNameLESS_EQUAL = 16,
98                 TokenNameGREATER_EQUAL = 17,
99                 TokenNameNOT_EQUAL = 19,
100                 TokenNameLEFT_SHIFT = 13,
101                 TokenNameRIGHT_SHIFT = 8,
102                 TokenNameUNSIGNED_RIGHT_SHIFT = 9,
103                 TokenNamePLUS_EQUAL = 85,
104                 TokenNameMINUS_EQUAL = 86,
105                 TokenNameMULTIPLY_EQUAL = 87,
106                 TokenNameDIVIDE_EQUAL = 88,
107                 TokenNameAND_EQUAL = 89,
108                 TokenNameOR_EQUAL = 90,
109                 TokenNameXOR_EQUAL = 91,
110                 TokenNameREMAINDER_EQUAL = 92,
111                 TokenNameLEFT_SHIFT_EQUAL = 93,
112                 TokenNameRIGHT_SHIFT_EQUAL = 94,
113                 TokenNameUNSIGNED_RIGHT_SHIFT_EQUAL = 95,
114                 TokenNameOR_OR = 25,
115                 TokenNameAND_AND = 24,
116                 TokenNamePLUS = 1,
117                 TokenNameMINUS = 2,
118                 TokenNameNOT = 68,
119                 TokenNameREMAINDER = 5,
120                 TokenNameXOR = 21,
121                 TokenNameAND = 20,
122                 TokenNameMULTIPLY = 4,
123                 TokenNameOR = 22,
124                 TokenNameTWIDDLE = 69,
125                 TokenNameDIVIDE = 6,
126                 TokenNameGREATER = 12,
127                 TokenNameLESS = 7,
128                 TokenNameLPAREN = 28,
129                 TokenNameRPAREN = 29,
130                 TokenNameLBRACE = 66,
131                 TokenNameRBRACE = 31,
132                 TokenNameLBRACKET = 14,
133                 TokenNameRBRACKET = 70,
134                 TokenNameSEMICOLON = 27,
135                 TokenNameQUESTION = 23,
136                 TokenNameCOLON = 65,
137                 TokenNameCOMMA = 30,
138                 TokenNameDOT = 3,
139                 TokenNameEQUAL = 71,
140                 TokenNameAT = 44,
141                 TokenNameELLIPSIS = 107,
142                 TokenNameEOF = 67,
143                 TokenNameERROR = 108;
144 }