public enum Modifier extends Enum<Modifier>
Enum Constant and Description |
---|
ABSTRACT |
DEFAULT |
FINAL |
NATIVE |
PRIVATE |
PROTECTED |
PUBLIC |
STATIC |
STRICTFP |
SYNCHRONIZED |
TRANSIENT |
TRANSITIVE |
VOLATILE |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
static AccessSpecifier |
getAccessSpecifier(Set<Modifier> modifiers) |
EnumSet<Modifier> |
toEnumSet() |
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 PROTECTED
public static final Modifier PRIVATE
public static final Modifier ABSTRACT
public static final Modifier STATIC
public static final Modifier FINAL
public static final Modifier TRANSIENT
public static final Modifier VOLATILE
public static final Modifier SYNCHRONIZED
public static final Modifier NATIVE
public static final Modifier STRICTFP
public static final Modifier TRANSITIVE
public static final Modifier DEFAULT
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 String asString()
public static AccessSpecifier getAccessSpecifier(Set<Modifier> modifiers)
Copyright © 2007–2018. All rights reserved.