Package com.oracle.svm.core.annotate
Enum Class RecomputeFieldValue.Kind
- All Implemented Interfaces:
Serializable
,Comparable<RecomputeFieldValue.Kind>
,Constable
- Enclosing class:
RecomputeFieldValue
- Since:
- 22.3
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe int or long field is set to the offset of the first array element of the array classRecomputeFieldValue.declClass()
, as it would be computed byUnsafe.arrayBaseOffset(Class)
.The int or long field is set to the element size array classRecomputeFieldValue.declClass()
, as it would be computed byUnsafe.arrayIndexScale(Class)
.The int or long field is set to the log2 ofArrayIndexScale
.Special support for field offsets used by java.util.concurrent.atomic.AtomicXxxFieldUpdater.Use aFieldValueTransformer
, which is specified as the target class.The int or long field is set to the offset of the field namedEnum.name()
of the classRecomputeFieldValue.declClass()
, as it would be computed byUnsafe.objectFieldOffset(java.lang.reflect.Field)
.The field is set to the value assigned to theAlias
field.Marker value that the field is intercepted by some manual logic.The object field is set to a instance ofRecomputeFieldValue.declClass()
created by calling the default constructor.The object field is set to a instance ofRecomputeFieldValue.declClass()
created by calling the default constructor when the target field value is not null.The initial field value is not modified.The field is reset to the default value (null, 0, false).The static field base Object as it would be computed byUnsafe.staticFieldBase(Field)
.The field offset stored in this int or long field is updated. -
Method Summary
Modifier and TypeMethodDescriptionstatic RecomputeFieldValue.Kind
Returns the enum constant of this class with the specified name.static RecomputeFieldValue.Kind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
The initial field value is not modified. This is the default behavior when noRecomputeFieldValue
annotation is present.- Since:
- 22.3
-
Reset
The field is reset to the default value (null, 0, false).- Since:
- 22.3
-
NewInstance
The object field is set to a instance ofRecomputeFieldValue.declClass()
created by calling the default constructor.- Since:
- 22.3
-
NewInstanceWhenNotNull
The object field is set to a instance ofRecomputeFieldValue.declClass()
created by calling the default constructor when the target field value is not null.- Since:
- 22.3
-
FromAlias
The field is set to the value assigned to theAlias
field.- Since:
- 22.3
-
FieldOffset
The int or long field is set to the offset of the field namedEnum.name()
of the classRecomputeFieldValue.declClass()
, as it would be computed byUnsafe.objectFieldOffset(java.lang.reflect.Field)
.- Since:
- 22.3
-
StaticFieldBase
The static field base Object as it would be computed byUnsafe.staticFieldBase(Field)
.- Since:
- 23.0
-
ArrayBaseOffset
The int or long field is set to the offset of the first array element of the array classRecomputeFieldValue.declClass()
, as it would be computed byUnsafe.arrayBaseOffset(Class)
.- Since:
- 22.3
-
ArrayIndexScale
The int or long field is set to the element size array classRecomputeFieldValue.declClass()
, as it would be computed byUnsafe.arrayIndexScale(Class)
.- Since:
- 22.3
-
ArrayIndexShift
The int or long field is set to the log2 ofArrayIndexScale
.- Since:
- 22.3
-
AtomicFieldUpdaterOffset
Special support for field offsets used by java.util.concurrent.atomic.AtomicXxxFieldUpdater.- Since:
- 22.3
-
TranslateFieldOffset
The field offset stored in this int or long field is updated. The original value must be a valid field offset in the hosted universe, and the new value is the field offset of the same field in the substrate universe. The field is looked up in the classRecomputeFieldValue.declClass()
.- Since:
- 22.3
-
Manual
Marker value that the field is intercepted by some manual logic.- Since:
- 22.3
-
Custom
Use aFieldValueTransformer
, which is specified as the target class.- Since:
- 22.3
-
-
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
-