Enum Class ModifierFlag

java.lang.Object
java.lang.Enum<ModifierFlag>
io.quarkus.gizmo2.creator.ModifierFlag
All Implemented Interfaces:
Modifier, Serializable, Comparable<ModifierFlag>, Constable

public enum ModifierFlag extends Enum<ModifierFlag> implements Modifier
A modifier for a type or member.
  • Enum Constant Details

    • ABSTRACT

      public static final ModifierFlag ABSTRACT
      The abstract modifier.
    • BRIDGE

      public static final ModifierFlag BRIDGE
      The "bridge" modifier.
    • FINAL

      public static final ModifierFlag FINAL
      The final modifier.
    • MANDATED

      public static final ModifierFlag MANDATED
      The "mandated" modifier.
    • STATIC

      public static final ModifierFlag STATIC
      The static modifier.
    • SYNCHRONIZED

      public static final ModifierFlag SYNCHRONIZED
      The synchronized modifier.
    • SYNTHETIC

      public static final ModifierFlag SYNTHETIC
      The "synthetic" modifier.
    • TRANSIENT

      public static final ModifierFlag TRANSIENT
      The transient modifier.
    • VARARGS

      public static final ModifierFlag VARARGS
      The variable-argument modifier.
    • VOLATILE

      public static final ModifierFlag VOLATILE
      The volatile modifier.
  • Field Details

    • values

      public static final List<ModifierFlag> values
      The modifier flag list in order by ordinal.
  • Method Details

    • values

      public static ModifierFlag[] 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

      public static ModifierFlag valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • validIn

      public boolean validIn(ModifierLocation location)
      Description copied from interface: Modifier
      Returns true if this modifier is valid in the given location, or false if it is invalid.
      Specified by:
      validIn in interface Modifier
      Returns:
      true if this modifier is valid in the given location, or false if it is invalid
    • mask

      public int mask()
      Description copied from interface: Modifier
      Returns the bitmask of this modifier.
      Specified by:
      mask in interface Modifier
      Returns:
      the bitmask of this modifier
    • forEachExclusive

      public void forEachExclusive(Consumer<ModifierFlag> action)
      Process the given action for each flag which is mutually exclusive with this one.
      Parameters:
      action - the action to process (must not be null)