Package Summary Overview Summary

Module java.base
Package java.lang.classfilePREVIEW

# Interface ClassHierarchyResolver.ClassHierarchyInfo

Enclosing interface:
  `ClassHierarchyResolverPREVIEW`

public static sealed interface ClassHierarchyResolver.ClassHierarchyInfo
`ClassHierarchyInfo` is a preview API of the Java platform.
Programs can only use `ClassHierarchyInfo` when preview features are enabled.
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

  Static Methods
  Modifier and Type
  Method
  Description
  `static ClassHierarchyResolver.ClassHierarchyInfoPREVIEW`
  `ofClass (ClassDesc superClass)`
  Indicates that a class is a declared class, with the specific given super class.
  `static ClassHierarchyResolver.ClassHierarchyInfoPREVIEW`
  `ofInterface()`
  Indicates that a class is an interface.

- ## Method Details

  - ### ofClass

    static ClassHierarchyResolver.ClassHierarchyInfoPREVIEW ofClass (ClassDesc superClass)
    Indicates that a class is a declared class, with the specific given super class.
    Parameters:
      `superClass` - descriptor of the super class, may be `null`
    Returns:
      the info indicating the super class

  - ### ofInterface

    static ClassHierarchyResolver.ClassHierarchyInfoPREVIEW ofInterface()
    Indicates that a class is an interface.
    Returns:
      the info indicating an interface