Enum JavaModifier
- java.lang.Object
-
- java.lang.Enum<JavaModifier>
-
- com.g2forge.alexandria.java.reflect.JavaModifier
-
- All Implemented Interfaces:
Serializable
,Comparable<JavaModifier>
public enum JavaModifier extends Enum<JavaModifier>
-
-
Field Summary
Fields Modifier and Type Field Description protected int
modifier
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<JavaModifier>
of(Member member)
static JavaModifier
valueOf(String name)
Returns the enum constant of this type with the specified name.static JavaModifier[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Public
public static final JavaModifier Public
-
Private
public static final JavaModifier Private
-
Protected
public static final JavaModifier Protected
-
Static
public static final JavaModifier Static
-
Final
public static final JavaModifier Final
-
Synchronized
public static final JavaModifier Synchronized
-
Volatile
public static final JavaModifier Volatile
-
Transient
public static final JavaModifier Transient
-
Native
public static final JavaModifier Native
-
Interface
public static final JavaModifier Interface
-
Abstract
public static final JavaModifier Abstract
-
Strict
public static final JavaModifier Strict
-
-
Method Detail
-
values
public static JavaModifier[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JavaModifier c : JavaModifier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JavaModifier valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
of
public static Set<JavaModifier> of(Member member)
-
-