Package org.openrewrite.gradle.trait
Enum Class ExtraProperty.PropertySyntax
java.lang.Object
java.lang.Enum<ExtraProperty.PropertySyntax>
org.openrewrite.gradle.trait.ExtraProperty.PropertySyntax
- All Implemented Interfaces:
Serializable,Comparable<ExtraProperty.PropertySyntax>,Constable
- Enclosing class:
ExtraProperty
The syntax form used to declare this property.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAssignment in ext block:ext { foo = "bar" }set() method inside ext block:ext { set('foo', 'bar') }Field access assignment:ext.foo = "bar"Method invocation:ext.set("foo", "bar")Subscript access:ext['foo'] = "bar"Variable declaration:def foo = "bar"orval foo = "bar" -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtraProperty.PropertySyntaxReturns the enum constant of this class with the specified name.static ExtraProperty.PropertySyntax[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VARIABLE_DECLARATION
Variable declaration:def foo = "bar"orval foo = "bar" -
EXT_BLOCK_ASSIGNMENT
Assignment in ext block:ext { foo = "bar" } -
EXT_FIELD_ACCESS
Field access assignment:ext.foo = "bar" -
EXT_SET_METHOD
Method invocation:ext.set("foo", "bar") -
EXT_SUBSCRIPT_ACCESS
Subscript access:ext['foo'] = "bar" -
EXT_BLOCK_SET_METHOD
set() method inside ext block:ext { set('foo', 'bar') }
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-