public enum Modifier extends Enum<Modifier>
Enum Constant and Description |
---|
ABSTRACT |
FINAL |
INTERFACE |
NATIVE |
PRIVATE |
PROTECTED |
PUBLIC |
STATIC |
STRICT |
SYNCHRONIZED |
TRANSIENT |
VOLATILE |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
existsOn(Class<?> modifiable) |
abstract boolean |
existsOn(Member modifiable) |
static Modifier |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Modifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Modifier PUBLIC
public static final Modifier PRIVATE
public static final Modifier PROTECTED
public static final Modifier STATIC
public static final Modifier FINAL
public static final Modifier SYNCHRONIZED
public static final Modifier VOLATILE
public static final Modifier TRANSIENT
public static final Modifier NATIVE
public static final Modifier INTERFACE
public static final Modifier ABSTRACT
public static final Modifier STRICT
public static Modifier[] values()
for (Modifier c : Modifier.values()) System.out.println(c);
public static Modifier 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 abstract boolean existsOn(Member modifiable)
modifiable
- - the member that may have this modifierpublic abstract boolean existsOn(Class<?> modifiable)
modifiable
- - the class that may have this modifierCopyright © 2006-2013. All Rights Reserved.