# nativeimage 25.6.0-elide.4 > API reference for nativeimage. Each page below is Markdown; the HTML page of the same name has the same content. llms-full.txt has every page in one file, and api.json is the apidocs/1 model. ## When to use this Use this API reference when you write, read or review code that uses nativeimage 25.6.0-elide.4. ## Overview - [⬢ nativeimage](index.md): packages and types - [Alphabetical index](index-all.md): find `Type.member` or search by behavior. Check the declaring type and overload, then follow the matching link. - [Declaration contracts](contracts.ndjson): full structured records for a known `Type.member`, including documented parameters, returns and throws. - [llms-full.txt](llms-full.txt): every page in one file - [api.json](api.json): the apidocs/1 model ## Pages - [▣ Package com.oracle.svm.core.annotate](com/oracle/svm/core/annotate/index.md): This package contains annotations that configure the substitution mechanism of GraalVM Native Image. - [@ Alias (annotation interface in com.oracle.svm.core.annotate)](com/oracle/svm/core/annotate/Alias.md): Mechanism for referring to fields and methods otherwise inaccessible due to Java language access control rules. - [@ AnnotateOriginal (annotation interface in com.oracle.svm.core.annotate)](com/oracle/svm/core/annotate/AnnotateOriginal.md): This annotation allows to add additional annotations to existing methods but keep the implementation as it is. - [@ Delete (annotation interface in com.oracle.svm.core.annotate)](com/oracle/svm/core/annotate/Delete.md): Mechanism to ensures that an element is not used. value(): Documents the reason why the annotated element is deleted. - [@ Inject (annotation interface in com.oracle.svm.core.annotate)](com/oracle/svm/core/annotate/Inject.md): Injects the annotated field into the TargetClass. - [@ InjectAccessors (annotation interface in com.oracle.svm.core.annotate)](com/oracle/svm/core/annotate/InjectAccessors.md): Inject accessor methods for the field denoted using an Alias annotation. - [@ KeepOriginal (annotation interface in com.oracle.svm.core.annotate)](com/oracle/svm/core/annotate/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 (annotation interface in com.oracle.svm.core.annotate)](com/oracle/svm/core/annotate/RecomputeFieldValue.md): Supported API is available to replace this non-API annotation: Use BeforeAnalysisAccess.registerFieldValueTransformer. kind(): The kind of the recomputation performed. declClass(): The class parameter for the recomputation. declClassName(): The class parameter for the recomputation. name(): The name parameter for the recomputation. isFinal(): Treat the value as final, to enforce constant folding already during static analysis. - [≡ RecomputeFieldValue.Kind (enum class in com.oracle.svm.core.annotate)](com/oracle/svm/core/annotate/RecomputeFieldValue.Kind.md): None: The initial field value is not modified. Reset: The field is reset to the default value (null, 0, false). NewInstance: The object field is set to a instance of declClass created by calling the default constructor. NewInstanceWhenNotNull: The object field is set to a instance of declClass created by calling the default constructor when the target field value is not null. FromAlias: The field is set to the value assigned to the Alias field. FieldOffset: The int or long field is set to the offset of the field named name() of the class declClass, as it would be computed by sun.misc.Unsafe.ob - [@ Substitute (annotation interface in com.oracle.svm.core.annotate)](com/oracle/svm/core/annotate/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 (annotation interface in com.oracle.svm.core.annotate)](com/oracle/svm/core/annotate/TargetClass.md): A class annotated with this annotation denotes a class that modifies methods of fields of another class, called the "original" class. value(): Specifies the substitutee class using a class literal. className(): Specifies the substitutee class using a class-name string. classNameProvider(): Specifies the substitutee class. innerClass(): Specifies the suffix of the substitutee class name when it is an inner class. onlyWith(): Substitute only if all provided predicates are true (default: unconditional substitution that is always included). - [◆ TargetClass.AlwaysIncluded (class in com.oracle.svm.core.annotate)](com/oracle/svm/core/annotate/TargetClass.AlwaysIncluded.md): The default value for the TargetClass.onlyWith() attribute. - [◇ TargetClass.NoClassNameProvider (interface in com.oracle.svm.core.annotate)](com/oracle/svm/core/annotate/TargetClass.NoClassNameProvider.md): Marker value for classNameProvider that no class name provider should be used. - [@ TargetElement (annotation interface in com.oracle.svm.core.annotate)](com/oracle/svm/core/annotate/TargetElement.md): Specifies additional properties for an element also annotated with Alias, Delete, Substitute, AnnotateOriginal, or KeepOriginal. name(): The name of the field or method in the original class. onlyWith(): Substitute only if all provided predicates are true (default: unconditional substitution that is always included). - [▣ Package org.graalvm.nativeimage](org/graalvm/nativeimage/index.md): The GraalVM SDK Native Image API allows to customize the native image generation, i.e., the ahead-of-time compilation of Java code to standalone executables. - [◆ AnnotationAccess (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/AnnotationAccess.md): This class provides same-VM annotation access for AnnotatedElements owned by the current context while trying to prevent, at image build time, side-effecting changes that impact the analysis results. isAnnotationPresent(AnnotatedElement, Class): Implementation of AnnotatedElement.isAnnotationPresent(Class). getAnnotation(AnnotatedElement, Class): Implementation of AnnotatedElement.getAnnotation(Class) . getAnnotationTypes(AnnotatedElement): Implementation for retrieving all Annotation.annotationType()s for a element. - [◆ CurrentIsolate (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/CurrentIsolate.md): Utility methods that provide access to the current isolate. getIsolate(): Returns the current isolate. getCurrentThread(): Returns the current thread in the current isolate. - [◆ ImageInfo (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/ImageInfo.md): Utility class to retrieve information about the context in which code gets executed. PROPERTY_NATIVE_IMAGE_PREFIX: Holds a name that is a prefix for all native-image properties. PROPERTY_IMAGE_CODE_KEY: Holds the string that is the name of the system property providing information about the context in which code is currently executing. PROPERTY_IMAGE_CODE_VALUE_BUILDTIME: Holds the string that will be returned by the system property for ImageInfo.PROPERTY_IMAGE_CODE_KEY if code is executing in the context of image building (e.g. PROPERTY_IMAGE_CODE_VALUE_RUNTIME: Holds the string that will be returned by the system property for ImageInfo.PROPERTY_IMAGE_CODE_KEY if code is exec - [◆ ImageSingletons (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/ImageSingletons.md): A key-value store of singleton objects. add(Class, T): Add a singleton to the registry. lookup(Class): Lookup a singleton in the registry. contains(Class): Checks if a singleton is in the registry. - [◇ Isolate (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Isolate.md): Pointer to the runtime data structure for an isolate. - [◇ IsolateThread (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/IsolateThread.md): Pointer to the runtime data structure for a thread. - [◆ Isolates (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/Isolates.md): Support for the creation, access to, and tear-down of isolates. createIsolate(Isolates.CreateIsolateParameters): Creates a new isolate with the passed parameters. Returns: A pointer to the structure that represents the current thread in the new isolate. Throws: Isolates.IsolateExcept attachCurrentThread(Isolate): Attaches the current thread to the passed isolate. Returns: A pointer to the structure representing the newly attached isolate thread. Throws: Isolates.IsolateException - on error. getCurrentThread(Isolate): Given an isolate to which the current thread is attached, returns the address of the thread's associated isolate thread structure. Returns: A - [◆ Isolates.CreateIsolateParameters (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/Isolates.CreateIsolateParameters.md): Parameters for the creation of an isolate. getDefault(): Returns a CreateIsolateParameters with all default values. getReservedAddressSpaceSize(): Returns the size in bytes for the reserved virtual address space of the new isolate. getAuxiliaryImagePath(): Returns the file path to an auxiliary image which should be loaded in addition to the main image, or null if no such image should be loaded. getAuxiliaryImageReservedSpaceSize(): Returns the size in bytes of an address space to reserve for loading an auxiliary image in addition to the main image, or 0 if no space should be reserved. getArguments(): Returns the list of additional isol - [◆ Isolates.CreateIsolateParameters.Builder (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/Isolates.CreateIsolateParameters.Builder.md): Builder for a CreateIsolateParameters instance. Builder(): Creates a new builder with default values. reservedAddressSpaceSize(UnsignedWord): Sets the size in bytes for the reserved virtual address space of the new isolate. auxiliaryImagePath(String): Sets the file path to an auxiliary image which should be loaded in addition to the main image, or null if no such image should be loaded. auxiliaryImageReservedSpaceSize(UnsignedWord): Sets the size in bytes of an address space to reserve for loading an auxiliary image in addition to the main image, or 0 if no space should be reserved. appendArgument(String): Appends an isolate argument. setPr - [⚡︎ Isolates.IsolateException (exception in org.graalvm.nativeimage)](org/graalvm/nativeimage/Isolates.IsolateException.md): An exception thrown in the context of managing isolates. IsolateException(String): Constructs a new exception with the specified detail message. - [◇ Isolates.ProtectionDomain (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Isolates.ProtectionDomain.md): Identifies a protection domain for an isolate. NO_DOMAIN: Do not use a protection domain. NEW_DOMAIN: Creates a new protection domain if passed to the CreateIsolateParameters.Builder. - [◇ LogHandler (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/LogHandler.md): Low-level handler for log messages of native images. log(CCharPointer, UnsignedWord): Write raw bytes to the log. flush(): Flush the log to its destination. fatalError(): Exit the VM because a fatal, non-recoverable error situation has been detected. - [⚡︎ MissingForeignRegistrationError (exception in org.graalvm.nativeimage)](org/graalvm/nativeimage/MissingForeignRegistrationError.md): This error is thrown when a query through the Foreign Function and Memory (FFM) API did not get appropriately registered at build-time. - [⚡︎ MissingJNIRegistrationError (exception in org.graalvm.nativeimage)](org/graalvm/nativeimage/MissingJNIRegistrationError.md): This exception is thrown when a JNI query tries to access an element that was not registered for JNI access in the program. getElementType(): Returns: The type of the element trying to be queried (Class, Method, Field or Constructor). getDeclaringClass(): Returns: The class on which the missing query was tried, or null on static queries. getElementName(): Returns: The name of the queried element. getSignature(): Returns: The signature passed to the query, or null if the query doesn't take a signature as argument. - [⚡︎ MissingReflectionRegistrationError (exception in org.graalvm.nativeimage)](org/graalvm/nativeimage/MissingReflectionRegistrationError.md): This exception is thrown when a reflective query (such as Class.getMethod(String, Class\[\])) tries to access an element that was not registered for reflection in the program. getElementType(): Returns: The type of the element trying to be queried (Class, Method, Field or Constructor), or null if the query is a bulk query (like Class.getMethods()). getDeclaringClass(): Returns: The class on which the missing query was tried, or null on static queries (e.g. Class.forName(String)). getElementName(): Returns: The name of the queried element, or bulk query method (e.g. "getMethods"). getParameterTypes(): Returns: The parameter types passed to the query, or null if the query doesn't take parameter types as argument. isInvocable(Executable): Returns: Whether the executabl - [◇ ObjectHandle (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/ObjectHandle.md): The opaque representation of a handle to a Java object given out to unmanaged code. - [◇ ObjectHandles (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/ObjectHandles.md): Manages a set of ObjectHandles. getGlobal(): A set of handles that is kept alive globally. create(): Creates a new set of handles. create(Object): Creates a handle to the specified object. get(ObjectHandle): Extracts the object from a given handle. destroy(ObjectHandle): Destroys the given handle. - [◇ PinnedObject (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/PinnedObject.md): Holder for a pinned object, such that the object doesn't move until the pin is removed. isSupported(): Whether pinned objects are supported in the selected Native Image backend. create(Object): Create an open PinnedObject. Throws: UnsupportedOperationException - if pinned objects are not supported as determined by isSupported(). close(): Releases the pin for the object. getObject(): Returns the Object that is the referent of this PinnedObject. addressOfObject(): Returns the raw address of the pinned object. addressOfArrayElement(int): Returns a pointer to the array element with the specified index. - [◇ Platform (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.md): Root of the interface hierarchy for architectures, OS, and supported combinations of them. PLATFORM_PROPERTY_NAME: The system property name that specifies the fully qualified name of the Platform implementation class that should be used. includedIn(Class): Returns true if the current platform (the platform that the native image is built for) is included in the provided platform group. getOS(): Returns the string representing Platform's OS name. getArchitecture(): Returns the string representing Platform's architecture name. - [◇ Platform.AARCH64 (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.AARCH64.md): Supported architecture: ARMv8 64-bit. getArchitecture(): Returns string representing AARCH64 architecture. - [◇ Platform.AMD64 (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.AMD64.md): Supported architecture: x86 64-bit. getArchitecture(): Returns string representing AMD64 architecture. - [◇ Platform.ANDROID (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.ANDROID.md): Supported operating system: Android. getOS(): Returns string representing ANDROID OS. - [◆ Platform.ANDROID_AARCH64 (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.ANDROID_AARCH64.md): Supported leaf platform: Android on AArch64 64-bit. ANDROID_AARCH64(): Instantiates a marker instance of this platform. - [◇ Platform.DARWIN (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.DARWIN.md): Basis for all Apple operating systems (MacOS and iOS). - [◇ Platform.DARWIN_AARCH64 (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.DARWIN_AARCH64.md): Basis for all Apple operating systems on AMD64 (MACOS_AMD64 & IOS_AMD64). - [◇ Platform.DARWIN_AMD64 (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.DARWIN_AMD64.md): Basis for all Apple operating systems on AMD64 (MACOS_AMD64 & IOS_AMD64). - [◆ Platform.HOSTED_ONLY (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.HOSTED_ONLY.md): Marker for elements (types, methods, or fields) that are only visible during native image generation and cannot be used at run time, regardless of the actual platform. - [◇ Platform.IOS (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.IOS.md): Supported operating system: iOS. getOS(): Returns string representing iOS OS. - [◆ Platform.IOS_AARCH64 (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.IOS_AARCH64.md): Supported leaf platform: iOS on AArch 64-bit. IOS_AARCH64(): Instantiates a marker instance of this platform. - [◆ Platform.IOS_AMD64 (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.IOS_AMD64.md): Supported leaf platform: iOS on x86 64-bit. IOS_AMD64(): Instantiates a marker instance of this platform. - [◇ Platform.LINUX (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.LINUX.md): Supported operating system: Linux. getOS(): Returns string representing LINUX OS. - [◆ Platform.LINUX_AARCH64 (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.LINUX_AARCH64.md): Supported leaf platform: Linux on AArch64 64-bit. LINUX_AARCH64(): Instantiates a marker instance of this platform. - [◇ Platform.LINUX_AARCH64_BASE (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.LINUX_AARCH64_BASE.md): Basis for all Linux operating systems on AARCH64 (LINUX_AARCH64 & ANDROID_AARCH64). - [◆ Platform.LINUX_AMD64 (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.LINUX_AMD64.md): Supported leaf platform: Linux on x86 64-bit. LINUX_AMD64(): Instantiates a marker instance of this platform. - [◇ Platform.LINUX_AMD64_BASE (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.LINUX_AMD64_BASE.md): Basis for all Linux operating systems on AMD64 (LINUX_AMD64). - [◆ Platform.LINUX_RISCV64 (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.LINUX_RISCV64.md): Supported leaf platform: Linux on RISC-V 64-bit. LINUX_RISCV64(): Instantiates a marker instance of this platform. - [◇ Platform.MACOS (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.MACOS.md): Supported operating system: MacOS. getOS(): Returns string representing MACOS OS. - [◆ Platform.MACOS_AARCH64 (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.MACOS_AARCH64.md): Supported leaf platform: MacOS on AArch 64-bit. MACOS_AARCH64(): Instantiates a marker instance of this platform. - [◆ Platform.MACOS_AMD64 (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.MACOS_AMD64.md): Supported leaf platform: MacOS on x86 64-bit. MACOS_AMD64(): Instantiates a marker instance of this platform. - [◇ Platform.RISCV64 (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.RISCV64.md): Supported architecture: RISC-V 64-bit. getArchitecture(): Returns string representing RISCV64 architecture. - [◇ Platform.WINDOWS (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.WINDOWS.md): Supported operating system: Windows. - [◆ Platform.WINDOWS_AARCH64 (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.WINDOWS_AARCH64.md): Supported leaf platform: Windows on AArch 64-bit. WINDOWS_AARCH64(): Instantiates a marker instance of this platform. - [◆ Platform.WINDOWS_AMD64 (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platform.WINDOWS_AMD64.md): Supported leaf platform: Windows on x86 64-bit. WINDOWS_AMD64(): Instantiates a marker instance of this platform. - [@ Platforms (annotation interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Platforms.md): Restricts the annotated element (type, method, or field) to the specified Platform groups. value(): Restricts the annotated element (type, method, or field) to the specified Platform groups. - [◆ ProcessProperties (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/ProcessProperties.md): Utility class to get and set properties of the OS process at run time. getExecutableName(): Return the canonicalized absolute pathname of the executable. getProcessID(): Get the Process ID of the process executing the image. getProcessID(Process): Get the Process ID of the given process object. waitForProcessExit(long): Wait for process termination and return its exit status. destroy(long): Kills the process. destroyForcibly(long): Kills the process forcibly. isAlive(long): Tests whether the process represented by the given Process ID is alive. Returns: true if the process represented by the given Process ID object has not yet terminated. getObjectFile(String): R - [◆ RuntimeOptions (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/RuntimeOptions.md): Used for manipulating options at run time. set(String, Object): Set the value of the option with the provided name to the new value. get(String): Get the value of the option with the provided name. listDescriptors(): Lists all runtime option descriptors available. getDescriptor(String): Looks up a single descriptor given an option name. - [◇ RuntimeOptions.Descriptor (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/RuntimeOptions.Descriptor.md): name(): Returns the name of the option that this descriptor represents. help(): Returns a human-readable description on how to use the option. deprecated(): Returns true if this option was marked deprecated. deprecatedMessage(): Returns the deprecation reason and the recommended fix. valueType(): Returns the option type of this key. defaultValue(): Returns the default value of type valueType() for this option. convertValue(String): Converts a string value, validates it, and converts it to an object of this type. Throws: IllegalArgumentException - if the value is invalid or cannot be converted. - [◆ StackValue (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/StackValue.md): Contains static methods for memory allocation in the stack frame. get(Class): Reserves a block of memory for given CStruct class in the stack frame of the method that calls this intrinsic. Returns: pointer to on-stack allocated location for the requested structure Throws: IllegalThread get(int, Class): Reserves a block of memory for array of given CStruct type in the stack frame of the method that calls this intrinsic. Returns: pointer to on-stack allocated location for the requested structure Throws: get(int): Reserves a block of memory in the stack frame of the method that calls this intrinsic. Throws: IllegalThreadStateException - when called in a virtua - [◆ Threading (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/Threading.md): Functionality related to execution in threads. registerRecurringCallback(long, TimeUnit, Threading.RecurringCallback): Deprecated. in 25.1 without replacement. This method is inherently unsafe as it can interfere with other code. This method is intended for expert us - [◇ Threading.RecurringCallback (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Threading.RecurringCallback.md): Interface that a callback handler needs to implement. run(Threading.RecurringCallbackAccess): Method that is called recurringly when the callback handler is installed. - [◇ Threading.RecurringCallbackAccess (interface in org.graalvm.nativeimage)](org/graalvm/nativeimage/Threading.RecurringCallbackAccess.md): Provides methods that are available during the execution of a RecurringCallback. throwException(Throwable): Throws an exception from the recurring callback to the code that is regularly executing in the thread. - [◆ UnmanagedMemory (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/UnmanagedMemory.md): Contains static methods that allow allocate/free of unmanaged memory, i.e., memory that is not under the control of the garbage collector. malloc(UnsignedWord): Allocates size bytes of unmanaged memory. malloc(int): Allocates size bytes of unmanaged memory. calloc(UnsignedWord): Allocates size bytes of unmanaged memory. calloc(int): Allocates size bytes of unmanaged memory. realloc(T, UnsignedWord): Changes the size of the provided unmanaged memory to size bytes of unmanaged memory. free(PointerBase): Frees unmanaged memory that was previously allocated using methods of this class. - [◆ VMRuntime (class in org.graalvm.nativeimage)](org/graalvm/nativeimage/VMRuntime.md): Used for doing VM runtime operations. initialize(): Initializes the VM: Runs all startup hooks that were registered during image building. shutdown(): Shuts down the VM: Runs all shutdown hooks and waits for all finalization to complete. dumpHeap(String, boolean): Dumps the heap to the outputFile file in the same format as the hprof heap dump. Throws: UnsupportedOperationException - if this operation is not supported. Throws: IOException - [▣ Package org.graalvm.nativeimage.c](org/graalvm/nativeimage/c/index.md): This package and its sub-packages provide a fast and lightweight interface between Java code and C code. - [@ CContext (annotation interface in org.graalvm.nativeimage.c)](org/graalvm/nativeimage/c/CContext.md): Defines the context for most other annotations of the C interface: the C header files that need to be imported, the C macros that need to be defined to properly configure these headers, and additional flags that should be passed to the C compiler when analyzing the definitions. value(): Specifies which directives are used with the annotated element. - [◇ CContext.Directives (interface in org.graalvm.nativeimage.c)](org/graalvm/nativeimage/c/CContext.Directives.md): Describes a C context. isInConfiguration(): This method is called immediately after the constructor, to check whether the context is part of the configuration or not. getHeaderFiles(): All header files used in this context. getMacroDefinitions(): Unparameterized macro-definitions. getOptions(): Returns options to be passed to the C compiler when processing the directives. getLibraries(): Returns a collection of libraries. getLibraryPaths(): Returns a list of library paths. - [@ CHeader (annotation interface in org.graalvm.nativeimage.c)](org/graalvm/nativeimage/c/CHeader.md): Defines the C header file for entry points enclosed by the annotated class or method. value(): Class that defines the header file properties. - [◇ CHeader.Header (interface in org.graalvm.nativeimage.c)](org/graalvm/nativeimage/c/CHeader.Header.md): Container for Header file properties. name(): Name of the header file. dependsOn(): List that contains the Class\ instances that declare dependencies of this header file. writePreamble(PrintWriter): Writes a preamble after the dependencies and before the list of included methods. - [▣ Package org.graalvm.nativeimage.c.constant](org/graalvm/nativeimage/c/constant/index.md): This package provides parts of the Java / C interface that are related to C constants. - [@ CConstant (annotation interface in org.graalvm.nativeimage.c.constant)](org/graalvm/nativeimage/c/constant/CConstant.md): Denotes a method as a C constant value. value(): Specifies the name of the C constant. - [◆ CConstant.ValueAccess (class in org.graalvm.nativeimage.c.constant)](org/graalvm/nativeimage/c/constant/CConstant.ValueAccess.md): Allows access to the value of a CConstant during image generation. get(Class, String, Class): Returns the value of a CConstant, i.e., the same value that calling the annotated method would return. Returns: The value of the C constant. get(Enum, String): Returns the value of a CEnum, i.e., the same value that calling the method annotated with CEnumValue would return. Returns: The value of the C constant. - [@ CEnum (annotation interface in org.graalvm.nativeimage.c.constant)](org/graalvm/nativeimage/c/constant/CEnum.md): Annotation to import a C enumeration to Java. value(): Specifies the name of the imported C enum type. addEnumKeyword(): Add the C enum keyword to the name specified in value(). - [@ CEnumConstant (annotation interface in org.graalvm.nativeimage.c.constant)](org/graalvm/nativeimage/c/constant/CEnumConstant.md): Provides additional properties for a field (i.e., an enumeration value) of Java enumeration annotated with CEnum. value(): Specifies the name of the imported C enum constant. includeInLookup(): Specifies whether the annotated enumeration value is returned by the lookup method annotated with CEnumLookup. - [@ CEnumLookup (annotation interface in org.graalvm.nativeimage.c.constant)](org/graalvm/nativeimage/c/constant/CEnumLookup.md): Annotation for a method that returns the Java enumeration object for a given C integer value. - [@ CEnumValue (annotation interface in org.graalvm.nativeimage.c.constant)](org/graalvm/nativeimage/c/constant/CEnumValue.md): Annotation for a method that returns the C integer value for a Java enumeration object. - [▣ Package org.graalvm.nativeimage.c.function](org/graalvm/nativeimage/c/function/index.md): This package provides parts of the Java / C interface that are related to C functions. - [@ CEntryPoint (annotation interface in org.graalvm.nativeimage.c.function)](org/graalvm/nativeimage/c/function/CEntryPoint.md): Annotates a method that is a VM entry point. name(): The symbol name to use for this entry point. documentation(): Method documentation to be included in the header file, as an array of lines. exceptionHandler(): Provides an exception handler for all exceptions that are not handled explicitly by the entry point method. builtin(): Specifies that the annotated entry point method is an alias for a built-in function as provided by the C API. include(): If the supplier returns true, this entry point is added automatically when building a shared library. publishAs(): Whether the entry point is part of the symbols and header files produced by N - [◆ CEntryPoint.AlwaysIncluded (class in org.graalvm.nativeimage.c.function)](org/graalvm/nativeimage/c/function/CEntryPoint.AlwaysIncluded.md): A BooleanSupplier that always returns true. getAsBoolean(): Returns true. - [≡ CEntryPoint.Builtin (enum class in org.graalvm.nativeimage.c.function)](org/graalvm/nativeimage/c/function/CEntryPoint.Builtin.md): The built-in methods which can be aliased. NO_BUILTIN: The annotated method is not an alias for a built-in method. CREATE_ISOLATE: The annotated method creates an isolate. ATTACH_THREAD: The annotated method attaches the current thread to an isolate. GET_CURRENT_THREAD: The annotated method returns the IsolateThread of the current thread in a specified Isolate. GET_ISOLATE: The annotated method returns the Isolate for an IsolateThread. DETACH_THREAD: The annotated method detaches the current thread, given as an IsolateThread, from an isolate. TEAR_DOWN_ISOLATE: The annotated method tears down the specified isolate. values(): Returns th - [◇ CEntryPoint.ExceptionHandler (interface in org.graalvm.nativeimage.c.function)](org/graalvm/nativeimage/c/function/CEntryPoint.ExceptionHandler.md): Marker interface for all exception handler classes. - [◆ CEntryPoint.FatalExceptionHandler (class in org.graalvm.nativeimage.c.function)](org/graalvm/nativeimage/c/function/CEntryPoint.FatalExceptionHandler.md): Special placeholder value for exceptionHandler() to print the caught exception and treat it as a fatal error. - [@ CEntryPoint.IsolateContext (annotation interface in org.graalvm.nativeimage.c.function)](org/graalvm/nativeimage/c/function/CEntryPoint.IsolateContext.md): Designates an Isolate parameter to use as the execution context. - [@ CEntryPoint.IsolateThreadContext (annotation interface in org.graalvm.nativeimage.c.function)](org/graalvm/nativeimage/c/function/CEntryPoint.IsolateThreadContext.md): Designates an IsolateThread parameter to use as the execution context. - [◆ CEntryPoint.NotIncludedAutomatically (class in org.graalvm.nativeimage.c.function)](org/graalvm/nativeimage/c/function/CEntryPoint.NotIncludedAutomatically.md): A BooleanSupplier that always returns false. getAsBoolean(): Returns false. - [≡ CEntryPoint.Publish (enum class in org.graalvm.nativeimage.c.function)](org/graalvm/nativeimage/c/function/CEntryPoint.Publish.md): NotPublished: Do not publish the entry point method. SymbolOnly: Create a symbol for the entry point method in the native image. SymbolAndHeader: Create a symbol for the entry point method in the native image, and if building a shared library image, also include a C declaration in the generated C header file. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [◆ CEntryPointLiteral (class in org.graalvm.nativeimage.c.function)](org/graalvm/nativeimage/c/function/CEntryPointLiteral.md): A function pointer to an entry point method that can be, for example, handed out to C code so that C code can call back into Java code. create(Class, String, Class...): Creates a new function pointer to an entry point. getFunctionPointer(): Returns the function pointer to the entry point. - [@ CFunction (annotation interface in org.graalvm.nativeimage.c.function)](org/graalvm/nativeimage/c/function/CFunction.md): Denotes a native method that calls directly from Java to C, without following the JNI protocol. value(): The symbol name to use to link this method. transition(): The Java-to-C thread transition code used when calling the function. - [≡ CFunction.Transition (enum class in org.graalvm.nativeimage.c.function)](org/graalvm/nativeimage/c/function/CFunction.Transition.md): Describes the thread state transition performed when the C function is invoked. TO_NATIVE: The thread state is transitioned from Java to C, and the Java parts of the stack are made walkable. NO_TRANSITION: No prologue and epilogue is emitted. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [◇ CFunctionPointer (interface in org.graalvm.nativeimage.c.function)](org/graalvm/nativeimage/c/function/CFunctionPointer.md): Base interface for all function pointers. - [@ CLibrary (annotation interface in org.graalvm.nativeimage.c.function)](org/graalvm/nativeimage/c/function/CLibrary.md): Denotes an external library that needs to be linked in. value(): The name of the library without a file extension (e.g., "hello"). requireStatic(): Specifies if static linking is required. dependsOn(): Specifies the name of the libraries this library depends on. - [@ CMacroInfo (annotation interface in org.graalvm.nativeimage.c.function)](org/graalvm/nativeimage/c/function/CMacroInfo.md): Informational only. value(): Specifies the name of the C macro the annotated method corresponds to. - [◇ CodePointer (interface in org.graalvm.nativeimage.c.function)](org/graalvm/nativeimage/c/function/CodePointer.md): Pointer to executable code. - [@ InvokeCFunctionPointer (annotation interface in org.graalvm.nativeimage.c.function)](org/graalvm/nativeimage/c/function/InvokeCFunctionPointer.md): Annotation for an invocation method defined in a sub-interface of CFunctionPointer. transition(): The Java-to-C thread transition code used when calling the function. - [◇ RelocatedPointer (interface in org.graalvm.nativeimage.c.function)](org/graalvm/nativeimage/c/function/RelocatedPointer.md): A pointer which is relocated when the native image is loaded at runtime. - [▣ Package org.graalvm.nativeimage.c.struct](org/graalvm/nativeimage/c/struct/index.md): This package provides parts of the Java / C interface that are related to C structures. - [@ AllowNarrowingCast (annotation interface in org.graalvm.nativeimage.c.struct)](org/graalvm/nativeimage/c/struct/AllowNarrowingCast.md): Allows a method annotated with CField to have a value type that is narrower (smaller number of bits) than the C type. - [@ AllowWideningCast (annotation interface in org.graalvm.nativeimage.c.struct)](org/graalvm/nativeimage/c/struct/AllowWideningCast.md): Allows a method annotated with CField to have a value type that is wider (larger number of bits) than the C type. - [@ CBitfield (annotation interface in org.graalvm.nativeimage.c.struct)](org/graalvm/nativeimage/c/struct/CBitfield.md): Denotes a method as a bitfield access of a C struct. value(): Specifies the field name inside the C struct. - [@ CField (annotation interface in org.graalvm.nativeimage.c.struct)](org/graalvm/nativeimage/c/struct/CField.md): Denotes a method as a field access of a C struct. value(): Specifies the field name inside the C struct. - [@ CFieldAddress (annotation interface in org.graalvm.nativeimage.c.struct)](org/graalvm/nativeimage/c/struct/CFieldAddress.md): Denotes a method as a field address computation of a C struct. value(): Specifies the field name inside the C struct. - [@ CFieldOffset (annotation interface in org.graalvm.nativeimage.c.struct)](org/graalvm/nativeimage/c/struct/CFieldOffset.md): Denotes a method as a field offset access of a C struct. value(): Specifies the field name inside the C struct. - [@ CPointerTo (annotation interface in org.graalvm.nativeimage.c.struct)](org/graalvm/nativeimage/c/struct/CPointerTo.md): Denotes Java interface that imports a C pointer type. value(): The value type, as a reference to a Java interface that is either annotated with CStruct or CPointerTo. nameOfCType(): The value type, as C type name. - [@ CStruct (annotation interface in org.graalvm.nativeimage.c.struct)](org/graalvm/nativeimage/c/struct/CStruct.md): Denotes Java interface that imports a C struct. value(): Specifies the name of the imported C struct type. isIncomplete(): If marked as incomplete, we will not try to determine the size of the struct. addStructKeyword(): Add the C "struct" keyword to the name specified in value(). - [@ CTypedefOfInfo (annotation interface in org.graalvm.nativeimage.c.struct)](org/graalvm/nativeimage/c/struct/CTypedefOfInfo.md): Informational only. value(): Specifies the base type the C type of this annotated C interface class is a typedef of. - [@ RawField (annotation interface in org.graalvm.nativeimage.c.struct)](org/graalvm/nativeimage/c/struct/RawField.md): Denotes a method as a field access of a structured C memory. - [@ RawFieldAddress (annotation interface in org.graalvm.nativeimage.c.struct)](org/graalvm/nativeimage/c/struct/RawFieldAddress.md): Denotes a method as a field address computation of a RawStructure. - [@ RawFieldOffset (annotation interface in org.graalvm.nativeimage.c.struct)](org/graalvm/nativeimage/c/struct/RawFieldOffset.md): Denotes a method as a field offset access of a RawStructure. - [@ RawPointerTo (annotation interface in org.graalvm.nativeimage.c.struct)](org/graalvm/nativeimage/c/struct/RawPointerTo.md): Denotes a Java interface that is a pointer to a RawStructure. value(): The value type, as a reference to a Java interface that is annotated with RawStructure or RawPointerTo. - [@ RawStructure (annotation interface in org.graalvm.nativeimage.c.struct)](org/graalvm/nativeimage/c/struct/RawStructure.md): Denotes Java interface that represents C memory, but without a C struct definition. sizeProvider(): Class of a function that computes the size of the structure. - [◆ SizeOf (class in org.graalvm.nativeimage.c.struct)](org/graalvm/nativeimage/c/struct/SizeOf.md): Contains static methods that provide access to the size of dereferenced SystemJava pointer types (i.e. get(Class): Returns the size of the data structure pointed to by SystemJava pointer types. unsigned(Class): Returns the size cast to UnsignedWord. - [@ UniqueLocationIdentity (annotation interface in org.graalvm.nativeimage.c.struct)](org/graalvm/nativeimage/c/struct/UniqueLocationIdentity.md): A CField also annotated with this annotation gets a unique LocationIdentity assigned, i.e., reads and writes do not interfere with reads and writes to any other field and are optimized without regarding other fields. - [▣ Package org.graalvm.nativeimage.c.type](org/graalvm/nativeimage/c/type/index.md): This package provides parts of the Java / C interface that are related to standard C pointer types, as well as utility functions to convert between Java types and C types. - [◇ CCharPointer (interface in org.graalvm.nativeimage.c.type)](org/graalvm/nativeimage/c/type/CCharPointer.md): A pointer to a 8-bit C primitive value. read(): Reads the value at the pointer address. read(int): Reads the value of the array element with the specified index, treating the pointer as an array of the C type. read(SignedWord): Reads the value of the array element with the specified index, treating the pointer as an array of the C type. write(byte): Writes the value at the pointer address. write(int, byte): Writes the value of the array element with the specified index, treating the pointer as an array of the C type. write(SignedWord, byte): Writes the value of the array element with the specified index, treating the pointer as an a - [◇ CCharPointerPointer (interface in org.graalvm.nativeimage.c.type)](org/graalvm/nativeimage/c/type/CCharPointerPointer.md): A pointer to a pointer to a 8-bit C primitive value. read(): Reads the value at the pointer address. read(int): Reads the value of the array element with the specified index, treating the pointer as an array of the C type. read(SignedWord): Reads the value of the array element with the specified index, treating the pointer as an array of the C type. write(CCharPointer): Writes the value at the pointer address. write(int, CCharPointer): Writes the value of the array element with the specified index, treating the pointer as an array of the C type. write(SignedWord, CCharPointer): Writes the value of the array element with the specified index, trea - [@ CConst (annotation interface in org.graalvm.nativeimage.c.type)](org/graalvm/nativeimage/c/type/CConst.md): Qualifies a C type as const in an entry-point method signature. - [◇ CDoublePointer (interface in org.graalvm.nativeimage.c.type)](org/graalvm/nativeimage/c/type/CDoublePointer.md): A pointer to a C primitive 'double' value. read(): Reads the value at the pointer address. read(int): Reads the value of the array element with the specified index, treating the pointer as an array of the C type. read(SignedWord): Reads the value of the array element with the specified index, treating the pointer as an array of the C type. write(double): Writes the value at the pointer address. write(int, double): Writes the value of the array element with the specified index, treating the pointer as an array of the C type. write(SignedWord, double): Writes the value of the array element with the specified index, treating the pointer a - [◇ CFloatPointer (interface in org.graalvm.nativeimage.c.type)](org/graalvm/nativeimage/c/type/CFloatPointer.md): A pointer to a C primitive 'float' value. read(): Reads the value at the pointer address. read(int): Reads the value of the array element with the specified index, treating the pointer as an array of the C type. read(SignedWord): Reads the value of the array element with the specified index, treating the pointer as an array of the C type. write(float): Writes the value at the pointer address. write(int, float): Writes the value of the array element with the specified index, treating the pointer as an array of the C type. write(SignedWord, float): Writes the value of the array element with the specified index, treating the pointer as a - [◇ CIntPointer (interface in org.graalvm.nativeimage.c.type)](org/graalvm/nativeimage/c/type/CIntPointer.md): A pointer to a 32-bit C primitive value. read(): Reads the value at the pointer address. read(int): Reads the value of the array element with the specified index, treating the pointer as an array of the C type. read(SignedWord): Reads the value of the array element with the specified index, treating the pointer as an array of the C type. write(int): Writes the value at the pointer address. write(int, int): Writes the value of the array element with the specified index, treating the pointer as an array of the C type. write(SignedWord, int): Writes the value of the array element with the specified index, treating the pointer as an arra - [◇ CIntPointerPointer (interface in org.graalvm.nativeimage.c.type)](org/graalvm/nativeimage/c/type/CIntPointerPointer.md): A pointer to a pointer to a 32-bit C primitive value. read(): Reads the value at the pointer address. read(int): Reads the value of the array element with the specified index, treating the pointer as an array of the C type. read(SignedWord): Reads the value of the array element with the specified index, treating the pointer as an array of the C type. write(CIntPointer): Writes the value at the pointer address. write(int, CIntPointer): Writes the value of the array element with the specified index, treating the pointer as an array of the C type. write(SignedWord, CIntPointer): Writes the value of the array element with the specified index, treatin - [◇ CLongPointer (interface in org.graalvm.nativeimage.c.type)](org/graalvm/nativeimage/c/type/CLongPointer.md): A pointer to a 64-bit C primitive value. read(): Reads the value at the pointer address. read(int): Reads the value of the array element with the specified index, treating the pointer as an array of the C type. read(SignedWord): Reads the value of the array element with the specified index, treating the pointer as an array of the C type. write(long): Writes the value at the pointer address. write(int, long): Writes the value of the array element with the specified index, treating the pointer as an array of the C type. write(SignedWord, long): Writes the value of the array element with the specified index, treating the pointer as an a - [◇ CShortPointer (interface in org.graalvm.nativeimage.c.type)](org/graalvm/nativeimage/c/type/CShortPointer.md): A pointer to a 16-bit C primitive value. read(): Reads the value at the pointer address. read(int): Reads the value of the array element with the specified index, treating the pointer as an array of the C type. read(SignedWord): Reads the value of the array element with the specified index, treating the pointer as an array of the C type. write(short): Writes the value at the pointer address. write(int, short): Writes the value of the array element with the specified index, treating the pointer as an array of the C type. write(SignedWord, short): Writes the value of the array element with the specified index, treating the pointer as a - [◆ CTypeConversion (class in org.graalvm.nativeimage.c.type)](org/graalvm/nativeimage/c/type/CTypeConversion.md): Utility methods to convert between Java types and C types. toCString(CharSequence): Provides access to a C pointer for the provided Java String, encoded with the default charset. toCString(CharSequence, CCharPointer, UnsignedWord): Copies the javaString into the buffer as a 0 terminated C string encoded with the default character set. Returns: the byte-sized length of the javaString when represen toCString(CharSequence, Charset, …): Copies the javaString into the buffer as a 0 terminated C string encoded with the charset character set. Returns: the byte-sized length of the javaString when represented as C string toJavaString(CCharPointer): Decodes a - [◇ CTypeConversion.CCharPointerHolder (interface in org.graalvm.nativeimage.c.type)](org/graalvm/nativeimage/c/type/CTypeConversion.CCharPointerHolder.md): An auto-closable that holds a Java CharSequence as a null-terminated C char\[\] array. get(): Returns the C pointer to the null-terminated C char\[\] array. close(): Discards the C pointer. - [◆ CTypeConversion.CCharPointerPointerHolder (abstract class in org.graalvm.nativeimage.c.type)](org/graalvm/nativeimage/c/type/CTypeConversion.CCharPointerPointerHolder.md): An auto-closable that holds a Java CharSequence\[\] array as a null-terminated array of null-terminated C char\[\]s. get(): Returns the C pointer to pointers of null-terminated C char\[\] arrays. close(): Discards the C pointer. - [@ CTypedef (annotation interface in org.graalvm.nativeimage.c.type)](org/graalvm/nativeimage/c/type/CTypedef.md): Defines a name for C type to be used in an entry-point method signature. name(): Name to be used for this C type. - [@ CUnsigned (annotation interface in org.graalvm.nativeimage.c.type)](org/graalvm/nativeimage/c/type/CUnsigned.md): Qualifies a C integer type as unsigned in an entry-point method signature. - [◇ VoidPointer (interface in org.graalvm.nativeimage.c.type)](org/graalvm/nativeimage/c/type/VoidPointer.md): A void* pointer to an opaque C value of an unknown type, without any methods to read or write. - [◇ WordPointer (interface in org.graalvm.nativeimage.c.type)](org/graalvm/nativeimage/c/type/WordPointer.md): A untyped C pointer to any machine-word-sized value, e.g., a pointer to another pointer or a pointer to a UnsignedWord or SignedWord value. read(): Reads the value at the pointer address. read(int): Reads the value of the array element with the specified index, treating the pointer as an array of the C type. read(SignedWord): Reads the value of the array element with the specified index, treating the pointer as an array of the C type. write(WordBase): Writes the value at the pointer address. write(int, WordBase): Writes the value of the array element with the specified index, treating the pointer as an array of the C type. write(SignedWord, WordBase): Writes the value of the array element with the specified index, treating the poi - [▣ Package org.graalvm.nativeimage.dynamicaccess](org/graalvm/nativeimage/dynamicaccess/index.md): APIs for registering metadata for dynamic access at run time in Native Image: org.graalvm.nativeimage.dynamicaccess.ReflectiveAccess for reflection and serialization.org.graalvm.nativeimage.dynamicaccess.ResourceAccess for resources.org.graalvm.nativeimage.dynamicaccess.JNIAccess for Java Native Interface (JNI) access.org.graalvm.nativeimage.dynamicaccess.ForeignAccess for foreign function access. Obtain these APIs through org.graalvm.nativeimage.hosted.Feature.AfterRegistrationAccess during org.graalvm.nativeimage.hosted.Feature.afterRegistration. - [◇ AccessCondition (interface in org.graalvm.nativeimage.dynamicaccess)](org/graalvm/nativeimage/dynamicaccess/AccessCondition.md): A condition that must be satisfied to register elements for dynamic access (i.e., reflection, serialization, JNI access, resource access, and foreign access at run time). unconditional(): Returns a condition that is always satisfied. Returns: instance of the condition typeReached(Class): Creates the typeReached condition that is satisfied when the type is reached at run time. Returns: instance of the condition - [◇ ForeignAccess (interface in org.graalvm.nativeimage.dynamicaccess)](org/graalvm/nativeimage/dynamicaccess/ForeignAccess.md): This interface is used to register classes, methods, and fields for foreign access at run time. registerForDowncall(AccessCondition, Object, Object...): Registers the provided function descriptor and options pair at image build time for downcalls into foreign code, if the condition is satisfied. registerForUpcall(AccessCondition, Object, Object...): Registers the provided function descriptor and options pair at image build time for upcalls from foreign code, if the condition is satisfied. registerForDirectUpcall(AccessCondition, MethodHandle, …): Registers a specific static method (denoted by a method handle) as a fast upcall target, if the condition is satisfied. - [◇ JNIAccess (interface in org.graalvm.nativeimage.dynamicaccess)](org/graalvm/nativeimage/dynamicaccess/JNIAccess.md): This interface is used to register classes, methods, and fields for JNI access at runtime. register(AccessCondition, Class...): Registers the provided classes for JNI access at run time, if the condition is satisfied. register(AccessCondition, Executable...): Registers the provided methods for JNI access at run time, if the condition is satisfied. register(AccessCondition, Field...): Registers the provided fields for JNI access at run time, if the condition is satisfied. - [◇ ReflectiveAccess (interface in org.graalvm.nativeimage.dynamicaccess)](org/graalvm/nativeimage/dynamicaccess/ReflectiveAccess.md): This interface is used to register classes, methods, and fields for use with the java.lang.reflect API at run time, and for serialization at run time. register(AccessCondition, Class...): Registers the provided classes for reflection at run time, if the condition is satisfied. register(AccessCondition, Executable...): Registers the provided executables (methods and constructors) for reflective invocation at run time, if the condition is satisfied. register(AccessCondition, Field...): Registers the provided fields for reflective access at run time, if the condition is satisfied. registerForSerialization(AccessCondition, Class...): Registers the provided classes for serialization at run time, if the condition is satisfied. registerProxy(Access - [◇ ResourceAccess (interface in org.graalvm.nativeimage.dynamicaccess)](org/graalvm/nativeimage/dynamicaccess/ResourceAccess.md): This interface is used to register Java resources and java.util.ResourceBundles that should be accessible at run time. register(AccessCondition, Module, String): Registers resources matching the specified glob in the provided module for run-time access, if the condition is satisfied. register(AccessCondition, String): Registers resources matching the specified glob from the classpath for run-time access, if the condition is satisfied. registerResourceBundle(AccessCondition, ResourceBundle...): Registers the provided java.util.ResourceBundles for run-time access, if the condition is satisfied. - [▣ Package org.graalvm.nativeimage.hosted](org/graalvm/nativeimage/hosted/index.md): The GraalVM SDK Native Image API allows to customize the native image generation, i.e., the ahead-of-time compilation of Java code to standalone executables: org.graalvm.nativeimage.hosted.Features allow clients to intercept the native image generation and run custom initialization code at various stages.org.graalvm.nativeimage.hosted.RuntimeClassInitialization is used to configure when classes are initialized.org.graalvm.nativeimage.hosted.RuntimeReflection to register classes, methods, and fields for reflection at run time. - [◇ Feature (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.md): Features allow clients to intercept the native image generation and run custom initialization code at various stages. getURL(): A URL to documentation or the sources of the feature. getDescription(): A short description of the feature (e.g., "Enables Truffle support"). isInConfiguration(Feature.IsInConfigurationAccess): This method is called immediately after the constructor, to check whether the feature is part of the configuration or not. getRequiredFeatures(): Returns the list of features that this feature depends on. onRegistration(Feature.OnRegistrationAccess): Handler for initialization that must happen as soon as this feature is registered, before its required features are processed. afterRegistration( - [◇ Feature.AfterAnalysisAccess (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.AfterAnalysisAccess.md): Access methods available for Feature.afterAnalysis. - [◇ Feature.AfterCompilationAccess (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.AfterCompilationAccess.md): Access methods available for Feature.afterCompilation. - [◇ Feature.AfterHeapLayoutAccess (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.AfterHeapLayoutAccess.md): Access methods available for Feature.afterHeapLayout. - [◇ Feature.AfterImageWriteAccess (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.AfterImageWriteAccess.md): Access methods available for Feature.afterImageWrite. getImagePath(): Returns the path to the created native-image file (includes the native-image file name). - [◇ Feature.AfterRegistrationAccess (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.AfterRegistrationAccess.md): Access methods available for Feature.afterRegistration. getReflectiveAccess(): Returns the instance of RuntimeReflection used to register elements for reflection at run time. getResourceAccess(): Returns the instance of RuntimeResourceAccess used to register resources for run time access. getJNIAccess(): Returns the instance of RuntimeJNIAccess used to register elements for JNI access at run time. getForeignAccess(): Returns the instance of RuntimeForeignAccess used to register elements for foreign access at run time. - [◇ Feature.BeforeAnalysisAccess (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.BeforeAnalysisAccess.md): Access methods available for Feature.beforeAnalysis. registerAsUsed(Class): Registers the provided type a used, i.e., metadata for the type is put into the native image. registerAsInHeap(Class): Registers the provided type as instantiated, i.e., the static analysis assumes that instances of this type exist at run time even if there is no explicit instantiation in the bytecodes. registerAsUnsafeAllocated(Class): Registers the provided type as allocatable without running a constructor, via Unsafe.allocateInstance or via the JNI function AllocObject. registerAsAccessed(Field): Registers the provided field as accesses, i.e., the static analysis assu - [◇ Feature.BeforeCompilationAccess (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.BeforeCompilationAccess.md): Access methods available for Feature.beforeCompilation. - [◇ Feature.BeforeHeapLayoutAccess (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.BeforeHeapLayoutAccess.md): Access methods available for Feature.beforeHeapLayout. - [◇ Feature.BeforeImageWriteAccess (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.BeforeImageWriteAccess.md): Access methods available for Feature.beforeImageWrite. - [◇ Feature.BeforeUniverseBuildingAccess (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.BeforeUniverseBuildingAccess.md): Access methods available for Feature.beforeUniverseBuilding. - [◇ Feature.CompilationAccess (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.CompilationAccess.md): Access methods available for Feature.beforeCompilation and Feature.afterCompilation. objectFieldOffset(Field): Returns the field offset of the provided instance field. registerAsImmutable(Object): Hint to the native image generator that the given object is immutable at runtime, i.e., can be placed in a read-only section of the native image heap. registerAsImmutable(Object, Predicate): Register the object, and everything it transitively references, as immutable. - [◇ Feature.DuringAnalysisAccess (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.DuringAnalysisAccess.md): Access methods available for Feature.duringAnalysis. requireAnalysisIteration(): Notifies the static analysis that changes are made that enforce a new iteration of the analysis. - [◇ Feature.DuringSetupAccess (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.DuringSetupAccess.md): Access methods available for Feature.duringSetup. registerObjectReplacer(Function): Registers the provided function to replace objects. registerObjectReachabilityHandler(Consumer, Class): Register a callback that is executed when an object of type clazz, or any of its subtypes, is marked as reachable during heap scanning. registerBuildTimeBootstrapIndy(Executable): Registers a method that is allowed to be executed at build time if called as the bootstrap method for an invokedynamic, in which case each call site outputted will be constant- registerBuildTimeBootstrapCondy(Executable): Registers a method that is allowed to be executed at build t - [◇ Feature.FeatureAccess (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.FeatureAccess.md): Access methods that are available for all feature methods. findClassByName(String): Returns a class if it is present on the classpath. getApplicationClassPath(): Returns the class path of the native image that is currently built. getApplicationModulePath(): Returns the module path of the native image that is currently built. getApplicationClassLoader(): Returns the ClassLoader that can find all classes of the class path and module path. - [◇ Feature.IsInConfigurationAccess (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.IsInConfigurationAccess.md): Access methods available for Feature.isInConfiguration. - [◇ Feature.OnAnalysisExitAccess (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.OnAnalysisExitAccess.md): Access methods available for Feature.onAnalysisExit. - [◇ Feature.OnRegistrationAccess (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.OnRegistrationAccess.md): Access methods available for Feature.onRegistration. - [◇ Feature.QueryReachabilityAccess (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/Feature.QueryReachabilityAccess.md): Access reachability methods available for Feature.afterAnalysis and Feature.duringAnalysis. isReachable(Class): Returns true if the static analysis determined that the provided class is reachable at run time. isReachable(Field): Returns true if the static analysis determined that the provided field is reachable at run time. isReachable(Executable): Returns true if the static analysis determined that the provided method is reachable at run time. reachableSubtypes(Class): Returns all subtypes of the given {param baseClass} that the static analysis determined to be reachable at run time (including the {param baseClass} itself). reachableMethodOverrides(Executable): Returns all method ov - [◇ FieldValueTransformer (interface in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/FieldValueTransformer.md): A transformer for a field value that can be registered using BeforeAnalysisAccess.registerFieldValueTransformer. transform(Object, Object): Transforms the field value for the provided receiver. isAvailable(): Returns true when the value for this custom computation is available. - [◆ RuntimeClassInitialization (class in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/RuntimeClassInitialization.md): This class provides methods that can be called during native-image building to configure class initialization behavior. initializeAtRunTime(Class...): Registers the provided classes, and all of their subclasses, for class initialization at runtime. initializeAtBuildTime(Class...): Registers the provided classes as eagerly initialized during image-build time. initializeAtRunTime(String...): Registers all classes in provided packages, and all of their subclasses, for class initialization at runtime. initializeAtBuildTime(String...): Registers all classes in provided packages as eagerly initialized during image-build time. - [◆ RuntimeForeignAccess (class in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/RuntimeForeignAccess.md): registerForDowncall(Object, Object...): Registers the provided function descriptor and options pair at image build time for downcalls into foreign code. registerForUpcall(Object, Object...): Registers the provided function descriptor and options pair at image build time for upcalls from foreign code. registerForDirectUpcall(MethodHandle, Object, Object...): Registers a specific static method (denoted by a method handle) as a fast upcall target. - [◆ RuntimeJNIAccess (class in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/RuntimeJNIAccess.md): This class provides methods that can be called during native image generation to register classes, methods, and fields for JNI access at run time. register(Class...): Makes the provided classes available for JNI access at run time. register(Executable...): Makes the provided methods available for JNI access at run time. register(Field...): Makes the provided fields available for JNI access at run time. - [◆ RuntimeProxyCreation (class in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/RuntimeProxyCreation.md): This class can be used to make creating dynamic proxy classes at run time valid. register(Class...): Enables registering specifications of java.lang.reflect.Proxy classes during the image build so that matching proxy objects can be created at runtime. - [◆ RuntimeReflection (class in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/RuntimeReflection.md): This class provides methods that can be called during native image generation to register classes, methods, and fields for reflection at run time. register(Class...): Makes the provided classes available for reflection at run time. registerClassLookup(String): Makes the provided class available for reflection at run time. register(Executable...): Makes the provided methods available for reflection at run time. registerAsQueried(Executable...): Makes the provided methods available for reflection queries at run time. registerMethodLookup(Class, String, Class...): Makes the provided method available for reflection queries at run time. registerConstructorLookup(Class, Class...): Makes the provided constructor available for reflection queries - [◆ RuntimeResourceAccess (class in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/RuntimeResourceAccess.md): This class can be used to register Java resources and ResourceBundles that should be accessible at run time. addResource(Module, String): Make Java resource resourcePath from module available at run time. addResource(Module, String, byte\[\]): Inject a Java resource at resourcePath in module with the specified resourceContent. addResourceBundle(Module, String, Locale\[\]): Make Java ResourceBundle that is specified by a baseBundleName and locales from module module available at run time. addResourceBundle(Module, String): Make Java ResourceBundle that is specified by a bundleName from module module available at run time. - [◆ RuntimeSerialization (class in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/RuntimeSerialization.md): This class provides methods that can be called before and during analysis, to register classes for serialization at image runtime. registerIncludingAssociatedClasses(Class): Register the specified serialization target class itself and all associated classes. register(Class...): Makes the provided classes available for serialization at runtime. registerWithTargetConstructorClass(Class, Class): Deprecated. Use register(Class\[\]) instead. All possible custom constructors will be registered automatically. Makes the provided class available for serialization at runt registerLambdaCapturingClass(Class): Makes a class available for serialization at runtime that is created for the lambda expressions (a class that has a $deserializ - [◆ RuntimeSystemProperties (class in org.graalvm.nativeimage.hosted)](org/graalvm/nativeimage/hosted/RuntimeSystemProperties.md): This class provides methods that can be called during native image generation to define system property setting for image runtime. register(String, String): Define a system property setting for image runtime. ## Indexes - [Packages](packages.md): every package with its summary and type counts - [All types](types.md): every type, nested ones too, by name - [Index](index-all.md): every declaration from A to Z - [Deprecated](deprecated.md): everything deprecated, for removal first