Interface Signature.BaseTypeSig
BaseTypeSig
is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models the signature of a primitive type or void
- Since:
- 22
-
Nested Class Summary
Nested classes/interfaces declared in interface java.lang.classfile.SignaturePREVIEW
Signature.ArrayTypeSigPREVIEW, Signature.BaseTypeSigPREVIEW, Signature.ClassTypeSigPREVIEW, Signature.RefTypeSigPREVIEW, Signature.ThrowableSigPREVIEW, Signature.TypeArgPREVIEW, Signature.TypeParamPREVIEW, Signature.TypeVarSigPREVIEW
-
Method Summary
Modifier and TypeMethodDescriptionchar
baseType()
Returns the single-letter descriptor for the base type.static Signature.BaseTypeSigPREVIEW
of
(char baseType) Returns the signature of a primitive type or void.static Signature.BaseTypeSigPREVIEW
Returns the signature of a primitive type or void.Methods declared in interface java.lang.classfile.SignaturePREVIEW
signatureString
-
Method Details
-
baseType
char baseType()Returns the single-letter descriptor for the base type.- Returns:
- the single-letter descriptor for the base type
-
of
Returns the signature of a primitive type or void.- Parameters:
classDesc
- a symbolic descriptor for the base type, must correspond to a primitive type- Returns:
- the signature of a primitive type or void
-
of
Returns the signature of a primitive type or void.- Parameters:
baseType
- the single-letter descriptor for the base type- Returns:
- the signature of a primitive type or void
-
BaseTypeSig
when preview features are enabled.