RecomputeFieldValue
@Retention(RUNTIME)
@Target({FIELD})
public @interface RecomputeFieldValueSupported 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.3RecomputeFieldValue.Kind kind()The kind of the recomputation performed.
Returns
RecomputeFieldValue.Kind- No description.
Class<?> declClass()
declClass
since 22.3Class< ?> declClass() default com.oracle.svm.core.annotate.RecomputeFieldValue.classThe 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.3String 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()
boolean isFinal()
isFinal
since 22.3boolean isFinal() default falseTreat the value as final, to enforce constant folding already during static analysis.
Returns
boolean- No description.
Default: false
Nested types
public enum .KindNo description.