public enum Modifier extends Enum<Modifier>
Enum Constant and Description |
---|
ABSTRACT
A modifier indicating that the method is abstract.
|
CONSTRUCTOR
A modifier indicating that the function is a record constructor.
|
DEPRECATED
A modifier indicating that the function is deprecated.
|
EXTENSION_METHOD
A modifier indicating that the function is an extension method.
|
METHOD
A modifier indicating that the function is a class method.
|
SIDE_EFFECT
A modifier indicating that the function has side effects.
|
STATIC
Static modifier.
|
Modifier and Type | Method and Description |
---|---|
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 STATIC
public static final Modifier METHOD
public static final Modifier CONSTRUCTOR
public static final Modifier ABSTRACT
public static final Modifier DEPRECATED
public static final Modifier SIDE_EFFECT
public static final Modifier EXTENSION_METHOD
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 nullCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.