| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static enum | Platform.CPU
The common names of cpu architectures Note The names of the enum values are used in other parts of the code to determine where to find the native stub library. |
| private static class | Platform.Darwin
A |
| private static class | |
| public static enum | Platform.OS
The common names of operating systems Note The names of the enum values are used in other parts of the code to determine where to find the native stub library. |
| private static class | Platform.SingletonHolder
Holds a single, lazily loaded instance of |
| private static class | Platform.Windows
A |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private static final Locale | |
| private final Platform. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final long | Returns: the size of a pointer in bitsGets the 32/64bit mask of a C address/pointer on the native platform. |
| public final int | Returns: the size of a pointer in bitsGets the size of a C address/pointer on the native platform. |
| private static final Platform. | |
| private static final Platform | Returns: An instance ofPlatformThe operating system. osDetermines the |
| public final Platform. | Returns: ACPU value representing the current processor architecture.Gets the current processor architecture the JVM is running on. |
| public final int | Returns: A number representing the java version. e.g. 5 for java 1.5, 6 for java 1.6Gets the version of the Java Virtual Machine (JVM) jffi is running on. |
| public String | |
| public String | |
| public final Platform. | Returns: AOS value representing the current Operating System.Gets the current Operating System. |
| public static final Platform | |
| public boolean | Returns: true if the platform is supported, else false.Checks if the current platform is supported by JFFI. |
| public abstract int | |
| public String | Returns: The mapped library name.The library name to map libName)Maps from a generic library name (e.g. "c") to the platform specific library name. |
| private static Platform | |
| private static Platform | |
| private static Platform | |
| private static boolean |
| javaVersionMajor | back to summary |
|---|---|
| private final int javaVersionMajor | |
| LOCALE | back to summary |
|---|---|
| private static final Locale LOCALE | |
| os | back to summary |
|---|---|
| private final Platform. | |
| Platform | back to summary |
|---|---|
| private Platform(Platform. Constructs a new | |
| addressMask | back to summary |
|---|---|
| public final long addressMask() Gets the 32/64bit mask of a C address/pointer on the native platform.
| |
| addressSize | back to summary |
|---|---|
| public final int addressSize() Gets the size of a C address/pointer on the native platform.
| |
| determineOS | back to summary |
|---|---|
| private static final Platform. Determines the operating system jffi is running on | |
| determinePlatform | back to summary |
|---|---|
| private static final Platform determinePlatform(Platform. Determines the | |
| getCPU | back to summary |
|---|---|
| public final Platform. Gets the current processor architecture the JVM is running on. | |
| getJavaMajorVersion | back to summary |
|---|---|
| public final int getJavaMajorVersion() Gets the version of the Java Virtual Machine (JVM) jffi is running on.
| |
| getLibraryNamePattern | back to summary |
|---|---|
| public String getLibraryNamePattern() Gets the regex string used to match platform-specific libraries | |
| getName | back to summary |
|---|---|
| public String getName() Gets the name of this
| |
| getOS | back to summary |
|---|---|
| public final Platform. Gets the current Operating System. | |
| getPlatform | back to summary |
|---|---|
| public static final Platform getPlatform() Gets the current
| |
| isSupported | back to summary |
|---|---|
| public boolean isSupported() Checks if the current platform is supported by JFFI.
| |
| longSize | back to summary |
|---|---|
| public abstract int longSize() Gets the size of a C 'long' on the native platform.
| |
| mapLibraryName | back to summary |
|---|---|
| public String mapLibraryName(String libName) Maps from a generic library name (e.g. "c") to the platform specific library name. | |
| newDarwinPlatform | back to summary |
|---|---|
| private static Platform newDarwinPlatform() | |
| newDefaultPlatform | back to summary |
|---|---|
| private static Platform newDefaultPlatform(Platform. | |
| newWindowsPlatform | back to summary |
|---|---|
| private static Platform newWindowsPlatform() | |
| startsWithIgnoreCase | back to summary |
|---|---|
| private static boolean startsWithIgnoreCase(String s1, String s2) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static Platform. | Returns: A member of theCPU enum.Determines the CPU architecture the JVM is running on. |
| cpu | back to summary |
|---|---|
| public static final Platform. | |
| ArchHolder | back to summary |
|---|---|
| private ArchHolder() | |
| determineCPU | back to summary |
|---|---|
| private static Platform. Determines the CPU architecture the JVM is running on. This normalizes all the variations that are equivalent (e.g. i386, x86, i86pc) into a common cpu type. | |
Note
The names of the enum values are used in other parts of the code to determine where to find the native stub library. Do not rename.
| Modifier and Type | Field and Description |
|---|---|
| public static final Platform. | AARCH64
AARCH64 |
| public final long | |
| public static final Platform. | ARM
ARM |
| public final int | |
| public static final Platform. | I386
Intel ia32 |
| public static final Platform. | MIPS64EL
MIPS64EL |
| public static final Platform. | PPC
Power PC 32 bit |
| public static final Platform. | PPC64
Power PC 64 bit |
| public static final Platform. | PPC64LE
Power PC 64 bit little endian |
| public static final Platform. | S390X
IBM zSeries S/390 64 bit |
| public static final Platform. | SPARC
Sun sparc 32 bit |
| public static final Platform. | SPARCV9
Sun sparc 64 bit |
| public static final Platform. | UNKNOWN
Unknown CPU |
| public static final Platform. | X86_64
AMD 64 bit (aka EM64T/X64) |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. |
| public static Platform. | |
| public static Platform. |
| AARCH64 | back to summary |
|---|---|
| public static final Platform. AARCH64 | |
| addressMask | back to summary |
|---|---|
| public final long addressMask | |
| ARM | back to summary |
|---|---|
| public static final Platform. ARM | |
| dataModel | back to summary |
|---|---|
| public final int dataModel | |
| I386 | back to summary |
|---|---|
| public static final Platform. Intel ia32 | |
| MIPS64EL | back to summary |
|---|---|
| public static final Platform. MIPS64EL | |
| PPC | back to summary |
|---|---|
| public static final Platform. Power PC 32 bit | |
| PPC64 | back to summary |
|---|---|
| public static final Platform. Power PC 64 bit | |
| PPC64LE | back to summary |
|---|---|
| public static final Platform. Power PC 64 bit little endian | |
| S390X | back to summary |
|---|---|
| public static final Platform. IBM zSeries S/390 64 bit | |
| SPARC | back to summary |
|---|---|
| public static final Platform. Sun sparc 32 bit | |
| SPARCV9 | back to summary |
|---|---|
| public static final Platform. Sun sparc 64 bit | |
| UNKNOWN | back to summary |
|---|---|
| public static final Platform. Unknown CPU | |
| X86_64 | back to summary |
|---|---|
| public static final Platform. AMD 64 bit (aka EM64T/X64) | |
| CPU | back to summary |
|---|---|
| private CPU(int dataModel) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static Platform. | |
| values | back to summary |
|---|---|
| public static Platform. | |
Platform subclass representing the MacOS system.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getLibraryNamePattern()
Gets the regex string used to match platform-specific libraries
|
| public String | |
| public final int | longSize()
Implements abstract com. |
| public String | mapLibraryName(String
The library name to map libName)Overrides com. |
| Darwin | back to summary |
|---|---|
| public Darwin() | |
| getLibraryNamePattern | back to summary |
|---|---|
| public String getLibraryNamePattern() Overrides com. Doc from com. Gets the regex string used to match platform-specific libraries
| |
| getName | back to summary |
|---|---|
| public String getName() Overrides com. Doc from com. Gets the name of this | |
| longSize | back to summary |
|---|---|
| public final int longSize() Implements abstract com. Doc from com. Gets the size of a C 'long' on the native platform.
| |
| mapLibraryName | back to summary |
|---|---|
| public String mapLibraryName(String libName) Overrides com. Doc from com. Maps from a generic library name (e.g. "c") to the platform specific library name. | |
| Modifier and Type | Method and Description |
|---|---|
| public final int | longSize()
Implements abstract com. |
| Default | back to summary |
|---|---|
| public Default(Platform. | |
| longSize | back to summary |
|---|---|
| public final int longSize() Implements abstract com. Doc from com. Gets the size of a C 'long' on the native platform.
| |
Note
The names of the enum values are used in other parts of the code to determine where to find the native stub library. Do not rename.
| Modifier and Type | Field and Description |
|---|---|
| public static final Platform. | AIX
IBM AIX |
| public static final Platform. | DARWIN
MacOSX |
| public static final Platform. | DRAGONFLY
DragonFly |
| public static final Platform. | FREEBSD
FreeBSD |
| public static final Platform. | IBMI
IBM i |
| public static final Platform. | LINUX
Linux |
| public static final Platform. | NETBSD
NetBSD |
| public static final Platform. | OPENBSD
OpenBSD |
| public static final Platform. | SOLARIS
Solaris (and OpenSolaris) |
| public static final Platform. | UNKNOWN
No idea what the operating system is |
| public static final Platform. | WINDOWS
The evil borg operating system |
| public static final Platform. | ZLINUX
IBM zOS |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. |
| public static Platform. | |
| public static Platform. |
| AIX | back to summary |
|---|---|
| public static final Platform. IBM AIX | |
| DARWIN | back to summary |
|---|---|
| public static final Platform. MacOSX | |
| DRAGONFLY | back to summary |
|---|---|
| public static final Platform. DragonFly | |
| FREEBSD | back to summary |
|---|---|
| public static final Platform. FreeBSD | |
| IBMI | back to summary |
|---|---|
| public static final Platform. IBM i | |
| LINUX | back to summary |
|---|---|
| public static final Platform. Linux | |
| NETBSD | back to summary |
|---|---|
| public static final Platform. NetBSD | |
| OPENBSD | back to summary |
|---|---|
| public static final Platform. OpenBSD | |
| SOLARIS | back to summary |
|---|---|
| public static final Platform. Solaris (and OpenSolaris) | |
| UNKNOWN | back to summary |
|---|---|
| public static final Platform. No idea what the operating system is | |
| WINDOWS | back to summary |
|---|---|
| public static final Platform. The evil borg operating system | |
| ZLINUX | back to summary |
|---|---|
| public static final Platform. IBM zOS | |
| OS | back to summary |
|---|---|
| private OS() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static Platform. | |
| values | back to summary |
|---|---|
| public static Platform. | |
Platform
| Access | Constructor and Description |
|---|---|
| private |
| PLATFORM | back to summary |
|---|---|
| pack-priv static final Platform PLATFORM | |
| SingletonHolder | back to summary |
|---|---|
| private SingletonHolder() | |
Platform subclass representing the Windows system.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getLibraryNamePattern()
Gets the regex string used to match platform-specific libraries
|
| public final int | longSize()
Implements abstract com. |
| Windows | back to summary |
|---|---|
| public Windows() | |
| getLibraryNamePattern | back to summary |
|---|---|
| public String getLibraryNamePattern() Overrides com. Doc from com. Gets the regex string used to match platform-specific libraries
| |
| longSize | back to summary |
|---|---|
| public final int longSize() Implements abstract com. Doc from com. Gets the size of a C 'long' on the native platform.
| |