Package org.codehaus.groovy.transform.sc
Enum StaticCompilationMetadataKeys
java.lang.Object
java.lang.Enum<StaticCompilationMetadataKeys>
org.codehaus.groovy.transform.sc.StaticCompilationMetadataKeys
- All Implemented Interfaces:
Serializable
,Comparable<StaticCompilationMetadataKeys>
,java.lang.constant.Constable
Static compilation AST node metadata keys.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTells which method should be used in a binary expression.For list.property expressions, we need the inferred component type.Callback for dynamic classes that contain statically compiled inner classes or methods.Private bridge methods are methods used to access a nestmate's method.Deprecated.Deprecated.The type of the class which owns the property.If a receiver is the receiver of a dynamic property (for mixed-mode compilation).Marks a section of code for static compilation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static StaticCompilationMetadataKeys[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STATIC_COMPILE_NODE
Marks a section of code for static compilation. -
BINARY_EXP_TARGET
Tells which method should be used in a binary expression. -
PRIVATE_BRIDGE_METHODS
Private bridge methods are methods used to access a nestmate's method. -
PRIVATE_FIELDS_ACCESSORS
@Deprecated(since="5.0.0") public static final StaticCompilationMetadataKeys PRIVATE_FIELDS_ACCESSORSDeprecated.Private fields accessors are methods used to read a nestmate's field. -
PRIVATE_FIELDS_MUTATORS
@Deprecated(since="5.0.0") public static final StaticCompilationMetadataKeys PRIVATE_FIELDS_MUTATORSDeprecated.Private fields mutators are methods used to write a nestmate's field. -
DYNAMIC_OUTER_NODE_CALLBACK
Callback for dynamic classes that contain statically compiled inner classes or methods. -
PROPERTY_OWNER
The type of the class which owns the property. -
COMPONENT_TYPE
For list.property expressions, we need the inferred component type. -
RECEIVER_OF_DYNAMIC_PROPERTY
If a receiver is the receiver of a dynamic property (for mixed-mode compilation).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-