Interface ClassHierarchyResolver.ClassHierarchyInfo
- Enclosing interface:
ClassHierarchyResolverPREVIEW
public static sealed interface ClassHierarchyResolver.ClassHierarchyInfo
ClassHierarchyInfo
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.
Information about a resolved class.
- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionIndicates that a class is a declared class, with the specific given super class.Indicates that a class is an interface.
-
Method Details
-
ofClass
Indicates that a class is a declared class, with the specific given super class.- Parameters:
superClass
- descriptor of the super class, may benull
- Returns:
- the info indicating the super class
-
ofInterface
Indicates that a class is an interface.- Returns:
- the info indicating an interface
-
ClassHierarchyInfo
when preview features are enabled.