Enum AccessLevel
- All Implemented Interfaces:
Serializable
,Comparable<AccessLevel>
,java.lang.constant.Constable
Represents an AccessLevel. Used e.g. to specify the access level for generated methods and fields.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.This value was created at a time when a module-level access keyword was planned as a way of being prepared for the future.Represents not generating anything or the complete lack of a method.Represents the default access level: package private.Represents theprivate
access level.Represents theprotected
access level (any code in the same package as well as any subtype).Represents thepublic
access level. -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessLevel
Returns the enum constant of this type with the specified name.static AccessLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PUBLIC
Represents thepublic
access level. -
MODULE
Deprecated.This value was created at a time when a module-level access keyword was planned as a way of being prepared for the future. But that's not the direction java went in; a 'module access level' is not likely to ever exist. This enum acts likePACKAGE
in every way.Acts exactly likePACKAGE
- the package private access level. -
PROTECTED
Represents theprotected
access level (any code in the same package as well as any subtype). -
PACKAGE
Represents the default access level: package private. (any code in the same package). -
PRIVATE
Represents theprivate
access level. -
NONE
Represents not generating anything or the complete lack of a method.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-