# ⬢ truffle-nfi 25.6.0-elide.4 Every page: [llms.txt](llms.txt), or all in one file: [llms-full.txt](llms-full.txt) API reference for truffle-nfi. ## Packages - [`com.oracle.truffle.nfi`](com/oracle/truffle/nfi/index.md): No description. - [`com.oracle.truffle.nfi.api`](com/oracle/truffle/nfi/api/index.md): No description. - [`com.oracle.truffle.nfi.backend.spi`](com/oracle/truffle/nfi/backend/spi/index.md): No description. - [`com.oracle.truffle.nfi.backend.spi.types`](com/oracle/truffle/nfi/backend/spi/types/index.md): No description. - [`com.oracle.truffle.nfi.backend.spi.util`](com/oracle/truffle/nfi/backend/spi/util/index.md): No description. ## Types in `com.oracle.truffle.nfi` - [`NFILanguage`](com/oracle/truffle/nfi/NFILanguage.md) (class): No description. - [`NFILanguageProvider`](com/oracle/truffle/nfi/NFILanguageProvider.md) (class): No description. - [`NFIPointerGen`](com/oracle/truffle/nfi/NFIPointerGen.md) (class): No description. - [`NFIPointerGen.NativePointerLibraryEagerProvider`](com/oracle/truffle/nfi/NFIPointerGen.NativePointerLibraryEagerProvider.md) (class): No description. - [`NFISignatureGen`](com/oracle/truffle/nfi/NFISignatureGen.md) (class): No description. - [`NFISignatureGen.SignatureLibraryEagerProvider`](com/oracle/truffle/nfi/NFISignatureGen.SignatureLibraryEagerProvider.md) (class): No description. - [`NFISymbolGen`](com/oracle/truffle/nfi/NFISymbolGen.md) (class): No description. - [`NFISymbolGen.NativePointerLibraryEagerProvider`](com/oracle/truffle/nfi/NFISymbolGen.NativePointerLibraryEagerProvider.md) (class): No description. ## Types in `com.oracle.truffle.nfi.api` - [`LongNativePointerLibraryGen`](com/oracle/truffle/nfi/api/LongNativePointerLibraryGen.md) (class): No description. - [`LongNativePointerLibraryGen.NativePointerLibraryEagerProvider`](com/oracle/truffle/nfi/api/LongNativePointerLibraryGen.NativePointerLibraryEagerProvider.md) (class): No description. - [`NativePointerLibrary`](com/oracle/truffle/nfi/api/NativePointerLibrary.md) (abstract class): This library contains a subset of com.oracle.truffle.api.interop.InteropLibrary messages exported by some NFI objects. - [`SerializableLibrary`](com/oracle/truffle/nfi/api/SerializableLibrary.md) (abstract class): No description. - [`SignatureLibrary`](com/oracle/truffle/nfi/api/SignatureLibrary.md) (abstract class): No description. ## Types in `com.oracle.truffle.nfi.backend.spi` - [`BackendNativePointerLibrary`](com/oracle/truffle/nfi/backend/spi/BackendNativePointerLibrary.md) (abstract class): No description. - [`NFIBackend`](com/oracle/truffle/nfi/backend/spi/NFIBackend.md) (interface): Implementation interface for Truffle NFI backends. - [`NFIBackendFactory`](com/oracle/truffle/nfi/backend/spi/NFIBackendFactory.md) (interface): Service interface for languages that implement a backend for the Truffle NFI. - [`NFIBackendLibrary`](com/oracle/truffle/nfi/backend/spi/NFIBackendLibrary.md) (abstract class): No description. - [`NFIBackendSignatureBuilderLibrary`](com/oracle/truffle/nfi/backend/spi/NFIBackendSignatureBuilderLibrary.md) (abstract class): No description. - [`NFIBackendSignatureLibrary`](com/oracle/truffle/nfi/backend/spi/NFIBackendSignatureLibrary.md) (abstract class): Library that specifies the protocol between the Truffle NFI and its backend implementations. - [`NFIState`](com/oracle/truffle/nfi/backend/spi/NFIState.md) (class): Thread-local state of the NFI that is shared between different backends. ## Types in `com.oracle.truffle.nfi.backend.spi.types` - [`NativeLibraryDescriptor`](com/oracle/truffle/nfi/backend/spi/types/NativeLibraryDescriptor.md) (class): Parsed representation of library descriptors of the Truffle NFI. - [`NativeSimpleType`](com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.md) (enum class): No description. - [`TypeFactory`](com/oracle/truffle/nfi/backend/spi/types/TypeFactory.md) (abstract class): No description. ## Types in `com.oracle.truffle.nfi.backend.spi.util` - [`ProfiledArrayBuilder`](com/oracle/truffle/nfi/backend/spi/util/ProfiledArrayBuilder.md) (class): No description. - [`ProfiledArrayBuilder.ArrayBuilderFactory`](com/oracle/truffle/nfi/backend/spi/util/ProfiledArrayBuilder.ArrayBuilderFactory.md) (abstract class): No description. - [`ProfiledArrayBuilder.ArrayFactory`](com/oracle/truffle/nfi/backend/spi/util/ProfiledArrayBuilder.ArrayFactory.md) (interface): No description. # ▣ com.oracle.truffle.nfi [truffle-nfi](index.md) · Every page: [llms.txt](llms.txt) Package in truffle-nfi. ## Classes - [`NFILanguage`](com/oracle/truffle/nfi/NFILanguage.md): No description. - [`NFILanguageProvider`](com/oracle/truffle/nfi/NFILanguageProvider.md): No description. - [`NFIPointerGen`](com/oracle/truffle/nfi/NFIPointerGen.md): No description. - [`NFISignatureGen`](com/oracle/truffle/nfi/NFISignatureGen.md): No description. - [`NFISymbolGen`](com/oracle/truffle/nfi/NFISymbolGen.md): No description. # ◆ NFILanguage [truffle-nfi](index.md) › [com.oracle.truffle.nfi](com/oracle/truffle/nfi/index.md) · Every page: [llms.txt](llms.txt) Class in [`com.oracle.truffle.nfi`](com/oracle/truffle/nfi/index.md). ```java public class NFILanguage extends TruffleLanguage ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > [`TruffleLanguage`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html) > `NFILanguage` ## Fields ### MIME_TYPE `public static final String MIME_TYPE`. Constant value: `"application/x-native"`. Cite: `com/oracle/truffle/nfi/NFILanguage.html#MIME_TYPE` ## Constructors ### NFILanguage() `public NFILanguage()`. Declared by the compiler. Creates a new NFILanguage instance. Cite: `com/oracle/truffle/nfi/NFILanguage.html#()` ## Methods ### setPendingException(Throwable) `protected void setPendingException(Throwable pendingException)`. Cite: `com/oracle/truffle/nfi/NFILanguage.html#setPendingException(java.lang.Throwable)` ### rethrowPendingException() `protected void rethrowPendingException()`. Cite: `com/oracle/truffle/nfi/NFILanguage.html#rethrowPendingException()` ### createContext(TruffleLanguage.Env) `protected NFIContext createContext(TruffleLanguage.Env env)`. Overrides `createContext(com.oracle.truffle.api.TruffleLanguage.Env)`. Cite: `com/oracle/truffle/nfi/NFILanguage.html#createContext(com.oracle.truffle.api.TruffleLanguage.Env)` ### patchContext(NFIContext, TruffleLanguage.Env) `protected boolean patchContext(NFIContext context, TruffleLanguage.Env newEnv)`. Overrides `patchContext(C,com.oracle.truffle.api.TruffleLanguage.Env)`. Cite: `com/oracle/truffle/nfi/NFILanguage.html#patchContext(com.oracle.truffle.nfi.NFIContext,com.oracle.truffle.api.TruffleLanguage.Env)` ### initializeMultipleContexts() `protected void initializeMultipleContexts()`. Overrides `initializeMultipleContexts()`. Cite: `com/oracle/truffle/nfi/NFILanguage.html#initializeMultipleContexts()` ### parse(TruffleLanguage.ParsingRequest) `protected CallTarget parse(TruffleLanguage.ParsingRequest request) throws Exception`. Overrides `parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)`. Cite: `com/oracle/truffle/nfi/NFILanguage.html#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)` ### isThreadAccessAllowed(Thread, boolean) `protected boolean isThreadAccessAllowed(Thread thread, boolean singleThreaded)`. Overrides `isThreadAccessAllowed(java.lang.Thread,boolean)`. Cite: `com/oracle/truffle/nfi/NFILanguage.html#isThreadAccessAllowed(java.lang.Thread,boolean)` ### disposeThread(NFIContext, Thread) `protected void disposeThread(NFIContext context, Thread thread)`. Overrides `disposeThread(C,java.lang.Thread)`. Cite: `com/oracle/truffle/nfi/NFILanguage.html#disposeThread(com.oracle.truffle.nfi.NFIContext,java.lang.Thread)` ## Inherited members - From class [`TruffleLanguage`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html): [`areOptionsCompatible`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#areOptionsCompatible%28org.graalvm.options.OptionValues,org.graalvm.options.OptionValues%29), [`createContextLocal`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#createContextLocal%28com.oracle.truffle.api.TruffleLanguage.ContextLocalFactory%29), [`createContextThreadLocal`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#createContextThreadLocal%28com.oracle.truffle.api.TruffleLanguage.ContextThreadLocalFactory%29), [`disposeContext`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#disposeContext%28C%29), [`exitContext`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#exitContext%28C,com.oracle.truffle.api.TruffleLanguage.ExitMode,int%29), [`finalizeContext`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#finalizeContext%28C%29), [`finalizeThread`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#finalizeThread%28C,java.lang.Thread%29), [`getAsynchronousStackDepth`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#getAsynchronousStackDepth%28%29), [`getLanguageHome`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#getLanguageHome%28%29), [`getLanguageView`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#getLanguageView%28C,java.lang.Object%29), [`getOptionDescriptors`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#getOptionDescriptors%28%29), [`getScope`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#getScope%28C%29), [`getSourceOptionDescriptors`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#getSourceOptionDescriptors%28%29), [`initializeContext`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#initializeContext%28C%29), [`initializeMultiThreading`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#initializeMultiThreading%28C%29), [`initializeThread`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#initializeThread%28C,java.lang.Thread%29), [`isVisible`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#isVisible%28C,java.lang.Object%29), [`locals`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#locals), [`parse`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/TruffleLanguage.html#parse%28com.oracle.truffle.api.TruffleLanguage.InlineParsingRequest%29) - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ NFILanguageProvider [truffle-nfi](index.md) › [com.oracle.truffle.nfi](com/oracle/truffle/nfi/index.md) · Every page: [llms.txt](llms.txt) Class in [`com.oracle.truffle.nfi`](com/oracle/truffle/nfi/index.md). ```java public final class NFILanguageProvider extends TruffleLanguageProvider ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > [`TruffleLanguageProvider`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/provider/TruffleLanguageProvider.html) > `NFILanguageProvider` ## Constructors ### NFILanguageProvider() `public NFILanguageProvider()`. Declared by the compiler. Creates a new NFILanguageProvider instance. Cite: `com/oracle/truffle/nfi/NFILanguageProvider.html#()` ## Methods ### getLanguageClassName() `protected String getLanguageClassName()`. Overrides `getLanguageClassName()`. Cite: `com/oracle/truffle/nfi/NFILanguageProvider.html#getLanguageClassName()` ### create() `protected Object create()`. Overrides `create()`. Cite: `com/oracle/truffle/nfi/NFILanguageProvider.html#create()` ### getServicesClassNames() `protected Collection getServicesClassNames()`. Overrides `getServicesClassNames()`. Cite: `com/oracle/truffle/nfi/NFILanguageProvider.html#getServicesClassNames()` ### createFileTypeDetectors() `protected List createFileTypeDetectors()`. Overrides `createFileTypeDetectors()`. Cite: `com/oracle/truffle/nfi/NFILanguageProvider.html#createFileTypeDetectors()` ### getInternalResourceIds() `protected List getInternalResourceIds()`. Overrides `getInternalResourceIds()`. Cite: `com/oracle/truffle/nfi/NFILanguageProvider.html#getInternalResourceIds()` ### createInternalResource(String) `protected Object createInternalResource(String resourceId)`. Overrides `createInternalResource(java.lang.String)`. Cite: `com/oracle/truffle/nfi/NFILanguageProvider.html#createInternalResource(java.lang.String)` ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ NFIPointerGen [truffle-nfi](index.md) › [com.oracle.truffle.nfi](com/oracle/truffle/nfi/index.md) · Every page: [llms.txt](llms.txt) Class in [`com.oracle.truffle.nfi`](com/oracle/truffle/nfi/index.md). ```java public final class NFIPointerGen ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `NFIPointerGen` ## Nested types - [`NFIPointerGen.NativePointerLibraryEagerProvider`](com/oracle/truffle/nfi/NFIPointerGen.NativePointerLibraryEagerProvider.md) (class): No description. ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ NFIPointerGen.NativePointerLibraryEagerProvider [truffle-nfi](index.md) › [com.oracle.truffle.nfi](com/oracle/truffle/nfi/index.md) · Every page: [llms.txt](llms.txt) Class in [`com.oracle.truffle.nfi`](com/oracle/truffle/nfi/index.md). Nested in [`NFIPointerGen`](com/oracle/truffle/nfi/NFIPointerGen.md). ```java public static final class NFIPointerGen.NativePointerLibraryEagerProvider implements EagerExportProvider ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `NativePointerLibraryEagerProvider` Implements: [`EagerExportProvider`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/provider/EagerExportProvider.html) ## Constructors ### NativePointerLibraryEagerProvider() `public NativePointerLibraryEagerProvider()`. Declared by the compiler. Creates a new NativePointerLibraryEagerProvider instance. Cite: `com/oracle/truffle/nfi/NFIPointerGen.NativePointerLibraryEagerProvider.html#()` ## Methods ### ensureRegistered() `public void ensureRegistered()`. Overrides `ensureRegistered()`. Cite: `com/oracle/truffle/nfi/NFIPointerGen.NativePointerLibraryEagerProvider.html#ensureRegistered()` ### getLibraryClassName() `public String getLibraryClassName()`. Overrides `getLibraryClassName()`. Cite: `com/oracle/truffle/nfi/NFIPointerGen.NativePointerLibraryEagerProvider.html#getLibraryClassName()` ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ NFISignatureGen [truffle-nfi](index.md) › [com.oracle.truffle.nfi](com/oracle/truffle/nfi/index.md) · Every page: [llms.txt](llms.txt) Class in [`com.oracle.truffle.nfi`](com/oracle/truffle/nfi/index.md). ```java public final class NFISignatureGen ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `NFISignatureGen` ## Nested types - [`NFISignatureGen.SignatureLibraryEagerProvider`](com/oracle/truffle/nfi/NFISignatureGen.SignatureLibraryEagerProvider.md) (class): No description. ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ NFISignatureGen.SignatureLibraryEagerProvider [truffle-nfi](index.md) › [com.oracle.truffle.nfi](com/oracle/truffle/nfi/index.md) · Every page: [llms.txt](llms.txt) Class in [`com.oracle.truffle.nfi`](com/oracle/truffle/nfi/index.md). Nested in [`NFISignatureGen`](com/oracle/truffle/nfi/NFISignatureGen.md). ```java public static final class NFISignatureGen.SignatureLibraryEagerProvider implements EagerExportProvider ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `SignatureLibraryEagerProvider` Implements: [`EagerExportProvider`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/provider/EagerExportProvider.html) ## Constructors ### SignatureLibraryEagerProvider() `public SignatureLibraryEagerProvider()`. Declared by the compiler. Creates a new SignatureLibraryEagerProvider instance. Cite: `com/oracle/truffle/nfi/NFISignatureGen.SignatureLibraryEagerProvider.html#()` ## Methods ### ensureRegistered() `public void ensureRegistered()`. Overrides `ensureRegistered()`. Cite: `com/oracle/truffle/nfi/NFISignatureGen.SignatureLibraryEagerProvider.html#ensureRegistered()` ### getLibraryClassName() `public String getLibraryClassName()`. Overrides `getLibraryClassName()`. Cite: `com/oracle/truffle/nfi/NFISignatureGen.SignatureLibraryEagerProvider.html#getLibraryClassName()` ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ NFISymbolGen [truffle-nfi](index.md) › [com.oracle.truffle.nfi](com/oracle/truffle/nfi/index.md) · Every page: [llms.txt](llms.txt) Class in [`com.oracle.truffle.nfi`](com/oracle/truffle/nfi/index.md). ```java public final class NFISymbolGen ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `NFISymbolGen` ## Nested types - [`NFISymbolGen.NativePointerLibraryEagerProvider`](com/oracle/truffle/nfi/NFISymbolGen.NativePointerLibraryEagerProvider.md) (class): No description. ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ NFISymbolGen.NativePointerLibraryEagerProvider [truffle-nfi](index.md) › [com.oracle.truffle.nfi](com/oracle/truffle/nfi/index.md) · Every page: [llms.txt](llms.txt) Class in [`com.oracle.truffle.nfi`](com/oracle/truffle/nfi/index.md). Nested in [`NFISymbolGen`](com/oracle/truffle/nfi/NFISymbolGen.md). ```java public static final class NFISymbolGen.NativePointerLibraryEagerProvider implements EagerExportProvider ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `NativePointerLibraryEagerProvider` Implements: [`EagerExportProvider`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/provider/EagerExportProvider.html) ## Constructors ### NativePointerLibraryEagerProvider() `public NativePointerLibraryEagerProvider()`. Declared by the compiler. Creates a new NativePointerLibraryEagerProvider instance. Cite: `com/oracle/truffle/nfi/NFISymbolGen.NativePointerLibraryEagerProvider.html#()` ## Methods ### ensureRegistered() `public void ensureRegistered()`. Overrides `ensureRegistered()`. Cite: `com/oracle/truffle/nfi/NFISymbolGen.NativePointerLibraryEagerProvider.html#ensureRegistered()` ### getLibraryClassName() `public String getLibraryClassName()`. Overrides `getLibraryClassName()`. Cite: `com/oracle/truffle/nfi/NFISymbolGen.NativePointerLibraryEagerProvider.html#getLibraryClassName()` ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ▣ com.oracle.truffle.nfi.api [truffle-nfi](index.md) · Every page: [llms.txt](llms.txt) Package in truffle-nfi. ## Classes - [`LongNativePointerLibraryGen`](com/oracle/truffle/nfi/api/LongNativePointerLibraryGen.md): No description. - [`NativePointerLibrary`](com/oracle/truffle/nfi/api/NativePointerLibrary.md): This library contains a subset of com.oracle.truffle.api.interop.InteropLibrary messages exported by some NFI objects. - [`SerializableLibrary`](com/oracle/truffle/nfi/api/SerializableLibrary.md): No description. - [`SignatureLibrary`](com/oracle/truffle/nfi/api/SignatureLibrary.md): No description. # ◆ LongNativePointerLibraryGen [truffle-nfi](index.md) › [com.oracle.truffle.nfi.api](com/oracle/truffle/nfi/api/index.md) · Every page: [llms.txt](llms.txt) Class in [`com.oracle.truffle.nfi.api`](com/oracle/truffle/nfi/api/index.md). ```java public final class LongNativePointerLibraryGen ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `LongNativePointerLibraryGen` ## Nested types - [`LongNativePointerLibraryGen.NativePointerLibraryEagerProvider`](com/oracle/truffle/nfi/api/LongNativePointerLibraryGen.NativePointerLibraryEagerProvider.md) (class): No description. ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ LongNativePointerLibraryGen.NativePointerLibraryEagerProvider [truffle-nfi](index.md) › [com.oracle.truffle.nfi.api](com/oracle/truffle/nfi/api/index.md) · Every page: [llms.txt](llms.txt) Class in [`com.oracle.truffle.nfi.api`](com/oracle/truffle/nfi/api/index.md). Nested in [`LongNativePointerLibraryGen`](com/oracle/truffle/nfi/api/LongNativePointerLibraryGen.md). ```java public static final class LongNativePointerLibraryGen.NativePointerLibraryEagerProvider implements EagerExportProvider ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `NativePointerLibraryEagerProvider` Implements: [`EagerExportProvider`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/provider/EagerExportProvider.html) ## Constructors ### NativePointerLibraryEagerProvider() `public NativePointerLibraryEagerProvider()`. Declared by the compiler. Creates a new NativePointerLibraryEagerProvider instance. Cite: `com/oracle/truffle/nfi/api/LongNativePointerLibraryGen.NativePointerLibraryEagerProvider.html#()` ## Methods ### ensureRegistered() `public void ensureRegistered()`. Overrides `ensureRegistered()`. Cite: `com/oracle/truffle/nfi/api/LongNativePointerLibraryGen.NativePointerLibraryEagerProvider.html#ensureRegistered()` ### getLibraryClassName() `public String getLibraryClassName()`. Overrides `getLibraryClassName()`. Cite: `com/oracle/truffle/nfi/api/LongNativePointerLibraryGen.NativePointerLibraryEagerProvider.html#getLibraryClassName()` ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ NativePointerLibrary [truffle-nfi](index.md) › [com.oracle.truffle.nfi.api](com/oracle/truffle/nfi/api/index.md) · Every page: [llms.txt](llms.txt) Abstract class in [`com.oracle.truffle.nfi.api`](com/oracle/truffle/nfi/api/index.md). ```java public abstract class NativePointerLibrary extends Library ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > [`Node`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html) > [`Library`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html) > `NativePointerLibrary` This library contains a subset of [`com.oracle.truffle.api.interop.InteropLibrary`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/interop/InteropLibrary.html) messages exported by some NFI objects. Those objects already implement the corresponding [`com.oracle.truffle.api.interop.InteropLibrary`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/interop/InteropLibrary.html) messages, but they cannot be used in the AOT mode, as [`com.oracle.truffle.api.interop.InteropLibrary`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/interop/InteropLibrary.html) is not an AOT-enabled library. ## Constructors ### NativePointerLibrary() `public NativePointerLibrary()`. Declared by the compiler. Creates a new NativePointerLibrary instance. Cite: `com/oracle/truffle/nfi/api/NativePointerLibrary.html#()` ## Methods ### isPointer(Object) `public boolean isPointer(Object receiver)`. Cite: `com/oracle/truffle/nfi/api/NativePointerLibrary.html#isPointer(java.lang.Object)` ### asPointer(Object) `public long asPointer(Object receiver) throws UnsupportedMessageException`. Cite: `com/oracle/truffle/nfi/api/NativePointerLibrary.html#asPointer(java.lang.Object)` ## Inherited members - From class [`Library`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html): [`accepts`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html#accepts%28java.lang.Object%29) - From class [`Node`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html): [`accept`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#accept%28com.oracle.truffle.api.nodes.NodeVisitor%29), [`adoptChildren`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#adoptChildren%28%29), [`atomic`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#atomic%28java.lang.Runnable%29), [`atomic`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#atomic%28java.util.concurrent.Callable%29), [`copy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#copy%28%29), [`deepCopy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#deepCopy%28%29), [`getChildren`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getChildren%28%29), [`getCost`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getCost%28%29), [`getDebugProperties`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getDebugProperties%28%29), [`getDescription`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getDescription%28%29), [`getEncapsulatingSourceSection`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getEncapsulatingSourceSection%28%29), [`getLock`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getLock%28%29), [`getParent`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getParent%28%29), [`getRootNode`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getRootNode%28%29), [`getSourceSection`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getSourceSection%28%29), [`insert`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#insert%28T%29), [`insert`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#insert%28T[]%29), [`isAdoptable`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#isAdoptable%28%29), [`isSafelyReplaceableBy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#isSafelyReplaceableBy%28com.oracle.truffle.api.nodes.Node%29), [`notifyInserted`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#notifyInserted%28com.oracle.truffle.api.nodes.Node%29), [`onReplace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#onReplace%28com.oracle.truffle.api.nodes.Node,java.lang.CharSequence%29), [`replace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#replace%28T%29), [`replace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#replace%28T,java.lang.CharSequence%29), [`reportPolymorphicSpecialize`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#reportPolymorphicSpecialize%28%29), [`reportReplace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#reportReplace%28com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence%29), [`toString`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#toString%28%29) - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ SerializableLibrary [truffle-nfi](index.md) › [com.oracle.truffle.nfi.api](com/oracle/truffle/nfi/api/index.md) · Every page: [llms.txt](llms.txt) Abstract class in [`com.oracle.truffle.nfi.api`](com/oracle/truffle/nfi/api/index.md). ```java public abstract class SerializableLibrary extends Library ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > [`Node`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html) > [`Library`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html) > `SerializableLibrary` ## Constructors ### SerializableLibrary() `public SerializableLibrary()`. Declared by the compiler. Creates a new SerializableLibrary instance. Cite: `com/oracle/truffle/nfi/api/SerializableLibrary.html#()` ## Methods ### isSerializable(Object) `public boolean isSerializable(Object value)`. Cite: `com/oracle/truffle/nfi/api/SerializableLibrary.html#isSerializable(java.lang.Object)` ### serialize(Object, Object) `public void serialize(Object value, Object buffer) throws UnsupportedMessageException`. Cite: `com/oracle/truffle/nfi/api/SerializableLibrary.html#serialize(java.lang.Object,java.lang.Object)` ## Inherited members - From class [`Library`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html): [`accepts`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html#accepts%28java.lang.Object%29) - From class [`Node`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html): [`accept`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#accept%28com.oracle.truffle.api.nodes.NodeVisitor%29), [`adoptChildren`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#adoptChildren%28%29), [`atomic`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#atomic%28java.lang.Runnable%29), [`atomic`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#atomic%28java.util.concurrent.Callable%29), [`copy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#copy%28%29), [`deepCopy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#deepCopy%28%29), [`getChildren`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getChildren%28%29), [`getCost`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getCost%28%29), [`getDebugProperties`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getDebugProperties%28%29), [`getDescription`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getDescription%28%29), [`getEncapsulatingSourceSection`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getEncapsulatingSourceSection%28%29), [`getLock`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getLock%28%29), [`getParent`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getParent%28%29), [`getRootNode`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getRootNode%28%29), [`getSourceSection`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getSourceSection%28%29), [`insert`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#insert%28T%29), [`insert`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#insert%28T[]%29), [`isAdoptable`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#isAdoptable%28%29), [`isSafelyReplaceableBy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#isSafelyReplaceableBy%28com.oracle.truffle.api.nodes.Node%29), [`notifyInserted`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#notifyInserted%28com.oracle.truffle.api.nodes.Node%29), [`onReplace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#onReplace%28com.oracle.truffle.api.nodes.Node,java.lang.CharSequence%29), [`replace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#replace%28T%29), [`replace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#replace%28T,java.lang.CharSequence%29), [`reportPolymorphicSpecialize`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#reportPolymorphicSpecialize%28%29), [`reportReplace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#reportReplace%28com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence%29), [`toString`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#toString%28%29) - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ SignatureLibrary [truffle-nfi](index.md) › [com.oracle.truffle.nfi.api](com/oracle/truffle/nfi/api/index.md) · Every page: [llms.txt](llms.txt) Abstract class in [`com.oracle.truffle.nfi.api`](com/oracle/truffle/nfi/api/index.md). ```java public abstract class SignatureLibrary extends Library ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > [`Node`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html) > [`Library`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html) > `SignatureLibrary` ## Constructors ### SignatureLibrary() `public SignatureLibrary()`. Declared by the compiler. Creates a new SignatureLibrary instance. Cite: `com/oracle/truffle/nfi/api/SignatureLibrary.html#()` ## Methods ### call(Object, Object, Object...) `public abstract Object call(Object signature, Object functionPointer, Object... args) throws ArityException, UnsupportedTypeException, UnsupportedMessageException`. Interpret a pointer as function pointer with the given signature and call it. Cite: `com/oracle/truffle/nfi/api/SignatureLibrary.html#call(java.lang.Object,java.lang.Object,java.lang.Object...)` ### bind(Object, Object) `public abstract Object bind(Object signature, Object functionPointer)`. Create an executable interop object from a signature and a function pointer. Sending the [`InteropLibrary.execute`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/interop/InteropLibrary.html#execute%28java.lang.Object,java.lang.Object...%29) message to the returned object is equivalent to calling `call`. Cite: `com/oracle/truffle/nfi/api/SignatureLibrary.html#bind(java.lang.Object,java.lang.Object)` ### createClosure(Object, Object) `public abstract Object createClosure(Object signature, Object executable)`. Create a native closure object with the given signature. The returned object is a function pointer that sends the [`InteropLibrary.execute`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/interop/InteropLibrary.html#execute%28java.lang.Object,java.lang.Object...%29) message to the executable object when called. Cite: `com/oracle/truffle/nfi/api/SignatureLibrary.html#createClosure(java.lang.Object,java.lang.Object)` ### getFactory() `public static LibraryFactory getFactory()`. Cite: `com/oracle/truffle/nfi/api/SignatureLibrary.html#getFactory()` ### getUncached() `public static SignatureLibrary getUncached()`. Cite: `com/oracle/truffle/nfi/api/SignatureLibrary.html#getUncached()` ## Inherited members - From class [`Library`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html): [`accepts`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html#accepts%28java.lang.Object%29) - From class [`Node`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html): [`accept`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#accept%28com.oracle.truffle.api.nodes.NodeVisitor%29), [`adoptChildren`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#adoptChildren%28%29), [`atomic`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#atomic%28java.lang.Runnable%29), [`atomic`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#atomic%28java.util.concurrent.Callable%29), [`copy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#copy%28%29), [`deepCopy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#deepCopy%28%29), [`getChildren`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getChildren%28%29), [`getCost`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getCost%28%29), [`getDebugProperties`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getDebugProperties%28%29), [`getDescription`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getDescription%28%29), [`getEncapsulatingSourceSection`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getEncapsulatingSourceSection%28%29), [`getLock`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getLock%28%29), [`getParent`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getParent%28%29), [`getRootNode`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getRootNode%28%29), [`getSourceSection`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getSourceSection%28%29), [`insert`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#insert%28T%29), [`insert`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#insert%28T[]%29), [`isAdoptable`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#isAdoptable%28%29), [`isSafelyReplaceableBy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#isSafelyReplaceableBy%28com.oracle.truffle.api.nodes.Node%29), [`notifyInserted`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#notifyInserted%28com.oracle.truffle.api.nodes.Node%29), [`onReplace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#onReplace%28com.oracle.truffle.api.nodes.Node,java.lang.CharSequence%29), [`replace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#replace%28T%29), [`replace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#replace%28T,java.lang.CharSequence%29), [`reportPolymorphicSpecialize`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#reportPolymorphicSpecialize%28%29), [`reportReplace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#reportReplace%28com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence%29), [`toString`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#toString%28%29) - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ▣ com.oracle.truffle.nfi.backend.spi [truffle-nfi](index.md) · Every page: [llms.txt](llms.txt) Package in truffle-nfi. ## Interfaces - [`NFIBackend`](com/oracle/truffle/nfi/backend/spi/NFIBackend.md): Implementation interface for Truffle NFI backends. - [`NFIBackendFactory`](com/oracle/truffle/nfi/backend/spi/NFIBackendFactory.md): Service interface for languages that implement a backend for the Truffle NFI. ## Classes - [`BackendNativePointerLibrary`](com/oracle/truffle/nfi/backend/spi/BackendNativePointerLibrary.md): No description. - [`NFIBackendLibrary`](com/oracle/truffle/nfi/backend/spi/NFIBackendLibrary.md): No description. - [`NFIBackendSignatureBuilderLibrary`](com/oracle/truffle/nfi/backend/spi/NFIBackendSignatureBuilderLibrary.md): No description. - [`NFIBackendSignatureLibrary`](com/oracle/truffle/nfi/backend/spi/NFIBackendSignatureLibrary.md): Library that specifies the protocol between the Truffle NFI and its backend implementations. - [`NFIState`](com/oracle/truffle/nfi/backend/spi/NFIState.md): Thread-local state of the NFI that is shared between different backends. # ◆ BackendNativePointerLibrary [truffle-nfi](index.md) › [com.oracle.truffle.nfi.backend.spi](com/oracle/truffle/nfi/backend/spi/index.md) · Every page: [llms.txt](llms.txt) Abstract class in [`com.oracle.truffle.nfi.backend.spi`](com/oracle/truffle/nfi/backend/spi/index.md). ```java public abstract class BackendNativePointerLibrary extends Library ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > [`Node`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html) > [`Library`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html) > `BackendNativePointerLibrary` ## Constructors ### BackendNativePointerLibrary() `public BackendNativePointerLibrary()`. Declared by the compiler. Creates a new BackendNativePointerLibrary instance. Cite: `com/oracle/truffle/nfi/backend/spi/BackendNativePointerLibrary.html#()` ## Methods ### isPointer(Object) `public boolean isPointer(Object receiver)`. Cite: `com/oracle/truffle/nfi/backend/spi/BackendNativePointerLibrary.html#isPointer(java.lang.Object)` ### asPointer(Object) `public long asPointer(Object receiver) throws UnsupportedMessageException`. Cite: `com/oracle/truffle/nfi/backend/spi/BackendNativePointerLibrary.html#asPointer(java.lang.Object)` ## Inherited members - From class [`Library`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html): [`accepts`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html#accepts%28java.lang.Object%29) - From class [`Node`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html): [`accept`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#accept%28com.oracle.truffle.api.nodes.NodeVisitor%29), [`adoptChildren`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#adoptChildren%28%29), [`atomic`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#atomic%28java.lang.Runnable%29), [`atomic`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#atomic%28java.util.concurrent.Callable%29), [`copy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#copy%28%29), [`deepCopy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#deepCopy%28%29), [`getChildren`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getChildren%28%29), [`getCost`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getCost%28%29), [`getDebugProperties`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getDebugProperties%28%29), [`getDescription`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getDescription%28%29), [`getEncapsulatingSourceSection`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getEncapsulatingSourceSection%28%29), [`getLock`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getLock%28%29), [`getParent`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getParent%28%29), [`getRootNode`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getRootNode%28%29), [`getSourceSection`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getSourceSection%28%29), [`insert`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#insert%28T%29), [`insert`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#insert%28T[]%29), [`isAdoptable`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#isAdoptable%28%29), [`isSafelyReplaceableBy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#isSafelyReplaceableBy%28com.oracle.truffle.api.nodes.Node%29), [`notifyInserted`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#notifyInserted%28com.oracle.truffle.api.nodes.Node%29), [`onReplace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#onReplace%28com.oracle.truffle.api.nodes.Node,java.lang.CharSequence%29), [`replace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#replace%28T%29), [`replace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#replace%28T,java.lang.CharSequence%29), [`reportPolymorphicSpecialize`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#reportPolymorphicSpecialize%28%29), [`reportReplace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#reportReplace%28com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence%29), [`toString`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#toString%28%29) - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◇ NFIBackend [truffle-nfi](index.md) › [com.oracle.truffle.nfi.backend.spi](com/oracle/truffle/nfi/backend/spi/index.md) · Every page: [llms.txt](llms.txt) Interface in [`com.oracle.truffle.nfi.backend.spi`](com/oracle/truffle/nfi/backend/spi/index.md). ```java public interface NFIBackend ``` Implementation interface for Truffle NFI backends. ## Methods ### parse(NativeLibraryDescriptor) `CallTarget parse(NativeLibraryDescriptor descriptor)`. Parse a `NativeLibraryDescriptor`. The returned [`CallTarget`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/CallTarget.html) should load the library specified by the descriptor. The loaded library should expose its symbols as [`members`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/interop/InteropLibrary.html#hasMembers%28java.lang.Object%29). Cite: `com/oracle/truffle/nfi/backend/spi/NFIBackend.html#parse(com.oracle.truffle.nfi.backend.spi.types.NativeLibraryDescriptor)` # ◇ NFIBackendFactory [truffle-nfi](index.md) › [com.oracle.truffle.nfi.backend.spi](com/oracle/truffle/nfi/backend/spi/index.md) · Every page: [llms.txt](llms.txt) Interface in [`com.oracle.truffle.nfi.backend.spi`](com/oracle/truffle/nfi/backend/spi/index.md). ```java public interface NFIBackendFactory ``` Service interface for languages that implement a backend for the Truffle NFI. ## Methods ### getBackendId() `String getBackendId()`. Provides the backend id. NFI backends can be selected by using the "with \" syntax. Cite: `com/oracle/truffle/nfi/backend/spi/NFIBackendFactory.html#getBackendId()` ### createBackend(ContextThreadLocal) `NFIBackend createBackend(ContextThreadLocal state)`. Create an instance of an `NFIBackend`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIBackendFactory.html#createBackend(com.oracle.truffle.api.ContextThreadLocal)` # ◆ NFIBackendLibrary [truffle-nfi](index.md) › [com.oracle.truffle.nfi.backend.spi](com/oracle/truffle/nfi/backend/spi/index.md) · Every page: [llms.txt](llms.txt) Abstract class in [`com.oracle.truffle.nfi.backend.spi`](com/oracle/truffle/nfi/backend/spi/index.md). ```java public abstract class NFIBackendLibrary extends Library ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > [`Node`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html) > [`Library`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html) > `NFIBackendLibrary` ## Constructors ### NFIBackendLibrary() `public NFIBackendLibrary()`. Declared by the compiler. Creates a new NFIBackendLibrary instance. Cite: `com/oracle/truffle/nfi/backend/spi/NFIBackendLibrary.html#()` ## Methods ### getSimpleType(Object, NativeSimpleType) `public abstract Object getSimpleType(Object backend, NativeSimpleType type)`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIBackendLibrary.html#getSimpleType(java.lang.Object,com.oracle.truffle.nfi.backend.spi.types.NativeSimpleType)` ### getArrayType(Object, NativeSimpleType) `public abstract Object getArrayType(Object backend, NativeSimpleType type)`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIBackendLibrary.html#getArrayType(java.lang.Object,com.oracle.truffle.nfi.backend.spi.types.NativeSimpleType)` ### getEnvType(Object) `public abstract Object getEnvType(Object backend)`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIBackendLibrary.html#getEnvType(java.lang.Object)` ### createSignatureBuilder(Object) `public abstract Object createSignatureBuilder(Object backend)`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIBackendLibrary.html#createSignatureBuilder(java.lang.Object)` ## Inherited members - From class [`Library`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html): [`accepts`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html#accepts%28java.lang.Object%29) - From class [`Node`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html): [`accept`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#accept%28com.oracle.truffle.api.nodes.NodeVisitor%29), [`adoptChildren`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#adoptChildren%28%29), [`atomic`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#atomic%28java.lang.Runnable%29), [`atomic`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#atomic%28java.util.concurrent.Callable%29), [`copy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#copy%28%29), [`deepCopy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#deepCopy%28%29), [`getChildren`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getChildren%28%29), [`getCost`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getCost%28%29), [`getDebugProperties`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getDebugProperties%28%29), [`getDescription`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getDescription%28%29), [`getEncapsulatingSourceSection`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getEncapsulatingSourceSection%28%29), [`getLock`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getLock%28%29), [`getParent`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getParent%28%29), [`getRootNode`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getRootNode%28%29), [`getSourceSection`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getSourceSection%28%29), [`insert`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#insert%28T%29), [`insert`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#insert%28T[]%29), [`isAdoptable`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#isAdoptable%28%29), [`isSafelyReplaceableBy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#isSafelyReplaceableBy%28com.oracle.truffle.api.nodes.Node%29), [`notifyInserted`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#notifyInserted%28com.oracle.truffle.api.nodes.Node%29), [`onReplace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#onReplace%28com.oracle.truffle.api.nodes.Node,java.lang.CharSequence%29), [`replace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#replace%28T%29), [`replace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#replace%28T,java.lang.CharSequence%29), [`reportPolymorphicSpecialize`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#reportPolymorphicSpecialize%28%29), [`reportReplace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#reportReplace%28com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence%29), [`toString`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#toString%28%29) - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ NFIBackendSignatureBuilderLibrary [truffle-nfi](index.md) › [com.oracle.truffle.nfi.backend.spi](com/oracle/truffle/nfi/backend/spi/index.md) · Every page: [llms.txt](llms.txt) Abstract class in [`com.oracle.truffle.nfi.backend.spi`](com/oracle/truffle/nfi/backend/spi/index.md). ```java public abstract class NFIBackendSignatureBuilderLibrary extends Library ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > [`Node`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html) > [`Library`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html) > `NFIBackendSignatureBuilderLibrary` ## Constructors ### NFIBackendSignatureBuilderLibrary() `public NFIBackendSignatureBuilderLibrary()`. Declared by the compiler. Creates a new NFIBackendSignatureBuilderLibrary instance. Cite: `com/oracle/truffle/nfi/backend/spi/NFIBackendSignatureBuilderLibrary.html#()` ## Methods ### setReturnType(Object, Object) `public abstract void setReturnType(Object builder, Object type)`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIBackendSignatureBuilderLibrary.html#setReturnType(java.lang.Object,java.lang.Object)` ### addArgument(Object, Object) `public abstract void addArgument(Object builder, Object type)`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIBackendSignatureBuilderLibrary.html#addArgument(java.lang.Object,java.lang.Object)` ### makeVarargs(Object) `public void makeVarargs(Object builder)`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIBackendSignatureBuilderLibrary.html#makeVarargs(java.lang.Object)` ### build(Object) `public abstract Object build(Object builder)`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIBackendSignatureBuilderLibrary.html#build(java.lang.Object)` ## Inherited members - From class [`Library`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html): [`accepts`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html#accepts%28java.lang.Object%29) - From class [`Node`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html): [`accept`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#accept%28com.oracle.truffle.api.nodes.NodeVisitor%29), [`adoptChildren`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#adoptChildren%28%29), [`atomic`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#atomic%28java.lang.Runnable%29), [`atomic`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#atomic%28java.util.concurrent.Callable%29), [`copy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#copy%28%29), [`deepCopy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#deepCopy%28%29), [`getChildren`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getChildren%28%29), [`getCost`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getCost%28%29), [`getDebugProperties`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getDebugProperties%28%29), [`getDescription`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getDescription%28%29), [`getEncapsulatingSourceSection`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getEncapsulatingSourceSection%28%29), [`getLock`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getLock%28%29), [`getParent`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getParent%28%29), [`getRootNode`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getRootNode%28%29), [`getSourceSection`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getSourceSection%28%29), [`insert`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#insert%28T%29), [`insert`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#insert%28T[]%29), [`isAdoptable`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#isAdoptable%28%29), [`isSafelyReplaceableBy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#isSafelyReplaceableBy%28com.oracle.truffle.api.nodes.Node%29), [`notifyInserted`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#notifyInserted%28com.oracle.truffle.api.nodes.Node%29), [`onReplace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#onReplace%28com.oracle.truffle.api.nodes.Node,java.lang.CharSequence%29), [`replace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#replace%28T%29), [`replace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#replace%28T,java.lang.CharSequence%29), [`reportPolymorphicSpecialize`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#reportPolymorphicSpecialize%28%29), [`reportReplace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#reportReplace%28com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence%29), [`toString`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#toString%28%29) - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ NFIBackendSignatureLibrary [truffle-nfi](index.md) › [com.oracle.truffle.nfi.backend.spi](com/oracle/truffle/nfi/backend/spi/index.md) · Every page: [llms.txt](llms.txt) Abstract class in [`com.oracle.truffle.nfi.backend.spi`](com/oracle/truffle/nfi/backend/spi/index.md). ```java public abstract class NFIBackendSignatureLibrary extends Library ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > [`Node`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html) > [`Library`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html) > `NFIBackendSignatureLibrary` Library that specifies the protocol between the Truffle NFI and its backend implementations. ## Constructors ### NFIBackendSignatureLibrary() `public NFIBackendSignatureLibrary()`. Declared by the compiler. Creates a new NFIBackendSignatureLibrary instance. Cite: `com/oracle/truffle/nfi/backend/spi/NFIBackendSignatureLibrary.html#()` ## Methods ### call(Object, Object, Object...) `public abstract Object call(Object signature, Object functionPointer, Object... args) throws ArityException, UnsupportedTypeException, UnsupportedMessageException`. Call a native function with this signature. Cite: `com/oracle/truffle/nfi/backend/spi/NFIBackendSignatureLibrary.html#call(java.lang.Object,java.lang.Object,java.lang.Object...)` ### createClosure(Object, Object) `public abstract Object createClosure(Object signature, Object executable)`. Create a function pointer closure that calls back into an executable object. This message must return something that's compatible with `NativeSimpleType.POINTER`. The returned pointer should be a function pointer. Calling that function pointer sends the [`InteropLibrary.execute`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/interop/InteropLibrary.html#execute%28java.lang.Object,java.lang.Object...%29) message to the executable object. The returned object should not be executable. NFI backends can assume that the execute message of the executable object will never throw. Exceptions are instead stored as "pending" and rethrown at the next managed frame. Before an upcall, backends must save and clear any earlier pending exception using `NFIState.savePendingException()`. They must restore it using `NFIState.restorePendingException(Throwable)` in a `finally` block after the upcall. This scope must include argument and return conversion so nested native calls see a clean exception state and successful upcalls still return their results to native code. An earlier pending exception takes precedence over an exception from the new upcall. Cite: `com/oracle/truffle/nfi/backend/spi/NFIBackendSignatureLibrary.html#createClosure(java.lang.Object,java.lang.Object)` ## Inherited members - From class [`Library`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html): [`accepts`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/library/Library.html#accepts%28java.lang.Object%29) - From class [`Node`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html): [`accept`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#accept%28com.oracle.truffle.api.nodes.NodeVisitor%29), [`adoptChildren`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#adoptChildren%28%29), [`atomic`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#atomic%28java.lang.Runnable%29), [`atomic`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#atomic%28java.util.concurrent.Callable%29), [`copy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#copy%28%29), [`deepCopy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#deepCopy%28%29), [`getChildren`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getChildren%28%29), [`getCost`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getCost%28%29), [`getDebugProperties`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getDebugProperties%28%29), [`getDescription`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getDescription%28%29), [`getEncapsulatingSourceSection`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getEncapsulatingSourceSection%28%29), [`getLock`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getLock%28%29), [`getParent`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getParent%28%29), [`getRootNode`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getRootNode%28%29), [`getSourceSection`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#getSourceSection%28%29), [`insert`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#insert%28T%29), [`insert`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#insert%28T[]%29), [`isAdoptable`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#isAdoptable%28%29), [`isSafelyReplaceableBy`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#isSafelyReplaceableBy%28com.oracle.truffle.api.nodes.Node%29), [`notifyInserted`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#notifyInserted%28com.oracle.truffle.api.nodes.Node%29), [`onReplace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#onReplace%28com.oracle.truffle.api.nodes.Node,java.lang.CharSequence%29), [`replace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#replace%28T%29), [`replace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#replace%28T,java.lang.CharSequence%29), [`reportPolymorphicSpecialize`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#reportPolymorphicSpecialize%28%29), [`reportReplace`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#reportReplace%28com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence%29), [`toString`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/Node.html#toString%28%29) - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ NFIState [truffle-nfi](index.md) › [com.oracle.truffle.nfi.backend.spi](com/oracle/truffle/nfi/backend/spi/index.md) · Every page: [llms.txt](llms.txt) Class in [`com.oracle.truffle.nfi.backend.spi`](com/oracle/truffle/nfi/backend/spi/index.md). ```java public final class NFIState ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `NFIState` Thread-local state of the NFI that is shared between different backends. All methods should only be called from the corresponding thread to which this state belongs (for thread-safety reasons and because the SVM NFI backend relies on it by using a FastThreadLocalBytes for the errno pointer, which means the errno pointer points inside the IsolateThread), except the constructor and [`dispose()`](com/oracle/truffle/nfi/backend/spi/NFIState.md#dispose%28%29) which may be called from another thread, as Truffle hooks which call those are not guaranteed to be called from the corresponding thread. ## Constructors ### NFIState(Thread) `public NFIState(Thread thread)`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIState.html#(java.lang.Thread)` ## Methods ### getNFIErrno() `public int getNFIErrno()`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIState.html#getNFIErrno()` ### setNFIErrno(int) `public void setNFIErrno(int nfiErrno)`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIState.html#setNFIErrno(int)` ### getPendingException() `public Throwable getPendingException()`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIState.html#getPendingException()` ### setPendingException(Throwable) `public void setPendingException(Throwable t)`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIState.html#setPendingException(java.lang.Throwable)` ### clearPendingException() `public void clearPendingException()`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIState.html#clearPendingException()` ### savePendingException() `public Throwable savePendingException()`. Since 25.6. Saves and clears the pending exception so an upcall and its nested calls see a clean state. Pair this with `restorePendingException(Throwable)` in a `finally` block. Returns `Throwable`: the previous pending exception, or `null`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIState.html#savePendingException()` ### restorePendingException(Throwable) `public void restorePendingException(Throwable saved)`. Since 25.6. Restores a non-null saved exception, replacing any exception produced by the upcall. If `saved` is `null`, leaves the current pending exception untouched so a new exception can propagate to the enclosing downcall. Parameters: `saved` `Throwable`: the exception returned by `savePendingException()`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIState.html#restorePendingException(java.lang.Throwable)` ### dispose() `public void dispose()`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIState.html#dispose()` ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ▣ com.oracle.truffle.nfi.backend.spi.types [truffle-nfi](index.md) · Every page: [llms.txt](llms.txt) Package in truffle-nfi. ## Classes - [`NativeLibraryDescriptor`](com/oracle/truffle/nfi/backend/spi/types/NativeLibraryDescriptor.md): Parsed representation of library descriptors of the Truffle NFI. - [`TypeFactory`](com/oracle/truffle/nfi/backend/spi/types/TypeFactory.md): No description. ## Enums - [`NativeSimpleType`](com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.md): No description. # ◆ NativeLibraryDescriptor [truffle-nfi](index.md) › [com.oracle.truffle.nfi.backend.spi.types](com/oracle/truffle/nfi/backend/spi/types/index.md) · Every page: [llms.txt](llms.txt) Class in [`com.oracle.truffle.nfi.backend.spi.types`](com/oracle/truffle/nfi/backend/spi/types/index.md). ```java public final class NativeLibraryDescriptor ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `NativeLibraryDescriptor` Parsed representation of library descriptors of the Truffle NFI. **See also** - [`com.oracle.truffle.nfi.backend.spi.NFIBackend.parse(NativeLibraryDescriptor)`](com/oracle/truffle/nfi/backend/spi/NFIBackend.md#parse%28com.oracle.truffle.nfi.backend.spi.types.NativeLibraryDescriptor%29) ## Methods ### isDefaultLibrary() `public boolean isDefaultLibrary()`. Check whether this represents the default library. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeLibraryDescriptor.html#isDefaultLibrary()` ### getFilename() `public String getFilename()`. Returns `String`: the filename of the library, or `null` for the default library. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeLibraryDescriptor.html#getFilename()` ### getFlags() `public List getFlags()`. An optional array of implementation dependent flags. Implementors of the TruffleNFI backends should ignore unknown flags, and should always provide sensible default behavior if no flags are specified. This can for example be used to specify the `RTLD_*` flags on posix compliant systems. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeLibraryDescriptor.html#getFlags()` ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ≡ NativeSimpleType [truffle-nfi](index.md) › [com.oracle.truffle.nfi.backend.spi.types](com/oracle/truffle/nfi/backend/spi/types/index.md) · Every page: [llms.txt](llms.txt) Enum class in [`com.oracle.truffle.nfi.backend.spi.types`](com/oracle/truffle/nfi/backend/spi/types/index.md). ```java public enum NativeSimpleType ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > [`Enum`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html) > `NativeSimpleType` ## Enum constants ### VOID `VOID`. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#VOID` ### UINT8 `UINT8`. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#UINT8` ### SINT8 `SINT8`. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#SINT8` ### UINT16 `UINT16`. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#UINT16` ### SINT16 `SINT16`. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#SINT16` ### UINT32 `UINT32`. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#UINT32` ### SINT32 `SINT32`. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#SINT32` ### UINT64 `UINT64`. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#UINT64` ### SINT64 `SINT64`. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#SINT64` ### FLOAT `FLOAT`. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#FLOAT` ### DOUBLE `DOUBLE`. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#DOUBLE` ### FP80 `FP80`. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#FP80` ### FP128 `FP128`. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#FP128` ### POINTER `POINTER`. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#POINTER` ### STRING `STRING`. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#STRING` ### OBJECT `OBJECT`. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#OBJECT` ### NULLABLE `NULLABLE`. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#NULLABLE` ## Methods ### values() `public static NativeSimpleType[] values()`. Returns the enum constants in declaration order. Returns `NativeSimpleType[]`: Returns the enum constants in declaration order. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#values()` ### valueOf(String) `public static NativeSimpleType valueOf(String name)`. Returns the enum constant with the given name. Parameters: `name` `String`: The exact name of the enum constant. Returns `NativeSimpleType`: Returns the enum constant with the given name. Cite: `com/oracle/truffle/nfi/backend/spi/types/NativeSimpleType.html#valueOf(java.lang.String)` ## Inherited members - From class [`Enum`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone%28%29), [`compareTo`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo%28E%29), [`describeConstable`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize%28%29), [`getDeclaringClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode%28%29), [`name`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name%28%29), [`ordinal`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString%28%29), [`valueOf`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf%28java.lang.Class,java.lang.String%29) - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ TypeFactory [truffle-nfi](index.md) › [com.oracle.truffle.nfi.backend.spi.types](com/oracle/truffle/nfi/backend/spi/types/index.md) · Every page: [llms.txt](llms.txt) Abstract class in [`com.oracle.truffle.nfi.backend.spi.types`](com/oracle/truffle/nfi/backend/spi/types/index.md). ```java public abstract class TypeFactory ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `TypeFactory` ## Constructors ### TypeFactory() `protected TypeFactory()`. Should be used only by the Truffle NFI. Cite: `com/oracle/truffle/nfi/backend/spi/types/TypeFactory.html#()` ## Methods ### createDefaultLibrary() `protected static NativeLibraryDescriptor createDefaultLibrary()`. Cite: `com/oracle/truffle/nfi/backend/spi/types/TypeFactory.html#createDefaultLibrary()` ### createLibraryDescriptor(String, List) `protected static NativeLibraryDescriptor createLibraryDescriptor(String filename, List flags)`. Cite: `com/oracle/truffle/nfi/backend/spi/types/TypeFactory.html#createLibraryDescriptor(java.lang.String,java.util.List)` ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ▣ com.oracle.truffle.nfi.backend.spi.util [truffle-nfi](index.md) · Every page: [llms.txt](llms.txt) Package in truffle-nfi. ## Classes - [`ProfiledArrayBuilder`](com/oracle/truffle/nfi/backend/spi/util/ProfiledArrayBuilder.md): No description. # ◆ ProfiledArrayBuilder [truffle-nfi](index.md) › [com.oracle.truffle.nfi.backend.spi.util](com/oracle/truffle/nfi/backend/spi/util/index.md) · Every page: [llms.txt](llms.txt) Class in [`com.oracle.truffle.nfi.backend.spi.util`](com/oracle/truffle/nfi/backend/spi/util/index.md). ```java public final class ProfiledArrayBuilder ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `ProfiledArrayBuilder` ## Nested types - [`ProfiledArrayBuilder.ArrayBuilderFactory`](com/oracle/truffle/nfi/backend/spi/util/ProfiledArrayBuilder.ArrayBuilderFactory.md) (abstract class): No description. - [`ProfiledArrayBuilder.ArrayFactory`](com/oracle/truffle/nfi/backend/spi/util/ProfiledArrayBuilder.ArrayFactory.md) (interface): No description. ## Methods ### getSize() `public int getSize()`. Cite: `com/oracle/truffle/nfi/backend/spi/util/ProfiledArrayBuilder.html#getSize()` ### add(T) `public void add(T obj)`. Cite: `com/oracle/truffle/nfi/backend/spi/util/ProfiledArrayBuilder.html#add(T)` ### getFinalArray() `public T[] getFinalArray()`. Cite: `com/oracle/truffle/nfi/backend/spi/util/ProfiledArrayBuilder.html#getFinalArray()` ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ ProfiledArrayBuilder.ArrayBuilderFactory [truffle-nfi](index.md) › [com.oracle.truffle.nfi.backend.spi.util](com/oracle/truffle/nfi/backend/spi/util/index.md) · Every page: [llms.txt](llms.txt) Abstract class in [`com.oracle.truffle.nfi.backend.spi.util`](com/oracle/truffle/nfi/backend/spi/util/index.md). Nested in [`ProfiledArrayBuilder`](com/oracle/truffle/nfi/backend/spi/util/ProfiledArrayBuilder.md). ```java public abstract static class ProfiledArrayBuilder.ArrayBuilderFactory ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `ArrayBuilderFactory` ## Methods ### create() `public static ProfiledArrayBuilder.ArrayBuilderFactory create()`. Cite: `com/oracle/truffle/nfi/backend/spi/util/ProfiledArrayBuilder.ArrayBuilderFactory.html#create()` ### getUncached() `public static ProfiledArrayBuilder.ArrayBuilderFactory getUncached()`. Cite: `com/oracle/truffle/nfi/backend/spi/util/ProfiledArrayBuilder.ArrayBuilderFactory.html#getUncached()` ### allocate(ProfiledArrayBuilder.ArrayFactory) `public abstract ProfiledArrayBuilder allocate(ProfiledArrayBuilder.ArrayFactory factory)`. Cite: `com/oracle/truffle/nfi/backend/spi/util/ProfiledArrayBuilder.ArrayBuilderFactory.html#allocate(com.oracle.truffle.nfi.backend.spi.util.ProfiledArrayBuilder.ArrayFactory)` ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◇ ProfiledArrayBuilder.ArrayFactory [truffle-nfi](index.md) › [com.oracle.truffle.nfi.backend.spi.util](com/oracle/truffle/nfi/backend/spi/util/index.md) · Every page: [llms.txt](llms.txt) Interface in [`com.oracle.truffle.nfi.backend.spi.util`](com/oracle/truffle/nfi/backend/spi/util/index.md). Nested in [`ProfiledArrayBuilder`](com/oracle/truffle/nfi/backend/spi/util/ProfiledArrayBuilder.md). ```java @FunctionalInterface public interface ProfiledArrayBuilder.ArrayFactory ``` ## Methods ### create(int) `T[] create(int size)`. Cite: `com/oracle/truffle/nfi/backend/spi/util/ProfiledArrayBuilder.ArrayFactory.html#create(int)`