Enum Class ModifierLocation

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

public enum ModifierLocation extends Enum<ModifierLocation>
The possible locations where a modifier flag or an access level may be specified.
  • Enum Constant Details

    • INTERFACE_DEFAULT_METHOD

      public static final ModifierLocation INTERFACE_DEFAULT_METHOD
      A public (default) interface instance method.
    • INTERFACE_PRIVATE_INSTANCE_METHOD

      public static final ModifierLocation INTERFACE_PRIVATE_INSTANCE_METHOD
      A private interface instance method.
    • INTERFACE_ABSTRACT_METHOD

      public static final ModifierLocation INTERFACE_ABSTRACT_METHOD
      A regular (abstract) interface instance method.
    • INTERFACE_STATIC_FIELD

      public static final ModifierLocation INTERFACE_STATIC_FIELD
      A static field on an interface.
    • INTERFACE_STATIC_METHOD

      public static final ModifierLocation INTERFACE_STATIC_METHOD
      A static method on an interface.
    • CLASS_CONSTRUCTOR

      public static final ModifierLocation CLASS_CONSTRUCTOR
      A constructor of a class.
    • CLASS_INSTANCE_METHOD

      public static final ModifierLocation CLASS_INSTANCE_METHOD
      A non-native instance method of a class.
    • CLASS_ABSTRACT_METHOD

      public static final ModifierLocation CLASS_ABSTRACT_METHOD
      An abstract instance method of a class.
    • CLASS_NATIVE_METHOD

      public static final ModifierLocation CLASS_NATIVE_METHOD
      A native method of a class.
    • CLASS_STATIC_METHOD

      public static final ModifierLocation CLASS_STATIC_METHOD
      A non-native static method of a class.
    • CLASS_INSTANCE_FIELD

      public static final ModifierLocation CLASS_INSTANCE_FIELD
      An instance field of a class.
    • CLASS_STATIC_FIELD

      public static final ModifierLocation CLASS_STATIC_FIELD
      A static field of a class.
    • CLASS

      public static final ModifierLocation CLASS
      A top-level class.
    • INTERFACE

      public static final ModifierLocation INTERFACE
      A top-level interface.
    • ANONYMOUS_CLASS

      public static final ModifierLocation ANONYMOUS_CLASS
      An anonymous class.
    • PARAMETER

      public static final ModifierLocation PARAMETER
      A parameter of a method or constructor.
    • LOCAL_VARIABLE

      public static final ModifierLocation LOCAL_VARIABLE
      A local variable.
  • Field Details

  • Method Details

    • values

      public static ModifierLocation[] 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 ModifierLocation 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
    • supports

      public boolean supports(Modifier m)
    • supports

      public boolean supports(AccessLevel level)
    • supports

      public boolean supports(ModifierFlag flag)
      Returns true if the given flag may be set for this element, or false if it must always be clear.
      Returns:
      true if the given flag may be set for this element, or false if it must always be clear
    • requires

      public boolean requires(ModifierFlag flag)
      Returns true if the given flag must always be set for this element, or false if it may be cleared.
      Returns:
      true if the given flag must always be set for this element, or false if 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