public static enum RecomputeFieldValue.Kind extends Enum<RecomputeFieldValue.Kind>
Enum.EnumDesc<E extends Enum<E>>
Enum Constant and Description |
---|
ArrayBaseOffset
The int or long field is set to the offset of the first array element of the array class
RecomputeFieldValue.declClass() , as it would be computed by
Unsafe.arrayBaseOffset(Class) . |
ArrayIndexScale
The int or long field is set to the element size array class
RecomputeFieldValue.declClass() , as it
would be computed by Unsafe.arrayIndexScale(Class) . |
ArrayIndexShift
The int or long field is set to the log2 of
RecomputeFieldValue.Kind.ArrayIndexScale . |
AtomicFieldUpdaterOffset
Special support for field offsets used by
java.util.concurrent.atomic.AtomicXxxFieldUpdater.
|
Custom
Use a
FieldValueTransformer , which is specified as the target class. |
FieldOffset
The int or long field is set to the offset of the field named
Enum.name() of the
class RecomputeFieldValue.declClass() , as it would be computed by
Unsafe.objectFieldOffset(java.lang.reflect.Field) . |
FromAlias
The field is set to the value assigned to the
Alias field. |
Manual
Marker value that the field is intercepted by some manual logic.
|
NewInstance
The object field is set to a instance of
RecomputeFieldValue.declClass() created by calling the
default constructor. |
NewInstanceWhenNotNull
The object field is set to a instance of
RecomputeFieldValue.declClass() created by calling the
default constructor when the target field value is not null. |
None
The initial field value is not modified.
|
Reset
The field is reset to the default value (null, 0, false).
|
StaticFieldBase
The static field base Object as it would be computed by
Unsafe.staticFieldBase(Field) . |
TranslateFieldOffset
The field offset stored in this int or long field is updated.
|
Modifier and Type | Method and Description |
---|---|
static RecomputeFieldValue.Kind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RecomputeFieldValue.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecomputeFieldValue.Kind None
RecomputeFieldValue
annotation is present.public static final RecomputeFieldValue.Kind Reset
public static final RecomputeFieldValue.Kind NewInstance
RecomputeFieldValue.declClass()
created by calling the
default constructor.public static final RecomputeFieldValue.Kind NewInstanceWhenNotNull
RecomputeFieldValue.declClass()
created by calling the
default constructor when the target field value is not null.public static final RecomputeFieldValue.Kind FromAlias
Alias
field.public static final RecomputeFieldValue.Kind FieldOffset
Enum.name()
of the
class RecomputeFieldValue.declClass()
, as it would be computed by
Unsafe.objectFieldOffset(java.lang.reflect.Field)
.public static final RecomputeFieldValue.Kind StaticFieldBase
Unsafe.staticFieldBase(Field)
.public static final RecomputeFieldValue.Kind ArrayBaseOffset
RecomputeFieldValue.declClass()
, as it would be computed by
Unsafe.arrayBaseOffset(Class)
.public static final RecomputeFieldValue.Kind ArrayIndexScale
RecomputeFieldValue.declClass()
, as it
would be computed by Unsafe.arrayIndexScale(Class)
.public static final RecomputeFieldValue.Kind ArrayIndexShift
RecomputeFieldValue.Kind.ArrayIndexScale
.public static final RecomputeFieldValue.Kind AtomicFieldUpdaterOffset
public static final RecomputeFieldValue.Kind TranslateFieldOffset
RecomputeFieldValue.declClass()
.public static final RecomputeFieldValue.Kind Manual
public static final RecomputeFieldValue.Kind Custom
FieldValueTransformer
, which is specified as the target class.public static RecomputeFieldValue.Kind[] values()
public static RecomputeFieldValue.Kind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null