com.sun.mirror.declaration
public enum Modifier extends Enum<Modifier>
Not all modifiers are applicable to all kinds of declarations. When two or more modifiers appear in the source code of a declaration, then it is customary, though not required, that they appear in the same order as the constants listed in the detail section below.
Enum Constant and Description |
---|
ABSTRACT
The modifier abstract
|
FINAL
The modifier final
|
NATIVE
The modifier native
|
PRIVATE
The modifier private
|
PROTECTED
The modifier protected
|
PUBLIC
The modifier public
|
STATIC
The modifier static
|
STRICTFP
The modifier strictfp
|
SYNCHRONIZED
The modifier synchronized
|
TRANSIENT
The modifier transient
|
VOLATILE
The modifier volatile
|
Modifier and Type | Method and Description |
---|---|
String |
toString()
Returns this modifier's name in lowercase.
|
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 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 null Copyright © 2004, 2014, Oracle and/or its affiliates. All rights reserved.