com.kenai.jaffl

Class Platform.CPU

public static class Platform.CPU extends 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. Do not rename.
Field Summary
static Platform.CPUI386
Intel ia32
static Platform.CPUPPC
Power PC 32 bit
static Platform.CPUPPC64
Power PC 64 bit
static Platform.CPUS390X
IBM zSeries S/390 64 bit
static Platform.CPUSPARC
Sun sparc 32 bit
static Platform.CPUSPARCV9
Sun sparc 64 bit
static Platform.CPUUNKNOWN
Unknown CPU
static List<Platform.CPU>VALUES
An immutable list containing the values comprising this enum class in the order they're declared.
static Platform.CPUX86_64
AMD 64 bit (aka EM64T/X64)
Method Summary
List<Platform.CPU>family()
Returns an immutable list containing the values comprising this enum class in the order they're declared.
static Platform.CPUvalueOf(String name)
Static factory to return the enum constant pertaining to the given string name.

Field Detail

I386

public static final Platform.CPU I386
Intel ia32

PPC

public static final Platform.CPU PPC
Power PC 32 bit

PPC64

public static final Platform.CPU PPC64
Power PC 64 bit

S390X

public static final Platform.CPU S390X
IBM zSeries S/390 64 bit

SPARC

public static final Platform.CPU SPARC
Sun sparc 32 bit

SPARCV9

public static final Platform.CPU SPARCV9
Sun sparc 64 bit

UNKNOWN

public static final Platform.CPU UNKNOWN
Unknown CPU

VALUES

public static final List<Platform.CPU> VALUES
An immutable list containing the values comprising this enum class in the order they're declared. This field may be used to iterate over the constants as follows:
for(CPU c : CPU.VALUES)
    System.out.println(c);

X86_64

public static final Platform.CPU X86_64
AMD 64 bit (aka EM64T/X64)

Method Detail

family

public final List<Platform.CPU> family()
Returns an immutable list containing the values comprising this enum class in the order they're declared. This instance method simply returns VALUES. Few programmers should have any need to use this method. It is provided for use by sophisticated enum-based data structures to prevent the need for reflective access to VALUES.

Returns: an immutable list containing the values comprising this enum class, in the order they're declared.

valueOf

public static final Platform.CPU valueOf(String name)
Static factory to return the enum constant pertaining to the given string name. The string must match exactly an identifier used to declare an enum constant in this type.

Throws: IllegalArgumentException if this enum class has no constant with the specified name.