| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | registerForDowncall(Object
A desc, Object... java. to register for downcalls.An array of options)java. used for the downcalls.Registers the provided descriptor and options pair for foreign downcalls at runtime. |
| RuntimeForeignAccess | back to summary |
|---|---|
| private RuntimeForeignAccess() | |
| registerForDowncall | back to summary |
|---|---|
| public static void registerForDowncall(Object desc, Object... options) Registers the provided descriptor and options pair for foreign downcalls at runtime. Needed in order to get a method handle using downcallHandle Since the foreign functions feature is currently a preview of the Java platform (as part of Project Panama), this API is itself a preview subject to changes following changes in the feature itself. This also means that this feature must be manually enabled, using '--enable-preview'. Even though this method is weakly typed for compatibility reasons, runtime checks will be performed to ensure that the arguments have the expected type. It will be deprecated in favor of strongly typed variant as soon as possible.
| |