---
title: "RecomputeFieldValue.Kind"
kind: "enum class"
id: "com.oracle.svm.core.annotate.RecomputeFieldValue$Kind"
module: "nativeimage"
version: "25.6.0-elide.4"
canonical: "https://graalvm.elide.help/25.6.0-elide.4/api/nativeimage/com/oracle/svm/core/annotate/RecomputeFieldValue.Kind.html"
---

# ≡ RecomputeFieldValue.Kind

[nativeimage](../../../../../index.md) › [com.oracle.svm.core.annotate](index.md) · Every page: [llms.txt](../../../../../llms.txt)

Enum class in [`com.oracle.svm.core.annotate`](index.md). Since 22.3. Nested in [`RecomputeFieldValue`](RecomputeFieldValue.md).

```java
public enum RecomputeFieldValue.Kind
```

Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > [`Enum`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html) > `Kind`

## Enum constants

### None
<a id="None"></a>`None`. Since 22.3. The initial field value is not modified. This is the default behavior when no `RecomputeFieldValue` annotation is present. Cite: `com/oracle/svm/core/annotate/RecomputeFieldValue.Kind.html#None`

### Reset
<a id="Reset"></a>`Reset`. Since 22.3. The field is reset to the default value (null, 0, false). Cite: `com/oracle/svm/core/annotate/RecomputeFieldValue.Kind.html#Reset`

### NewInstance
<a id="NewInstance"></a>`NewInstance`. Since 22.3. The object field is set to a instance of `declClass` created by calling the default constructor. Cite: `com/oracle/svm/core/annotate/RecomputeFieldValue.Kind.html#NewInstance`

### NewInstanceWhenNotNull
<a id="NewInstanceWhenNotNull"></a>`NewInstanceWhenNotNull`. Since 22.3. The object field is set to a instance of `declClass` created by calling the default constructor when the target field value is not null. Cite: `com/oracle/svm/core/annotate/RecomputeFieldValue.Kind.html#NewInstanceWhenNotNull`

### FromAlias
<a id="FromAlias"></a>`FromAlias`. Since 22.3. The field is set to the value assigned to the `Alias` field. Cite: `com/oracle/svm/core/annotate/RecomputeFieldValue.Kind.html#FromAlias`

### FieldOffset
<a id="FieldOffset"></a>`FieldOffset`. Since 22.3. The int or long field is set to the offset of the field named [`name()`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name%28%29) of the class `declClass`, as it would be computed by `sun.misc.Unsafe.objectFieldOffset`. Cite: `com/oracle/svm/core/annotate/RecomputeFieldValue.Kind.html#FieldOffset`

### StaticFieldBase
<a id="StaticFieldBase"></a>`StaticFieldBase`. Since 23.0. The static field base Object as it would be computed by `sun.misc.Unsafe.staticFieldBase(Field)`. Cite: `com/oracle/svm/core/annotate/RecomputeFieldValue.Kind.html#StaticFieldBase`

### ArrayBaseOffset
<a id="ArrayBaseOffset"></a>`ArrayBaseOffset`. Since 22.3. The int or long field is set to the offset of the first array element of the array class `declClass`, as it would be computed by `sun.misc.Unsafe.arrayBaseOffset(Class)`. Cite: `com/oracle/svm/core/annotate/RecomputeFieldValue.Kind.html#ArrayBaseOffset`

### ArrayIndexScale
<a id="ArrayIndexScale"></a>`ArrayIndexScale`. Since 22.3. The int or long field is set to the element size array class `declClass`, as it would be computed by `sun.misc.Unsafe.arrayIndexScale(Class)`. Cite: `com/oracle/svm/core/annotate/RecomputeFieldValue.Kind.html#ArrayIndexScale`

### ArrayIndexShift
<a id="ArrayIndexShift"></a>`ArrayIndexShift`. Since 22.3. The int or long field is set to the log2 of `ArrayIndexScale`. Cite: `com/oracle/svm/core/annotate/RecomputeFieldValue.Kind.html#ArrayIndexShift`

### AtomicFieldUpdaterOffset
<a id="AtomicFieldUpdaterOffset"></a>`AtomicFieldUpdaterOffset`. Since 22.3. Special support for field offsets used by java.util.concurrent.atomic.AtomicXxxFieldUpdater. Cite: `com/oracle/svm/core/annotate/RecomputeFieldValue.Kind.html#AtomicFieldUpdaterOffset`

### TranslateFieldOffset
<a id="TranslateFieldOffset"></a>`TranslateFieldOffset`. Since 22.3. 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 class `declClass`. Cite: `com/oracle/svm/core/annotate/RecomputeFieldValue.Kind.html#TranslateFieldOffset`

### Manual
<a id="Manual"></a>`Manual`. Since 22.3. Marker value that the field is intercepted by some manual logic. Cite: `com/oracle/svm/core/annotate/RecomputeFieldValue.Kind.html#Manual`

### Custom
<a id="Custom"></a>`Custom`. Since 22.3. Use a `FieldValueTransformer`, which is specified as the target class. Cite: `com/oracle/svm/core/annotate/RecomputeFieldValue.Kind.html#Custom`

## Methods

### values()
<a id="values()"></a>`public static RecomputeFieldValue.Kind[] values()`. Returns the enum constants in declaration order. Returns `RecomputeFieldValue.Kind[]`: Returns the enum constants in declaration order. Cite: `com/oracle/svm/core/annotate/RecomputeFieldValue.Kind.html#values()`

### valueOf(String)
<a id="valueOf(java.lang.String)"></a>`public static RecomputeFieldValue.Kind valueOf(String name)`. Returns the enum constant with the given name. Parameters: `name` `String`: The exact name of the enum constant. Returns `RecomputeFieldValue.Kind`: Returns the enum constant with the given name. Cite: `com/oracle/svm/core/annotate/RecomputeFieldValue.Kind.html#valueOf(java.lang.String)`

## Inherited members

- From class [`Enum`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html): [`compareTo`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo%28E%29), [`describeConstable`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals%28java.lang.Object%29), [`getDeclaringClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode%28%29), [`name`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name%28%29), [`ordinal`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString%28%29), [`valueOf`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf%28java.lang.Class,java.lang.String%29)
- From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29)
