- All Implemented Interfaces:
Modifier,Serializable,Comparable<ModifierFlag>,Constable
A modifier for a type or member.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTheabstractmodifier.The "bridge" modifier.Thefinalmodifier.The "mandated" modifier.Thestaticmodifier.Thesynchronizedmodifier.The "synthetic" modifier.Thetransientmodifier.The variable-argument modifier.Thevolatilemodifier. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<ModifierFlag>The modifier flag list in order by ordinal. -
Method Summary
Modifier and TypeMethodDescriptionvoidforEachExclusive(Consumer<ModifierFlag> action) Process the given action for each flag which is mutually exclusive with this one.intmask()Returns the bitmask of this modifier.booleanvalidIn(ModifierLocation location) Returnstrueif this modifier is valid in the given location, orfalseif it is invalid.static ModifierFlagReturns the enum constant of this class with the specified name.static ModifierFlag[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ABSTRACT
Theabstractmodifier. -
BRIDGE
The "bridge" modifier. -
FINAL
Thefinalmodifier. -
MANDATED
The "mandated" modifier. -
STATIC
Thestaticmodifier. -
SYNCHRONIZED
Thesynchronizedmodifier. -
SYNTHETIC
The "synthetic" modifier. -
TRANSIENT
Thetransientmodifier. -
VARARGS
The variable-argument modifier. -
VOLATILE
Thevolatilemodifier.
-
-
Field Details
-
values
The modifier flag list in order by ordinal.
-
-
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
-
validIn
Description copied from interface:ModifierReturnstrueif this modifier is valid in the given location, orfalseif it is invalid. -
mask
public int mask()Description copied from interface:ModifierReturns the bitmask of this modifier. -
forEachExclusive
Process the given action for each flag which is mutually exclusive with this one.- Parameters:
action- the action to process (must not benull)
-