com.kenai.jaffl
public abstract class Platform extends Object
Nested Class Summary | |
---|---|
static class | Platform.CPU
The common names of cpu architectures.
|
static class | Platform.OS
The common names of operating systems.
|
Field Summary | |
---|---|
protected Pattern | libPattern |
Method Summary | |
---|---|
long | addressMask()
Gets the 32/64bit mask of a C address/pointer on the native platform.
|
int | addressSize()
Gets the size of a C address/pointer on the native platform.
|
Platform.CPU | getCPU()
Gets the current processor architecture the JVM is running on.
|
int | getJavaMajorVersion()
Gets the version of the Java Virtual Machine (JVM) jffi is running on.
|
String | getName()
Gets the name of this Platform.
|
Platform.OS | getOS()
Gets the current Operating System.
|
static Platform | getPlatform()
Gets the current Platform
|
boolean | isBSD() |
boolean | isUnix() |
String | locateLibrary(String libName, List<String> libraryPath)
Searches through a list of directories for a native library.
|
int | longSize()
Gets the size of a C 'long' on the native platform.
|
String | mapLibraryName(String libName)
Maps from a generic library name (e.g. |
Returns: the size of a pointer in bits
Returns: the size of a pointer in bits
Returns: A CPU value representing the current processor architecture.
Returns: A number representing the java version. e.g. 5 for java 1.5, 6 for java 1.6
Returns: The name of this platform.
Returns: A OS value representing the current Operating System.
Returns: The current platform.
Parameters: libName the base name (e.g. "c") of the library to locate libraryPath the list of directories to search
Returns: the path of the library
Returns: the size of a long in bits
Parameters: libName The library name to map
Returns: The mapped library name.