Class NativeLibrary.LoadedLibraryData

java.lang.Object
jnr.ffi.provider.jffi.NativeLibrary.LoadedLibraryData
Enclosing class:
NativeLibrary

public static class NativeLibrary.LoadedLibraryData extends Object
Data class containing information about a loaded native library. A list of all currently loaded libraries can be queried using Runtime.getLoadedLibraries() which will return a list of NativeLibrary.LoadedLibraryDatas.
  • Field Details

    • libraryNames

      private final List<String> libraryNames
    • searchPaths

      private final List<String> searchPaths
    • successfulPaths

      private final List<String> successfulPaths
  • Constructor Details

  • Method Details

    • getLibraryNames

      public List<String> getLibraryNames()
      Returns:
      the list of library names that were provided when this library was loaded
    • getSearchPaths

      public List<String> getSearchPaths()
      Returns:
      the list of paths that were used to search for the library, custom paths will always appear before any system default paths
    • getSuccessfulPaths

      public List<String> getSuccessfulPaths()
      Returns:
      the list of absolute paths of the loaded library files (.so, .dylib, .dll etc) that were actually loaded, these are the native library files that are being used for this library
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object