public enum VisibilityModifier extends Enum<VisibilityModifier>
Enum Constant and Description |
---|
FRIENDLY
The modifier for "friendly" visibility.
|
PRIVATE
The modifier for
private visibility. |
PROTECTED
The modifier for
protected visibility. |
PUBLIC
The modifier for
public visibility. |
Modifier and Type | Field and Description |
---|---|
private int |
bits |
Modifier and Type | Method and Description |
---|---|
int |
getBits()
This method gets the
bit-mask of this visibility-modifier. |
int |
getOrder()
This method gets a non-negative integer value that follows the strict order of the visibility.
|
static VisibilityModifier |
valueOf(int modifiers)
This method gets the
VisibilityModifier for the given modifiers . |
static VisibilityModifier |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VisibilityModifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VisibilityModifier PRIVATE
private
visibility.Modifier.PRIVATE
public static final VisibilityModifier FRIENDLY
public static final VisibilityModifier PROTECTED
protected
visibility.Modifier.PROTECTED
public static final VisibilityModifier PUBLIC
public
visibility.Modifier.PUBLIC
public static VisibilityModifier[] values()
for (VisibilityModifier c : VisibilityModifier.values()) System.out.println(c);
public static VisibilityModifier 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 int getBits()
bit-mask
of this visibility-modifier.public int getOrder()
PRIVATE
.getOrder()
<FRIENDLY
.getOrder()
<PROTECTED
.getOrder()
<PUBLIC
.getOrder()
public static VisibilityModifier valueOf(int modifiers)
VisibilityModifier
for the given modifiers
.modifiers
- are the modifiers of a java element.Class.getModifiers()
,
Method.getModifiers()
,
Field.getModifiers()
Copyright © 2001–2016 mmm-Team. All rights reserved.