Module java.base

Interface Linker.Option

Enclosing interface:
LinkerPREVIEW

public static sealed interface Linker.Option
Option is a preview API of the Java platform.
Programs can only use Option when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
A linker option that can be used to indicate additional linking requirements to the linker, besides what is described by a function descriptor.
Since:
20
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    firstVariadicArg(int index)
    Returns A linker option used to denote the index of the first variadic argument layout in a foreign function call.
  • Method Details

    • firstVariadicArg

      static Linker.OptionPREVIEW firstVariadicArg(int index)
      Returns A linker option used to denote the index of the first variadic argument layout in a foreign function call.
      Parameters:
      index - the index of the first variadic argument in a downcall handle linkage request.
      Returns:
      A linker option used to denote the index of the first variadic argument layout in a foreign function call