|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Modifier> javax.lang.model.element.Modifier
public enum Modifier
Represents a modifier on a program element such as a class, method, or field.
Not all modifiers are applicable to all kinds of elements. When two or more modifiers appear in the source code of an element then it is customary, though not required, that they appear in the same order as the constants listed in the detail section below.
Note that it is possible additional modifiers will be added in future versions of the platform.
Enum Constant Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Modifier PUBLIC
public
public static final Modifier PROTECTED
protected
public static final Modifier PRIVATE
private
public static final Modifier ABSTRACT
abstract
public static final Modifier STATIC
static
public static final Modifier FINAL
final
public static final Modifier TRANSIENT
transient
public static final Modifier VOLATILE
volatile
public static final Modifier SYNCHRONIZED
synchronized
public static final Modifier NATIVE
native
public static final Modifier STRICTFP
strictfp
Method Detail |
---|
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 name
NullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<Modifier>
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.