public static boolean isXXX() method
that is true when running on that architecture.
The values of `OPENJDK_TARGET_CPU` from the build are mapped to the
architecture values.
| Modifier and Type | Field and Description |
|---|---|
| public static final Architecture | |
| private final int | |
| public static final Architecture | |
| private final ByteOrder | |
| private static final Architecture | |
| public static final Architecture | |
| public static final Architecture | |
| public static final Architecture | |
| public static final Architecture | |
| public static final Architecture | |
| public static final Architecture | |
| public static final Architecture | |
| public static final Architecture | |
| public static final Architecture | |
| public static final Architecture | |
| public static final Architecture | |
| public static final Architecture |
| Access | Constructor and Description |
|---|---|
| private | Architecture(int
number of address bits, typically 64 or 32 addrSize, ByteOrder the byte order, big-endian or little-endian byteOrder)Construct an Architecture with number of address bits and byte order. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the number of address bits, typically 64 or 32Returns the number of address bits, typically 64 or 32. |
| public ByteOrder | |
| public static Architecture | |
| private static Architecture | |
| public static boolean | Returns: true if the current architecture is 64-bitReturns |
| public static boolean | Returns: true if the current architecture is AARCH64Returns |
| public static boolean | Returns: true if the current architecture is ARMReturns |
| public static boolean | Returns: true if the current architecture is little-endianReturns |
| public static boolean | Returns: true if the current architecture is LOONGARCH64Returns |
| public static boolean | Returns: true if the current architecture is MIPS64ELReturns |
| public static boolean | Returns: true if the current architecture is MIPSELReturns |
| public static boolean | Returns: true if the current architecture is PPC, big-endianReturns |
| public static boolean | Returns: true if the current architecture is PPC64, big-endianReturns |
| public static boolean | Returns: true if the current architecture is PPC64, little-endianReturns |
| public static boolean | Returns: true if the current architecture is RISCV64Returns |
| public static boolean | Returns: true if the current architecture is S390Returns |
| public static boolean | Returns: true if the current architecture is SPARCV9Returns |
| public static boolean | Returns: true if the current architecture is X64, Aka amd64Returns |
| public static boolean | Returns: true if the current architecture is X86Returns |
| public static Architecture | Returns: the Architecture by name or an alias for the architecturean Architecture name or alias for the architecture. archName)Returns the Architecture by name or an alias for the architecture. |
| public static Architecture | |
| public static Architecture[] |
| AARCH64 | back to summary |
|---|---|
| public static final Architecture AARCH64 | |
| addrSize | back to summary |
|---|---|
| private final int addrSize | |
| ARM | back to summary |
|---|---|
| public static final Architecture ARM | |
| byteOrder | back to summary |
|---|---|
| private final ByteOrder byteOrder | |
| CURRENT_ARCH | back to summary |
|---|---|
| private static final Architecture CURRENT_ARCH | |
| LOONGARCH64 | back to summary |
|---|---|
| public static final Architecture LOONGARCH64 | |
| MIPS64EL | back to summary |
|---|---|
| public static final Architecture MIPS64EL | |
| MIPSEL | back to summary |
|---|---|
| public static final Architecture MIPSEL | |
| OTHER | back to summary |
|---|---|
| public static final Architecture OTHER | |
| PPC | back to summary |
|---|---|
| public static final Architecture PPC | |
| PPC64 | back to summary |
|---|---|
| public static final Architecture PPC64 | |
| PPC64LE | back to summary |
|---|---|
| public static final Architecture PPC64LE | |
| RISCV64 | back to summary |
|---|---|
| public static final Architecture RISCV64 | |
| S390 | back to summary |
|---|---|
| public static final Architecture S390 | |
| SPARCV9 | back to summary |
|---|---|
| public static final Architecture SPARCV9 | |
| X64 | back to summary |
|---|---|
| public static final Architecture X64 | |
| X86 | back to summary |
|---|---|
| public static final Architecture X86 | |
| Architecture | back to summary |
|---|---|
| private Architecture(int addrSize, ByteOrder byteOrder) Construct an Architecture with number of address bits and byte order.
| |
| addressSize | back to summary |
|---|---|
| public int addressSize() Returns the number of address bits, typically 64 or 32.
| |
| byteOrder | back to summary |
|---|---|
| public ByteOrder byteOrder() Returns the byte order,
| |
| current | back to summary |
|---|---|
| public static Architecture current() Returns the current architecture.
| |
| initArch | back to summary |
|---|---|
| private static Architecture initArch(String archName) Returns the Architecture of the built architecture. Build time names are mapped to respective uppercase enum values. Names not recognized are mapped to Architecture.OTHER. | |
| is64bit | back to summary |
|---|---|
| public static boolean is64bit() Returns
| |
| isAARCH64 | back to summary |
|---|---|
| public static boolean isAARCH64() Returns
| |
| isARM | back to summary |
|---|---|
| public static boolean isARM() Returns
| |
| isLittleEndian | back to summary |
|---|---|
| public static boolean isLittleEndian() Returns
| |
| isLOONGARCH64 | back to summary |
|---|---|
| public static boolean isLOONGARCH64() Returns
| |
| isMIPS64EL | back to summary |
|---|---|
| public static boolean isMIPS64EL() Returns
| |
| isMIPSEL | back to summary |
|---|---|
| public static boolean isMIPSEL() Returns
| |
| isPPC | back to summary |
|---|---|
| public static boolean isPPC() Returns
| |
| isPPC64 | back to summary |
|---|---|
| public static boolean isPPC64() Returns
| |
| isPPC64LE | back to summary |
|---|---|
| public static boolean isPPC64LE() Returns
| |
| isRISCV64 | back to summary |
|---|---|
| public static boolean isRISCV64() Returns
| |
| isS390 | back to summary |
|---|---|
| public static boolean isS390() Returns
| |
| isSPARCV9 | back to summary |
|---|---|
| public static boolean isSPARCV9() Returns
| |
| isX64 | back to summary |
|---|---|
| public static boolean isX64() Returns
| |
| isX86 | back to summary |
|---|---|
| public static boolean isX86() Returns
| |
| lookupByName | back to summary |
|---|---|
| public static Architecture lookupByName(String archName) Returns the Architecture by name or an alias for the architecture. The names are mapped to upper case before mapping to an Architecture.
| |
| valueOf | back to summary |
|---|---|
| public static Architecture valueOf(String name) | |
| values | back to summary |
|---|---|
| public static Architecture[] values() | |