Package org.openrewrite.java.tree
Enum JContainer.Location
- java.lang.Object
-
- java.lang.Enum<JContainer.Location>
-
- org.openrewrite.java.tree.JContainer.Location
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JContainer.Location>
- Enclosing class:
- JContainer<T>
public static enum JContainer.Location extends java.lang.Enum<JContainer.Location>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANNOTATION_ARGUMENTS
CASE
IMPLEMENTS
LANGUAGE_EXTENSION
METHOD_DECLARATION_PARAMETERS
METHOD_INVOCATION_ARGUMENTS
NEW_ARRAY_INITIALIZER
NEW_CLASS_ARGUMENTS
THROWS
TRY_RESOURCES
TYPE_BOUNDS
TYPE_PARAMETERS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Space.Location
getBeforeLocation()
JRightPadded.Location
getElementLocation()
static JContainer.Location
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JContainer.Location[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANNOTATION_ARGUMENTS
public static final JContainer.Location ANNOTATION_ARGUMENTS
-
CASE
public static final JContainer.Location CASE
-
IMPLEMENTS
public static final JContainer.Location IMPLEMENTS
-
LANGUAGE_EXTENSION
public static final JContainer.Location LANGUAGE_EXTENSION
-
METHOD_DECLARATION_PARAMETERS
public static final JContainer.Location METHOD_DECLARATION_PARAMETERS
-
METHOD_INVOCATION_ARGUMENTS
public static final JContainer.Location METHOD_INVOCATION_ARGUMENTS
-
NEW_ARRAY_INITIALIZER
public static final JContainer.Location NEW_ARRAY_INITIALIZER
-
NEW_CLASS_ARGUMENTS
public static final JContainer.Location NEW_CLASS_ARGUMENTS
-
THROWS
public static final JContainer.Location THROWS
-
TRY_RESOURCES
public static final JContainer.Location TRY_RESOURCES
-
TYPE_BOUNDS
public static final JContainer.Location TYPE_BOUNDS
-
TYPE_PARAMETERS
public static final JContainer.Location TYPE_PARAMETERS
-
-
Method Detail
-
values
public static JContainer.Location[] 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 (JContainer.Location c : JContainer.Location.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JContainer.Location 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
-
getBeforeLocation
public Space.Location getBeforeLocation()
-
getElementLocation
public JRightPadded.Location getElementLocation()
-
-