---
title: "com.oracle.svm.core.annotate"
description: "This package contains annotations that configure the substitution mechanism of GraalVM Native Image."
kind: "package"
id: "com.oracle.svm.core.annotate"
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/index.html"
---

# ▣ com.oracle.svm.core.annotate

[nativeimage](../../../../../index.md) · Every page: [llms.txt](../../../../../llms.txt)

Package in nativeimage. Since 22.3.

This package contains annotations that configure the substitution mechanism of GraalVM Native Image. Annotated classes and methods modify the behavior of the class referenced by [`com.oracle.svm.core.annotate.TargetClass`](TargetClass.md). Important: this package is not part of the supported API. It exists, and is exported in the module descriptor, for compatibility reasons only.

## Annotations

- [`Alias`](Alias.md): Mechanism for referring to fields and methods otherwise inaccessible due to Java language access control rules.
- [`AnnotateOriginal`](AnnotateOriginal.md): This annotation allows to add additional annotations to existing methods but keep the implementation as it is.
- [`Delete`](Delete.md): Mechanism to ensures that an element is not used.
- [`Inject`](Inject.md): Injects the annotated field into the TargetClass.
- [`InjectAccessors`](InjectAccessors.md): Inject accessor methods for the field denoted using an Alias annotation.
- [`KeepOriginal`](KeepOriginal.md): If a class annotated with TargetClass is also annotated with Substitute, all non-substituted methods in that class are by default treated as deleted.
- [`RecomputeFieldValue`](RecomputeFieldValue.md): Supported API is available to replace this non-API annotation: Use BeforeAnalysisAccess.registerFieldValueTransformer.
- [`Substitute`](Substitute.md): When used to annotate a method, it indicates that a method declaration is intended to be a substitute for a method declaration in another class.
- [`TargetClass`](TargetClass.md): A class annotated with this annotation denotes a class that modifies methods of fields of another class, called the "original" class.
- [`TargetElement`](TargetElement.md): Specifies additional properties for an element also annotated with Alias, Delete, Substitute, AnnotateOriginal, or KeepOriginal.
