Enum Class AccessLevel

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

public enum AccessLevel extends Enum<AccessLevel> implements Modifier
The possible access levels for an item.
  • Enum Constant Details

    • PRIVATE

      public static final AccessLevel PRIVATE
      The private access level.
    • PACKAGE_PRIVATE

      public static final AccessLevel PACKAGE_PRIVATE
      The package-private ("default") access level.
    • PROTECTED

      public static final AccessLevel PROTECTED
      The protected access level.
    • PUBLIC

      public static final AccessLevel PUBLIC
      The public access level.
  • Field Details

    • values

      public static final List<AccessLevel> values
      The list of access values.
  • Method Details

    • values

      public static AccessLevel[] 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 AccessLevel 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
    • of

      public static AccessLevel of(int bits)
      Returns the access level indicated by the given bit mask. If multiple access bits are present, then the access level with the highest bit value is returned.
      Parameters:
      bits - the bit mask
      Returns:
      the access level indicated by the given bit mask
    • fullMask

      public static int fullMask()
      Returns the full bitmask for all access levels.
      Returns:
      the full bitmask for all access levels