Module java.base
Package java.lang.foreign

# Interface Addressable

All Known Subinterfaces:
  `MemoryAddressPREVIEW`, `MemorySegmentPREVIEW`, `VaListPREVIEW`

public sealed interface Addressable permits MemorySegmentPREVIEW, MemoryAddressPREVIEW, VaListPREVIEW
`Addressable` is a preview API of the Java platform.
Programs can only use `Addressable` when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
An object that may be projected down to a memory address. Examples of addressable types are `MemorySegment`PREVIEW, `MemoryAddress`PREVIEW and `VaList`PREVIEW.

The `Addressable`PREVIEW type is used by a linkerPREVIEW to model the types of downcall handlePREVIEW parameters that must be passed by reference (e.g. memory addresses, variable argument lists and upcall stubs).

Since:
  19

- ## Method Summary

  Modifier and Type
  Method
  Description
  `MemoryAddressPREVIEW`
  `address()`
  Returns the memory addressPREVIEW associated with this addressable.

- ## Method Details

  - ### address

    MemoryAddressPREVIEW address()
    Returns the memory addressPREVIEW associated with this addressable.
    Returns:
      the memory addressPREVIEW associated with this addressable