- All Superinterfaces:
Addressable
- Enclosing interface:
- LibraryLookup
A symbol retrieved during a library lookup. A lookup symbol has a name and can be projected
into a memory address (see
name()
and address()
, respectively).- API Note:
- In the future, if the Java language permits,
LibraryLookup.Symbol
may become asealed
interface, which would prohibit subclassing except by explicitly permitted types. - Implementation Requirements:
- Implementations of this interface are immutable, thread-safe and value-based.
-
Method Details
-
name
String name()The name of this lookup symbol.- Returns:
- the name of this lookup symbol.
-
address
MemoryAddress address()The memory address of this lookup symbol. If the memory associated with this symbol needs to be dereferenced, clients can obtain a segment from this symbol's address using theMemoryAddress.asSegmentRestricted(long, Runnable, Object)
, and making sure that the created segment maintains a strong reference to this symbol, to prevent library unloading.- Specified by:
address
in interfaceAddressable
- Returns:
- the memory address of this lookup symbol.
-