391 */
392 private static final int METHOD_MODIFIERS =
393 Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE |
394 Modifier.ABSTRACT | Modifier.STATIC | Modifier.FINAL |
395 Modifier.SYNCHRONIZED | Modifier.NATIVE | Modifier.STRICT;
396
397 /**
398 * The Java source modifiers that can be applied to a field.
399 * @jls 8.3.1 Field Modifiers
400 */
401 private static final int FIELD_MODIFIERS =
402 Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE |
403 Modifier.STATIC | Modifier.FINAL | Modifier.TRANSIENT |
404 Modifier.VOLATILE;
405
406 /**
407 * The Java source modifiers that can be applied to a method or constructor parameter.
408 * @jls 8.4.1 Formal Parameters
409 */
410 private static final int PARAMETER_MODIFIERS =
411 Modifier.FINAL;
412
413 /**
414 *
415 */
416 static final int ACCESS_MODIFIERS =
417 Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE;
418
419 /**
420 * Return an {@code int} value OR-ing together the source language
421 * modifiers that can be applied to a class.
422 * @return an {@code int} value OR-ing together the source language
423 * modifiers that can be applied to a class.
424 *
425 * @jls 8.1.1 Class Modifiers
426 * @since 1.7
427 */
428 public static int classModifiers() {
429 return CLASS_MODIFIERS;
430 }
431
|
391 */
392 private static final int METHOD_MODIFIERS =
393 Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE |
394 Modifier.ABSTRACT | Modifier.STATIC | Modifier.FINAL |
395 Modifier.SYNCHRONIZED | Modifier.NATIVE | Modifier.STRICT;
396
397 /**
398 * The Java source modifiers that can be applied to a field.
399 * @jls 8.3.1 Field Modifiers
400 */
401 private static final int FIELD_MODIFIERS =
402 Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE |
403 Modifier.STATIC | Modifier.FINAL | Modifier.TRANSIENT |
404 Modifier.VOLATILE;
405
406 /**
407 * The Java source modifiers that can be applied to a method or constructor parameter.
408 * @jls 8.4.1 Formal Parameters
409 */
410 private static final int PARAMETER_MODIFIERS =
411 Modifier.FINAL | Modifier.SYNTHETIC | Modifier.MANDATED;
412
413 /**
414 *
415 */
416 static final int ACCESS_MODIFIERS =
417 Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE;
418
419 /**
420 * Return an {@code int} value OR-ing together the source language
421 * modifiers that can be applied to a class.
422 * @return an {@code int} value OR-ing together the source language
423 * modifiers that can be applied to a class.
424 *
425 * @jls 8.1.1 Class Modifiers
426 * @since 1.7
427 */
428 public static int classModifiers() {
429 return CLASS_MODIFIERS;
430 }
431
|