Package org.openrewrite.java.tree
Enum J.Modifier.Type
- java.lang.Object
-
- java.lang.Enum<J.Modifier.Type>
-
- org.openrewrite.java.tree.J.Modifier.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<J.Modifier.Type>
- Enclosing class:
- J.Modifier
public static enum J.Modifier.Type extends java.lang.Enum<J.Modifier.Type>
These types are sorted in order of their recommended appearance in a list of modifiers, as defined in the JLS.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static J.Modifier.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static J.Modifier.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Default
public static final J.Modifier.Type Default
-
Public
public static final J.Modifier.Type Public
-
Protected
public static final J.Modifier.Type Protected
-
Private
public static final J.Modifier.Type Private
-
Abstract
public static final J.Modifier.Type Abstract
-
Static
public static final J.Modifier.Type Static
-
Final
public static final J.Modifier.Type Final
-
Transient
public static final J.Modifier.Type Transient
-
Volatile
public static final J.Modifier.Type Volatile
-
Synchronized
public static final J.Modifier.Type Synchronized
-
Native
public static final J.Modifier.Type Native
-
Strictfp
public static final J.Modifier.Type Strictfp
-
-
Method Detail
-
values
public static J.Modifier.Type[] 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 (J.Modifier.Type c : J.Modifier.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static J.Modifier.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-