equal
deleted
inserted
replaced
284 public static final long MODULE = 1L<<51; |
284 public static final long MODULE = 1L<<51; |
285 |
285 |
286 /** |
286 /** |
287 * Flag to indicate the given ModuleSymbol is an automatic module. |
287 * Flag to indicate the given ModuleSymbol is an automatic module. |
288 */ |
288 */ |
289 public static final long AUTOMATIC_MODULE = 1L<<52; |
289 public static final long AUTOMATIC_MODULE = 1L<<52; //ModuleSymbols only |
|
290 |
|
291 /** |
|
292 * Flag to indicate the given PackageSymbol contains any non-.java and non-.class resources. |
|
293 */ |
|
294 public static final long HAS_RESOURCE = 1L<<52; //PackageSymbols only |
|
295 |
|
296 /** |
|
297 * Flag to indicate the given ParamSymbol has a user-friendly name filled. |
|
298 */ |
|
299 public static final long NAME_FILLED = 1L<<52; //ParamSymbols only |
290 |
300 |
291 /** |
301 /** |
292 * Flag to indicate the given ModuleSymbol is a system module. |
302 * Flag to indicate the given ModuleSymbol is a system module. |
293 */ |
303 */ |
294 public static final long SYSTEM_MODULE = 1L<<53; |
304 public static final long SYSTEM_MODULE = 1L<<53; |
302 * Flag to indicate the given symbol has been deprecated and marked for removal. |
312 * Flag to indicate the given symbol has been deprecated and marked for removal. |
303 */ |
313 */ |
304 public static final long DEPRECATED_REMOVAL = 1L<<55; |
314 public static final long DEPRECATED_REMOVAL = 1L<<55; |
305 |
315 |
306 /** |
316 /** |
307 * Flag to indicate the given PackageSymbol contains any non-.java and non-.class resources. |
317 * Flag to indicate the API element in question is for a preview API. |
308 */ |
318 */ |
309 public static final long HAS_RESOURCE = 1L<<56; |
319 public static final long PREVIEW_API = 1L<<56; //any Symbol kind |
310 |
320 |
311 /** |
321 /** |
312 * Flag for synthesized default constructors of anonymous classes that have an enclosing expression. |
322 * Flag for synthesized default constructors of anonymous classes that have an enclosing expression. |
313 */ |
323 */ |
314 public static final long ANONCONSTR_BASED = 1L<<57; |
324 public static final long ANONCONSTR_BASED = 1L<<57; |
318 * Used to implement try-with-resources. |
328 * Used to implement try-with-resources. |
319 */ |
329 */ |
320 public static final long BODY_ONLY_FINALIZE = 1L<<17; //blocks only |
330 public static final long BODY_ONLY_FINALIZE = 1L<<17; //blocks only |
321 |
331 |
322 /** |
332 /** |
323 * Flag to indicate the given ParamSymbol has a user-friendly name filled. |
333 * Flag to indicate the API element in question is for a preview API. |
324 */ |
334 */ |
325 public static final long NAME_FILLED = 1L<<58; //ParamSymbols only |
335 public static final long PREVIEW_ESSENTIAL_API = 1L<<58; //any Symbol kind |
326 |
336 |
327 /** Modifier masks. |
337 /** Modifier masks. |
328 */ |
338 */ |
329 public static final int |
339 public static final int |
330 AccessFlags = PUBLIC | PROTECTED | PRIVATE, |
340 AccessFlags = PUBLIC | PROTECTED | PRIVATE, |
439 DEPRECATED_ANNOTATION(Flags.DEPRECATED_ANNOTATION), |
449 DEPRECATED_ANNOTATION(Flags.DEPRECATED_ANNOTATION), |
440 DEPRECATED_REMOVAL(Flags.DEPRECATED_REMOVAL), |
450 DEPRECATED_REMOVAL(Flags.DEPRECATED_REMOVAL), |
441 HAS_RESOURCE(Flags.HAS_RESOURCE), |
451 HAS_RESOURCE(Flags.HAS_RESOURCE), |
442 POTENTIALLY_AMBIGUOUS(Flags.POTENTIALLY_AMBIGUOUS), |
452 POTENTIALLY_AMBIGUOUS(Flags.POTENTIALLY_AMBIGUOUS), |
443 ANONCONSTR_BASED(Flags.ANONCONSTR_BASED), |
453 ANONCONSTR_BASED(Flags.ANONCONSTR_BASED), |
444 NAME_FILLED(Flags.NAME_FILLED); |
454 NAME_FILLED(Flags.NAME_FILLED), |
|
455 PREVIEW_API(Flags.PREVIEW_API), |
|
456 PREVIEW_ESSENTIAL_API(Flags.PREVIEW_ESSENTIAL_API); |
445 |
457 |
446 Flag(long flag) { |
458 Flag(long flag) { |
447 this.value = flag; |
459 this.value = flag; |
448 this.lowercaseName = StringUtils.toLowerCase(name()); |
460 this.lowercaseName = StringUtils.toLowerCase(name()); |
449 } |
461 } |