public enum AccessLevel extends Enum<AccessLevel>
Enum Constant and Description |
---|
PACKAGE
"" . |
PRIVATE
private . |
PROTECTED
protected . |
PUBLIC
public . |
Modifier and Type | Method and Description |
---|---|
static AccessLevel |
defaultValue()
Get the
AccessLevel value that should be used as a default. |
int |
merge(int mod)
Overlay this
AccessLevel onto a Java modifier value. |
static AccessLevel |
of(int mod)
Get the
AccessLevel specified by a Java modifier. |
static AccessLevel |
parse(String str)
Parse from a
String returning defaultValue() for blank/null input. |
String |
toString()
Render this
AccessLevel as a String . |
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
.public static final AccessLevel PROTECTED
protected
.public static final AccessLevel PACKAGE
""
.public static final AccessLevel PRIVATE
private
.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 nullpublic static AccessLevel of(int mod)
AccessLevel
specified by a Java modifier.mod
- from which to extractAccessLevel
IllegalArgumentException
- if multiple access modifiers specifiedpublic int merge(int mod)
AccessLevel
onto a Java modifier value.mod
- inputmod
, with this AccessLevel
public String toString()
AccessLevel
as a String
.toString
in class Enum<AccessLevel>
String
public static AccessLevel defaultValue()
AccessLevel
value that should be used as a default.
This is not "default"/package
access, but rather the default
value that should be used for privilizer weaving.PRIVATE
public static AccessLevel parse(String str)
String
returning defaultValue()
for blank/null input.str
- to parseAccessLevel
Copyright © 2014 The Apache Software Foundation. All rights reserved.