public enum AccessLevel extends Enum<AccessLevel>
Enum Constant and Description |
---|
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 like
PACKAGE in every way. |
NONE
Represents not generating anything or the complete lack of a method.
|
PACKAGE
Represents the default access level: package private.
|
PRIVATE
Represents the
private access level. |
PROTECTED
Represents the
protected access level (any code in the same package as well as any subtype). |
PUBLIC
Represents the
public access level. |
Modifier and Type | Method and Description |
---|---|
static AccessLevel |
valueOf(String name)
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.
|
public static final AccessLevel PUBLIC
public
access level.@Deprecated public static final AccessLevel MODULE
PACKAGE
in every way.PACKAGE
- the package private access level.public static final AccessLevel PROTECTED
protected
access level (any code in the same package as well as any subtype).public static final AccessLevel PACKAGE
public static final AccessLevel PRIVATE
private
access level.public static final AccessLevel NONE
public static AccessLevel[] values()
for (AccessLevel c : AccessLevel.values()) System.out.println(c);
public static AccessLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2025. All rights reserved.