Package com.kenai.jffi.internal
Class StubLoader
java.lang.Object
com.kenai.jffi.internal.StubLoader
public class StubLoader
extends java.lang.Object
Loads the native stub library. This is intended to only ever be called
reflectively, so it cannot access other jffi classes.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStubLoader.CPUThe common names of cpu architectures.static classStubLoader.OS -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTMPDIR_EXEC_ERRORstatic java.lang.StringTMPDIR_WRITE_ERRORstatic intVERSION_MAJORstatic intVERSION_MINOR -
Constructor Summary
Constructors Constructor Description StubLoader() -
Method Summary
Modifier and Type Method Description static StubLoader.CPUgetCPU()static java.lang.ThrowablegetFailureCause()static StubLoader.OSgetOS()static java.lang.StringgetPlatformName()Gets the name of thisPlatform.static booleanisLoaded()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
VERSION_MAJOR
public static final int VERSION_MAJOR -
VERSION_MINOR
public static final int VERSION_MINOR -
TMPDIR_WRITE_ERROR
public static final java.lang.String TMPDIR_WRITE_ERROR -
TMPDIR_EXEC_ERROR
public static final java.lang.String TMPDIR_EXEC_ERROR
-
-
Constructor Details
-
StubLoader
public StubLoader()
-
-
Method Details
-
isLoaded
public static final boolean isLoaded() -
getFailureCause
public static final java.lang.Throwable getFailureCause() -
getCPU
-
getOS
-
getPlatformName
public static java.lang.String getPlatformName()Gets the name of thisPlatform.- Returns:
- The name of this platform.
-