com.oracle.svm.core.annotate
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 TargetClass. Important: this package is not part of the supported API. It exists, and is exported in the module descriptor, for compatibility reasons only.
Annotations
public @interface AliasMechanism for referring to fields and methods otherwise inaccessible due to Java language access control rules.
public @interface AnnotateOriginalThis annotation allows to add additional annotations to existing methods but keep the implementation as it is.
public @interface DeleteMechanism to ensures that an element is not used.
public @interface InjectInjects the annotated field into the
TargetClass.public @interface InjectAccessorsInject accessor methods for the field denoted using an
Aliasannotation.public @interface KeepOriginalIf a class annotated with
TargetClassis also annotated withSubstitute, all non-substituted methods in that class are by default treated asdeleted.public @interface RecomputeFieldValueSupported API is available to replace this non-API annotation: Use
BeforeAnalysisAccess.registerFieldValueTransformer.public enum .KindNo description.
public @interface SubstituteWhen used to annotate a method, it indicates that a method declaration is intended to be a substitute for a method declaration in another class.
public @interface TargetClassA class annotated with this annotation denotes a class that modifies methods of fields of another class, called the "original" class.
public class .AlwaysIncludedThe default value for the
TargetClass.onlyWith()attribute.public interface .NoClassNameProviderMarker value for
classNameProviderthat no class name provider should be used.
public @interface TargetElementSpecifies additional properties for an element also annotated with
Alias,Delete,Substitute,AnnotateOriginal, orKeepOriginal.