- All Implemented Interfaces:
Serializable
,Comparable<FunctionDescriptors>
,Constable
FunctionDescriptors
relies on preview features of the Java platform:
FunctionDescriptors
refers to one or more preview APIs:FunctionDescriptor
,ValueLayout
.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
The function descriptors.
Mappings
switch (c) {
case 'B' -> JAVA_BYTE;
case 'S' -> JAVA_SHORT;
case 'I' -> JAVA_INT;
case 'J' -> JAVA_LONG;
case 'C' -> JAVA_CHAR;
case 'Z' -> JAVA_BOOLEAN;
case 'F' -> JAVA_FLOAT;
case 'D' -> JAVA_DOUBLE;
case 'P' -> ADDRESS;
case 'p' -> MemoryUtil.ADDRESS_UNBOUNDED;
default -> throw new IllegalStateException();
}
- Since:
- 0.1.0
- Author:
- squid233
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the function descriptor.static FunctionDescriptorPREVIEW
ofDescriptor
(String str) Creates the function descriptor of the string.static ValueLayoutPREVIEW
ofValue
(char c) Returns the value layout of the specified character.static FunctionDescriptors
Returns the enum constant of this class with the specified name.static FunctionDescriptors[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
D
-
F
-
I
-
J
-
P
-
p
-
V
-
BV
-
DV
-
FV
-
II
-
IJ
-
IP
-
Ip
-
IV
-
IZ
-
JP
-
JV
-
JZ
-
PF
-
fd_PI
Make it doesn't confuse withMath.PI
. -
PJ
-
PP
-
Pp
-
PV
-
PZ
-
SV
-
ZV
-
DDV
-
FFV
-
FZV
-
IDV
-
IFV
-
III
-
IIJ
-
IIP
-
IIp
-
IIV
-
IIZ
-
IJV
-
IPI
-
IPP
-
IPp
-
IPV
-
IPZ
-
ISV
-
JIV
-
JJP
-
PFV
-
PII
-
PIV
-
PJP
-
PJp
-
PPI
-
PPP
-
PPp
-
PPV
-
SSV
-
BBBV
-
DDDV
-
FFFV
-
IDDV
-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
IIIIPZV
-
IIIIZIV
-
IIIPIIV
-
IIIPPIV
-
IIIPPPV
-
IIIZIPV
-
IIJJJJV
-
IIPJIIV
-
IPIPIPV
-
PIIIIPp
-
PIIIPII
-
PIPPPIp
-
PPIIIPI
-
PPIPIIV
-
PPPPPIp
-
BBBBFFFV
-
FFFFFFIF
-
FFFIIIBF
-
FFFIIIIF
-
IFFFFFFV
-
IIDDIIPV
-
IIFFFFPV
-
IIFFIIPV
-
IIIIIIIV
-
IIIIIIPV
-
IIIIIIZV
-
IIIIIPIV
-
IIIPIIIV
-
IIIPPPPV
-
IIIZIIIV
-
IIJJIIPV
-
IIPIIIIV
-
IIPPPPPI
-
IIPPPPPV
-
PPIIIIIV
-
FFFFFFFFV
-
IBBBBFFFV
-
IIIIIIIIV
-
IIIIIIIPV
-
IIIIPIPPV
-
IIPPPPPPI
-
PIPPPPPIp
-
FFBBBBFFFV
-
FFPIIPPIII
-
IFFFFFFFFV
-
IIIIIIIIIV
-
IIIIIIIIPV
-
IIIIIIIIZV
-
PIIIPIIIII
-
FFFFFFFFFFV
-
IDDIIDDIIPV
-
IFFIIFFIIPV
-
IIIIIIIIIIV
-
IIIIIIIIIPV
-
IFFFFFFFFFFV
-
IIDDIIDDIIPV
-
IIFFIIFFIIPV
-
IIIIIIIIIIPV
-
IIIPIPPPPPPV
-
PIIIPIIIIIII
-
FFFFFFFFFFFFV
-
IIIIIIIIIIIIV
-
IIIIIIIIIIIPV
-
PIIIPIIIIIIII
-
IFFFFFFFFFFFFV
-
FFFFFFFFFFFFFFFV
-
IIIIIIIIIIIIIIIV
-
PIIIPIIIIIIIIIPI
-
PIIIPIIIIIIIIIIIIPI
-
PIIIPIIIIIIIIIIIIPFFFFI
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
ofValue
Returns the value layout of the specified character.- Parameters:
c
- the character- Returns:
- the value layout of the specified character
- Throws:
IllegalArgumentException
- ifc
is not a value layout mark.
-
ofDescriptor
Creates the function descriptor of the string.- Parameters:
str
- the string- Returns:
- the function descriptor
-
descriptor
Returns the function descriptor.- Returns:
- the function descriptor
-
FunctionDescriptors
when preview features are enabled.