src/share/classes/com/sun/tools/javac/code/Flags.java

changeset 2016
f4efd6ef6e80
parent 2000
4a6acc42c3a1
child 2040
2375ce96e80d
equal deleted inserted replaced
2015:a4b9a8859e58 2016:f4efd6ef6e80
95 95
96 /** Added in SE8, represents constructs implicitly declared in source. */ 96 /** Added in SE8, represents constructs implicitly declared in source. */
97 public static final int MANDATED = 1<<15; 97 public static final int MANDATED = 1<<15;
98 98
99 public static final int StandardFlags = 0x0fff; 99 public static final int StandardFlags = 0x0fff;
100 public static final int ModifierFlags = StandardFlags & ~INTERFACE;
101 100
102 // Because the following access flags are overloaded with other 101 // Because the following access flags are overloaded with other
103 // bit positions, we translate them when reading and writing class 102 // bit positions, we translate them when reading and writing class
104 // files into unique bits positions: ACC_SYNTHETIC <-> SYNTHETIC, 103 // files into unique bits positions: ACC_SYNTHETIC <-> SYNTHETIC,
105 // for example. 104 // for example.
285 InterfaceMethodFlags = ABSTRACT | PUBLIC, 284 InterfaceMethodFlags = ABSTRACT | PUBLIC,
286 MethodFlags = AccessFlags | ABSTRACT | STATIC | NATIVE | 285 MethodFlags = AccessFlags | ABSTRACT | STATIC | NATIVE |
287 SYNCHRONIZED | FINAL | STRICTFP; 286 SYNCHRONIZED | FINAL | STRICTFP;
288 public static final long 287 public static final long
289 ExtendedStandardFlags = (long)StandardFlags | DEFAULT, 288 ExtendedStandardFlags = (long)StandardFlags | DEFAULT,
289 ModifierFlags = ((long)StandardFlags & ~INTERFACE) | DEFAULT,
290 InterfaceMethodMask = ABSTRACT | STATIC | PUBLIC | STRICTFP | DEFAULT, 290 InterfaceMethodMask = ABSTRACT | STATIC | PUBLIC | STRICTFP | DEFAULT,
291 AnnotationTypeElementMask = FINAL | ABSTRACT | PUBLIC | STRICTFP,
291 LocalVarFlags = FINAL | PARAMETER; 292 LocalVarFlags = FINAL | PARAMETER;
292 293
293 294
294 public static Set<Modifier> asModifierSet(long flags) { 295 public static Set<Modifier> asModifierSet(long flags) {
295 Set<Modifier> modifiers = modifierSets.get(flags); 296 Set<Modifier> modifiers = modifierSets.get(flags);

mercurial