Top Description Inners Fields Methods
org.lwjgl.system

public Interface SharedLibrary

extends FunctionProvider, NativeResource, Pointer
Known Direct Implementers
org.lwjgl.system.SharedLibrary.Default, org.lwjgl.system.SharedLibrary.Delegate
Imports
javax.annotation.*

A FunctionProvider implementation that opens a platform-specific shared library and returns functions pointers from it.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
public abstract static class

Field Summary

Inherited from org.lwjgl.system.Pointer:
BITS32BITS64CLONG_SHIFTCLONG_SIZEPOINTER_SHIFTPOINTER_SIZE

Method Summary

Modifier and TypeMethod and Description
public String
getName()

Returns the library name.

public String

Returns:

the library path, or null if the path is not available.
getPath
()

Returns the library path, if available.

Inherited from org.lwjgl.system.FunctionProvider:
getFunctionAddressgetFunctionAddress
Inherited from org.lwjgl.system.NativeResource:
closefree
Inherited from org.lwjgl.system.Pointer:
address

Method Detail

getNameback to summary
public String getName()

Returns the library name.

getPathback to summary
public String getPath()

Returns the library path, if available.

Returns:String

the library path, or null if the path is not available.

Annotations
@Nullable
org.lwjgl.system back to summary

public abstract Class SharedLibrary.Default

extends Default
implements SharedLibrary
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.SharedLibrary, org.lwjgl.system.Pointer, org.lwjgl.system.NativeResource, java.lang.AutoCloseable, org.lwjgl.system.FunctionProvider
Known Direct Subclasses
org.lwjgl.system.linux.LinuxLibrary, org.lwjgl.system.macosx.MacOSXLibrary, org.lwjgl.system.windows.WindowsLibrary

Field Summary

Modifier and TypeField and Description
private final String
Inherited from org.lwjgl.system.Pointer.Default:
ADDRESSaddressBUFFER_CAPACITYBUFFER_CONTAINERBUFFER_LIMITBUFFER_MARKBUFFER_POSITIONUNSAFE

Constructor Summary

AccessConstructor and Description
protected
Default(String name, long handle)

Method Summary

Modifier and TypeMethod and Description
public String
getName()

Implements org.lwjgl.system.SharedLibrary.getName.

Returns the library name.
Inherited from org.lwjgl.system.Pointer.Default:
addressequalshashCodetoString

Field Detail

nameback to summary
private final String name

Constructor Detail

Defaultback to summary
protected Default(String name, long handle)

Method Detail

getNameback to summary
public String getName()

Implements org.lwjgl.system.SharedLibrary.getName.

Doc from org.lwjgl.system.SharedLibrary.getName.

Returns the library name.

Annotations
@Override
org.lwjgl.system back to summary

public abstract Class SharedLibrary.Delegate

extends Object
implements SharedLibrary
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.SharedLibrary, org.lwjgl.system.Pointer, org.lwjgl.system.NativeResource, java.lang.AutoCloseable, org.lwjgl.system.FunctionProvider

Field Summary

Modifier and TypeField and Description
protected final SharedLibrary

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public long
address()

Implements org.lwjgl.system.Pointer.address.

Returns the raw pointer address as a long value.
public void
free()

Implements org.lwjgl.system.NativeResource.free.

Frees any native resources held by this object.
public String
getName()

Implements org.lwjgl.system.SharedLibrary.getName.

Returns the library name.
public String
getPath()

Implements org.lwjgl.system.SharedLibrary.getPath.

Returns the library path, if available.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

libraryback to summary
protected final SharedLibrary library

Constructor Detail

Delegateback to summary
protected Delegate(SharedLibrary library)

Method Detail

addressback to summary
public long address()

Implements org.lwjgl.system.Pointer.address.

Doc from org.lwjgl.system.Pointer.address.

Returns the raw pointer address as a long value.

Returns:long

the pointer address

Annotations
@Override
freeback to summary
public void free()

Implements org.lwjgl.system.NativeResource.free.

Doc from org.lwjgl.system.NativeResource.free.

Frees any native resources held by this object.

Annotations
@Override
getNameback to summary
public String getName()

Implements org.lwjgl.system.SharedLibrary.getName.

Doc from org.lwjgl.system.SharedLibrary.getName.

Returns the library name.

Annotations
@Override
getPathback to summary
public String getPath()

Implements org.lwjgl.system.SharedLibrary.getPath.

Doc from org.lwjgl.system.SharedLibrary.getPath.

Returns the library path, if available.

Returns:String

the library path, or null if the path is not available.

Annotations
@Nullable
@Override