- All Implemented Interfaces:
Serializable,Comparable<ModifierLocation>,Constable
The possible locations where a modifier flag or an access level may be specified.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn anonymous class.A top-level class.An abstract instance method of a class.A constructor of a class.An instance field of a class.A non-native instance method of a class.A native method of a class.A static field of a class.A non-native static method of a class.A top-level interface.A regular (abstract) interface instance method.A public (default) interface instance method.A private interface instance method.A static field on an interface.A static method on an interface.A local variable.A parameter of a method or constructor. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintReturns the default initial modifier bits for this location.booleanrequires(ModifierFlag flag) Returnstrueif the given flag must always be set for this element, orfalseif it may be cleared.booleansupports(AccessLevel level) booleanbooleansupports(ModifierFlag flag) Returnstrueif the given flag may be set for this element, orfalseif it must always be clear.static ModifierLocationReturns the enum constant of this class with the specified name.static ModifierLocation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INTERFACE_DEFAULT_METHOD
A public (default) interface instance method. -
INTERFACE_PRIVATE_INSTANCE_METHOD
A private interface instance method. -
INTERFACE_ABSTRACT_METHOD
A regular (abstract) interface instance method. -
INTERFACE_STATIC_FIELD
A static field on an interface. -
INTERFACE_STATIC_METHOD
A static method on an interface. -
CLASS_CONSTRUCTOR
A constructor of a class. -
CLASS_INSTANCE_METHOD
A non-native instance method of a class. -
CLASS_ABSTRACT_METHOD
An abstract instance method of a class. -
CLASS_NATIVE_METHOD
A native method of a class. -
CLASS_STATIC_METHOD
A non-native static method of a class. -
CLASS_INSTANCE_FIELD
An instance field of a class. -
CLASS_STATIC_FIELD
A static field of a class. -
CLASS
A top-level class. -
INTERFACE
A top-level interface. -
ANONYMOUS_CLASS
An anonymous class. -
PARAMETER
A parameter of a method or constructor. -
LOCAL_VARIABLE
A local variable.
-
-
Field Details
-
values
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
supports
-
supports
-
supports
Returnstrueif the given flag may be set for this element, orfalseif it must always be clear.- Returns:
trueif the given flag may be set for this element, orfalseif it must always be clear
-
requires
Returnstrueif the given flag must always be set for this element, orfalseif it may be cleared.- Returns:
trueif the given flag must always be set for this element, orfalseif it may be cleared
-
defaultModifierBits
public int defaultModifierBits()Returns the default initial modifier bits for this location.- Returns:
- the default initial modifier bits for this location
-