Elide GraalVM25.6.0-elide.4
All types
Versions and modules

RecomputeFieldValue

Javaannotation interfacein com.oracle.svm.core.annotatesince 22.3

@Retention(RUNTIME)
@Target({FIELD})
public @interface RecomputeFieldValue

Supported API is available to replace this non-API annotation: Use BeforeAnalysisAccess.registerFieldValueTransformer. Mechanism to change the value of a field. Normally, field values in the native image heap of the Substrate VM are just taken from the host VM. This annotation allows the field value to be intercepted and recomputed.

This annotation must be used on a field also annotated with Alias to specify the field whose value needs to be changed.

Elements5

RecomputeFieldValue.Kind kind()

kind

since 22.3

The kind of the recomputation performed.

Returns

Class<?> declClass()

declClass

since 22.3
Class<?> declClass() default com.oracle.svm.core.annotate.RecomputeFieldValue.class

The class parameter for the recomputation. If this attribute is not specified, then the class specified by declClassName() is used. If neither declClass() nor declClassName() is specified, then the class specified by the TargetClass annotation is used.

Returns

Class<?>
No description.

Default: com.oracle.svm.core.annotate.RecomputeFieldValue.class

String declClassName()

declClassName

since 22.3
String declClassName() default ""

The class parameter for the recomputation. If this attribute is not specified, then the class specified by declClass() is used. If neither declClass() nor declClassName() is specified, then the class specified by the TargetClass annotation is used.

Returns

String
No description.

Default: ""

String name()

name

since 22.3
String name() default ""

The name parameter for the recomputation.

Returns

String
No description.

Default: ""

boolean isFinal()

isFinal

since 22.3
boolean isFinal() default false

Treat the value as final, to enforce constant folding already during static analysis.

Returns

boolean
No description.

Default: false

Nested types