ClassDesc (Java SE 23 & JDK 23)
-
Nested Class Summary
-
Method Summary
arrayType(int rank) Returns a ClassDesc for an array type of the specified rank, whose component type is described by this ClassDesc.
Returns the component type of this ClassDesc, if it describes an array type, or
nullotherwise.Returns a field type descriptor string for this type
Returns a human-readable name for the type described by this descriptor.
booleanCompare the specified object with this descriptor for equality.
default booleanisArray()Returns whether this ClassDesc describes an array type.
default booleanReturns whether this ClassDesc describes a class or interface type.
default booleanReturns whether this ClassDesc describes a primitive type.
nested(String firstNestedName, String... moreNestedNames) Returns a ClassDesc for a class or interface type, given the name of the class or interface, such as
"java.lang.String".Returns a ClassDesc for a class or interface type, given a package name and the unqualified (simple) name for the class or interface.
Returns a ClassDesc given a descriptor string for a class, interface, array, or primitive type.
Returns a ClassDesc for a class or interface type, given the name of the class or interface in internal form, such as
"java/lang/String".Returns the package name of this ClassDesc, if it describes a class or interface type.
-
Method Details
-
of
-
ofInternalName
-
of
-
ofDescriptor
-
arrayType
-
arrayType
-
nested
-
nested
-
isArray
-
isPrimitive
-
isClassOrInterface
-
componentType
-
packageName
-
displayName
-
descriptorString
-
resolveConstantDesc
-
equals
-