author | lana |
Tue, 29 Jun 2010 22:43:59 -0700 | |
changeset 5857 | 84d4886d48aa |
parent 5738 | c24b113fe4ac |
parent 5848 | c5a4ce47e780 |
child 6591 | a953c8c6b85e |
permissions | -rw-r--r-- |
10 | 1 |
/* |
5520 | 2 |
* Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved. |
10 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
5520 | 7 |
* published by the Free Software Foundation. Oracle designates this |
10 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5520 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
10 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5520 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
10 | 24 |
*/ |
25 |
||
26 |
package com.sun.tools.javac.code; |
|
27 |
||
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
28 |
import java.util.EnumSet; |
10 | 29 |
import java.util.Collections; |
30 |
import java.util.Map; |
|
31 |
import java.util.Set; |
|
32 |
import javax.lang.model.element.Modifier; |
|
33 |
||
34 |
/** Access flags and other modifiers for Java classes and members. |
|
35 |
* |
|
5847
1908176fd6e3
6944312: Potential rebranding issues in openjdk/langtools repository sources
jjg
parents:
5520
diff
changeset
|
36 |
* <p><b>This is NOT part of any supported API. |
1908176fd6e3
6944312: Potential rebranding issues in openjdk/langtools repository sources
jjg
parents:
5520
diff
changeset
|
37 |
* If you write code that depends on this, you do so at your own risk. |
10 | 38 |
* This code and its internal interfaces are subject to change or |
39 |
* deletion without notice.</b> |
|
40 |
*/ |
|
41 |
public class Flags { |
|
42 |
||
43 |
private Flags() {} // uninstantiable |
|
44 |
||
45 |
public static String toString(long flags) { |
|
46 |
StringBuffer buf = new StringBuffer(); |
|
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
47 |
String sep = ""; |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
48 |
for (Flag s : asFlagSet(flags)) { |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
49 |
buf.append(sep); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
50 |
buf.append(s); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
51 |
sep = " "; |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
52 |
} |
10 | 53 |
return buf.toString(); |
54 |
} |
|
55 |
||
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
56 |
public static EnumSet<Flag> asFlagSet(long mask) { |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
57 |
EnumSet<Flag> flags = EnumSet.noneOf(Flag.class); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
58 |
if ((mask&PUBLIC) != 0) flags.add(Flag.PUBLIC); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
59 |
if ((mask&PRIVATE) != 0) flags.add(Flag.PRIVATE); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
60 |
if ((mask&PROTECTED) != 0) flags.add(Flag.PROTECTED); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
61 |
if ((mask&STATIC) != 0) flags.add(Flag.STATIC); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
62 |
if ((mask&FINAL) != 0) flags.add(Flag.FINAL); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
63 |
if ((mask&SYNCHRONIZED) != 0) flags.add(Flag.SYNCHRONIZED); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
64 |
if ((mask&VOLATILE) != 0) flags.add(Flag.VOLATILE); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
65 |
if ((mask&TRANSIENT) != 0) flags.add(Flag.TRANSIENT); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
66 |
if ((mask&NATIVE) != 0) flags.add(Flag.NATIVE); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
67 |
if ((mask&INTERFACE) != 0) flags.add(Flag.INTERFACE); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
68 |
if ((mask&ABSTRACT) != 0) flags.add(Flag.ABSTRACT); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
69 |
if ((mask&STRICTFP) != 0) flags.add(Flag.STRICTFP); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
70 |
if ((mask&BRIDGE) != 0) flags.add(Flag.BRIDGE); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
71 |
if ((mask&SYNTHETIC) != 0) flags.add(Flag.SYNTHETIC); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
72 |
if ((mask&DEPRECATED) != 0) flags.add(Flag.DEPRECATED); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
73 |
if ((mask&HASINIT) != 0) flags.add(Flag.HASINIT); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
74 |
if ((mask&ENUM) != 0) flags.add(Flag.ENUM); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
75 |
if ((mask&IPROXY) != 0) flags.add(Flag.IPROXY); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
76 |
if ((mask&NOOUTERTHIS) != 0) flags.add(Flag.NOOUTERTHIS); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
77 |
if ((mask&EXISTS) != 0) flags.add(Flag.EXISTS); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
78 |
if ((mask&COMPOUND) != 0) flags.add(Flag.COMPOUND); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
79 |
if ((mask&CLASS_SEEN) != 0) flags.add(Flag.CLASS_SEEN); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
80 |
if ((mask&SOURCE_SEEN) != 0) flags.add(Flag.SOURCE_SEEN); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
81 |
if ((mask&LOCKED) != 0) flags.add(Flag.LOCKED); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
82 |
if ((mask&UNATTRIBUTED) != 0) flags.add(Flag.UNATTRIBUTED); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
83 |
if ((mask&ANONCONSTR) != 0) flags.add(Flag.ANONCONSTR); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
84 |
if ((mask&ACYCLIC) != 0) flags.add(Flag.ACYCLIC); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
85 |
if ((mask&PARAMETER) != 0) flags.add(Flag.PARAMETER); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
86 |
if ((mask&VARARGS) != 0) flags.add(Flag.VARARGS); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
87 |
return flags; |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
88 |
} |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
89 |
|
10 | 90 |
/* Standard Java flags. |
91 |
*/ |
|
92 |
public static final int PUBLIC = 1<<0; |
|
93 |
public static final int PRIVATE = 1<<1; |
|
94 |
public static final int PROTECTED = 1<<2; |
|
95 |
public static final int STATIC = 1<<3; |
|
96 |
public static final int FINAL = 1<<4; |
|
97 |
public static final int SYNCHRONIZED = 1<<5; |
|
98 |
public static final int VOLATILE = 1<<6; |
|
99 |
public static final int TRANSIENT = 1<<7; |
|
100 |
public static final int NATIVE = 1<<8; |
|
101 |
public static final int INTERFACE = 1<<9; |
|
102 |
public static final int ABSTRACT = 1<<10; |
|
103 |
public static final int STRICTFP = 1<<11; |
|
104 |
||
105 |
/* Flag that marks a symbol synthetic, added in classfile v49.0. */ |
|
106 |
public static final int SYNTHETIC = 1<<12; |
|
107 |
||
108 |
/** Flag that marks attribute interfaces, added in classfile v49.0. */ |
|
109 |
public static final int ANNOTATION = 1<<13; |
|
110 |
||
111 |
/** An enumeration type or an enumeration constant, added in |
|
112 |
* classfile v49.0. */ |
|
113 |
public static final int ENUM = 1<<14; |
|
114 |
||
115 |
public static final int StandardFlags = 0x0fff; |
|
4870
a132763160d7
6919889: assorted position errors in compiler syntax trees
jjg
parents:
1264
diff
changeset
|
116 |
public static final int ModifierFlags = StandardFlags & ~INTERFACE; |
10 | 117 |
|
118 |
// Because the following access flags are overloaded with other |
|
119 |
// bit positions, we translate them when reading and writing class |
|
120 |
// files into unique bits positions: ACC_SYNTHETIC <-> SYNTHETIC, |
|
121 |
// for example. |
|
122 |
public static final int ACC_SUPER = 0x0020; |
|
123 |
public static final int ACC_BRIDGE = 0x0040; |
|
124 |
public static final int ACC_VARARGS = 0x0080; |
|
125 |
||
126 |
/***************************************** |
|
127 |
* Internal compiler flags (no bits in the lower 16). |
|
128 |
*****************************************/ |
|
129 |
||
130 |
/** Flag is set if symbol is deprecated. |
|
131 |
*/ |
|
132 |
public static final int DEPRECATED = 1<<17; |
|
133 |
||
134 |
/** Flag is set for a variable symbol if the variable's definition |
|
135 |
* has an initializer part. |
|
136 |
*/ |
|
137 |
public static final int HASINIT = 1<<18; |
|
138 |
||
139 |
/** Flag is set for compiler-generated anonymous method symbols |
|
140 |
* that `own' an initializer block. |
|
141 |
*/ |
|
142 |
public static final int BLOCK = 1<<20; |
|
143 |
||
144 |
/** Flag is set for compiler-generated abstract methods that implement |
|
145 |
* an interface method (Miranda methods). |
|
146 |
*/ |
|
147 |
public static final int IPROXY = 1<<21; |
|
148 |
||
149 |
/** Flag is set for nested classes that do not access instance members |
|
150 |
* or `this' of an outer class and therefore don't need to be passed |
|
151 |
* a this$n reference. This flag is currently set only for anonymous |
|
152 |
* classes in superclass constructor calls and only for pre 1.4 targets. |
|
153 |
* todo: use this flag for optimizing away this$n parameters in |
|
154 |
* other cases. |
|
155 |
*/ |
|
156 |
public static final int NOOUTERTHIS = 1<<22; |
|
157 |
||
158 |
/** Flag is set for package symbols if a package has a member or |
|
159 |
* directory and therefore exists. |
|
160 |
*/ |
|
161 |
public static final int EXISTS = 1<<23; |
|
162 |
||
163 |
/** Flag is set for compiler-generated compound classes |
|
164 |
* representing multiple variable bounds |
|
165 |
*/ |
|
166 |
public static final int COMPOUND = 1<<24; |
|
167 |
||
168 |
/** Flag is set for class symbols if a class file was found for this class. |
|
169 |
*/ |
|
170 |
public static final int CLASS_SEEN = 1<<25; |
|
171 |
||
172 |
/** Flag is set for class symbols if a source file was found for this |
|
173 |
* class. |
|
174 |
*/ |
|
175 |
public static final int SOURCE_SEEN = 1<<26; |
|
176 |
||
177 |
/* State flags (are reset during compilation). |
|
178 |
*/ |
|
179 |
||
180 |
/** Flag for class symbols is set and later re-set as a lock in |
|
181 |
* Enter to detect cycles in the superclass/superinterface |
|
182 |
* relations. Similarly for constructor call cycle detection in |
|
183 |
* Attr. |
|
184 |
*/ |
|
185 |
public static final int LOCKED = 1<<27; |
|
186 |
||
187 |
/** Flag for class symbols is set and later re-set to indicate that a class |
|
188 |
* has been entered but has not yet been attributed. |
|
189 |
*/ |
|
190 |
public static final int UNATTRIBUTED = 1<<28; |
|
191 |
||
192 |
/** Flag for synthesized default constructors of anonymous classes. |
|
193 |
*/ |
|
194 |
public static final int ANONCONSTR = 1<<29; |
|
195 |
||
196 |
/** Flag for class symbols to indicate it has been checked and found |
|
197 |
* acyclic. |
|
198 |
*/ |
|
199 |
public static final int ACYCLIC = 1<<30; |
|
200 |
||
201 |
/** Flag that marks bridge methods. |
|
202 |
*/ |
|
203 |
public static final long BRIDGE = 1L<<31; |
|
204 |
||
205 |
/** Flag that marks formal parameters. |
|
206 |
*/ |
|
207 |
public static final long PARAMETER = 1L<<33; |
|
208 |
||
209 |
/** Flag that marks varargs methods. |
|
210 |
*/ |
|
211 |
public static final long VARARGS = 1L<<34; |
|
212 |
||
213 |
/** Flag for annotation type symbols to indicate it has been |
|
214 |
* checked and found acyclic. |
|
215 |
*/ |
|
216 |
public static final long ACYCLIC_ANN = 1L<<35; |
|
217 |
||
218 |
/** Flag that marks a generated default constructor. |
|
219 |
*/ |
|
220 |
public static final long GENERATEDCONSTR = 1L<<36; |
|
221 |
||
222 |
/** Flag that marks a hypothetical method that need not really be |
|
223 |
* generated in the binary, but is present in the symbol table to |
|
224 |
* simplify checking for erasure clashes. |
|
225 |
*/ |
|
226 |
public static final long HYPOTHETICAL = 1L<<37; |
|
227 |
||
228 |
/** |
|
5848
c5a4ce47e780
6960407: Potential rebranding issues in openjdk/langtools repository sources
jjg
parents:
5847
diff
changeset
|
229 |
* Flag that marks an internal proprietary class. |
10 | 230 |
*/ |
231 |
public static final long PROPRIETARY = 1L<<38; |
|
232 |
||
5492
515e4b33b335
6943289: Project Coin: Improved Exception Handling for Java (aka 'multicatch')
mcimadamore
parents:
4870
diff
changeset
|
233 |
/** |
515e4b33b335
6943289: Project Coin: Improved Exception Handling for Java (aka 'multicatch')
mcimadamore
parents:
4870
diff
changeset
|
234 |
* Flag that marks a disjoint var in a multi-catch clause |
515e4b33b335
6943289: Project Coin: Improved Exception Handling for Java (aka 'multicatch')
mcimadamore
parents:
4870
diff
changeset
|
235 |
*/ |
515e4b33b335
6943289: Project Coin: Improved Exception Handling for Java (aka 'multicatch')
mcimadamore
parents:
4870
diff
changeset
|
236 |
public static final long DISJOINT = 1L<<39; |
515e4b33b335
6943289: Project Coin: Improved Exception Handling for Java (aka 'multicatch')
mcimadamore
parents:
4870
diff
changeset
|
237 |
|
5738 | 238 |
/** |
5736
ee0850472ca1
6939134: JSR 292 adjustments to method handle invocation
jrose
parents:
4870
diff
changeset
|
239 |
* Flag that marks a signature-polymorphic invoke method. |
ee0850472ca1
6939134: JSR 292 adjustments to method handle invocation
jrose
parents:
4870
diff
changeset
|
240 |
* (These occur inside java.dyn.MethodHandle.) |
ee0850472ca1
6939134: JSR 292 adjustments to method handle invocation
jrose
parents:
4870
diff
changeset
|
241 |
*/ |
5738 | 242 |
public static final long POLYMORPHIC_SIGNATURE = 1L<<40; |
5736
ee0850472ca1
6939134: JSR 292 adjustments to method handle invocation
jrose
parents:
4870
diff
changeset
|
243 |
|
10 | 244 |
/** Modifier masks. |
245 |
*/ |
|
246 |
public static final int |
|
247 |
AccessFlags = PUBLIC | PROTECTED | PRIVATE, |
|
248 |
LocalClassFlags = FINAL | ABSTRACT | STRICTFP | ENUM | SYNTHETIC, |
|
249 |
MemberClassFlags = LocalClassFlags | INTERFACE | AccessFlags, |
|
250 |
ClassFlags = LocalClassFlags | INTERFACE | PUBLIC | ANNOTATION, |
|
251 |
InterfaceVarFlags = FINAL | STATIC | PUBLIC, |
|
252 |
VarFlags = AccessFlags | FINAL | STATIC | |
|
253 |
VOLATILE | TRANSIENT | ENUM, |
|
254 |
ConstructorFlags = AccessFlags, |
|
255 |
InterfaceMethodFlags = ABSTRACT | PUBLIC, |
|
256 |
MethodFlags = AccessFlags | ABSTRACT | STATIC | NATIVE | |
|
257 |
SYNCHRONIZED | FINAL | STRICTFP; |
|
258 |
public static final long |
|
259 |
LocalVarFlags = FINAL | PARAMETER; |
|
260 |
||
261 |
public static Set<Modifier> asModifierSet(long flags) { |
|
262 |
Set<Modifier> modifiers = modifierSets.get(flags); |
|
263 |
if (modifiers == null) { |
|
264 |
modifiers = java.util.EnumSet.noneOf(Modifier.class); |
|
265 |
if (0 != (flags & PUBLIC)) modifiers.add(Modifier.PUBLIC); |
|
266 |
if (0 != (flags & PROTECTED)) modifiers.add(Modifier.PROTECTED); |
|
267 |
if (0 != (flags & PRIVATE)) modifiers.add(Modifier.PRIVATE); |
|
268 |
if (0 != (flags & ABSTRACT)) modifiers.add(Modifier.ABSTRACT); |
|
269 |
if (0 != (flags & STATIC)) modifiers.add(Modifier.STATIC); |
|
270 |
if (0 != (flags & FINAL)) modifiers.add(Modifier.FINAL); |
|
271 |
if (0 != (flags & TRANSIENT)) modifiers.add(Modifier.TRANSIENT); |
|
272 |
if (0 != (flags & VOLATILE)) modifiers.add(Modifier.VOLATILE); |
|
273 |
if (0 != (flags & SYNCHRONIZED)) |
|
274 |
modifiers.add(Modifier.SYNCHRONIZED); |
|
275 |
if (0 != (flags & NATIVE)) modifiers.add(Modifier.NATIVE); |
|
276 |
if (0 != (flags & STRICTFP)) modifiers.add(Modifier.STRICTFP); |
|
277 |
modifiers = Collections.unmodifiableSet(modifiers); |
|
278 |
modifierSets.put(flags, modifiers); |
|
279 |
} |
|
280 |
return modifiers; |
|
281 |
} |
|
282 |
||
283 |
// Cache of modifier sets. |
|
284 |
private static Map<Long, Set<Modifier>> modifierSets = |
|
285 |
new java.util.concurrent.ConcurrentHashMap<Long, Set<Modifier>>(64); |
|
286 |
||
287 |
public static boolean isStatic(Symbol symbol) { |
|
288 |
return (symbol.flags() & STATIC) != 0; |
|
289 |
} |
|
290 |
||
291 |
public static boolean isEnum(Symbol symbol) { |
|
292 |
return (symbol.flags() & ENUM) != 0; |
|
293 |
} |
|
294 |
||
295 |
public static boolean isConstant(Symbol.VarSymbol symbol) { |
|
296 |
return symbol.getConstValue() != null; |
|
297 |
} |
|
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
298 |
|
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
299 |
public enum Flag { |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
300 |
|
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
301 |
PUBLIC("public"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
302 |
PRIVATE("private"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
303 |
PROTECTED("protected"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
304 |
STATIC("static"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
305 |
FINAL("final"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
306 |
SYNCHRONIZED("synchronized"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
307 |
VOLATILE("volatile"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
308 |
TRANSIENT("transient"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
309 |
NATIVE("native"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
310 |
INTERFACE("interface"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
311 |
ABSTRACT("abstract"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
312 |
STRICTFP("strictfp"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
313 |
BRIDGE("bridge"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
314 |
SYNTHETIC("synthetic"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
315 |
DEPRECATED("deprecated"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
316 |
HASINIT("hasinit"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
317 |
ENUM("enum"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
318 |
IPROXY("iproxy"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
319 |
NOOUTERTHIS("noouterthis"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
320 |
EXISTS("exists"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
321 |
COMPOUND("compound"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
322 |
CLASS_SEEN("class_seen"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
323 |
SOURCE_SEEN("source_seen"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
324 |
LOCKED("locked"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
325 |
UNATTRIBUTED("unattributed"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
326 |
ANONCONSTR("anonconstr"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
327 |
ACYCLIC("acyclic"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
328 |
PARAMETER("parameter"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
329 |
VARARGS("varargs"), |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
330 |
PACKAGE("package"); |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
331 |
|
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
332 |
String name; |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
333 |
|
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
334 |
Flag(String name) { |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
335 |
this.name = name; |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
336 |
} |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
337 |
|
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
338 |
public String toString() { |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
339 |
return name; |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
340 |
} |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
341 |
} |
10 | 342 |
} |