Uses of Interface java.lang.classfile.ClassHierarchyResolver (Java SE 25 & JDK 25)
Description: use: module: java.base, package: java.lang.classfile, interface: ClassHierarchyResolver

# Uses of Interface
java.lang.classfile.ClassHierarchyResolver

Packages that use ClassHierarchyResolver
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.

- ## Uses of ClassHierarchyResolver in java.lang.classfile

  Methods in java.lang.classfile that return ClassHierarchyResolver
  Modifier and Type
  Method
  Description
  `default ClassHierarchyResolver`
  ClassHierarchyResolver.`cached()`
  Returns a `ClassHierarchyResolver` that caches class hierarchy information from this resolver.
  `default ClassHierarchyResolver`
  ClassHierarchyResolver.`cached(Supplier<Map<ClassDesc, ClassHierarchyResolver.ClassHierarchyInfo>> cacheFactory)`
  Returns a `ClassHierarchyResolver` that caches class hierarchy information from this resolver.
  `ClassHierarchyResolver`
  ClassFile.ClassHierarchyResolverOption.`classHierarchyResolver()`
  Returns the class hierarchy resolver.
  `static ClassHierarchyResolver`
  ClassHierarchyResolver.`defaultResolver()`
  Returns the default instance of `ClassHierarchyResolver` that gets `ClassHierarchyResolver.ClassHierarchyInfo` from system class loader with reflection.
  `static ClassHierarchyResolver`
  ClassHierarchyResolver.`of(Collection<ClassDesc> interfaces, Map<ClassDesc, ClassDesc> classToSuperClass)`
  Returns a `ClassHierarchyResolver` that extracts class hierarchy information from collections of class hierarchy metadata.
  `static ClassHierarchyResolver`
  ClassHierarchyResolver.`ofClassLoading(ClassLoader loader)`
  Returns a `ClassHierarchyResolver` that extracts class hierarchy information via classes loaded by a class loader with reflection.
  `static ClassHierarchyResolver`
  ClassHierarchyResolver.`ofClassLoading(MethodHandles.Lookup lookup)`
  Returns a `ClassHierarchyResolver` that extracts class hierarchy information via classes accessible to a `MethodHandles.Lookup` with reflection.
  `static ClassHierarchyResolver`
  ClassHierarchyResolver.`ofResourceParsing(ClassLoader loader)`
  Returns a `ClassHierarchyResolver` that extracts class hierarchy information from `class` files located by a class loader.
  `static ClassHierarchyResolver`
  ClassHierarchyResolver.`ofResourceParsing(Function<ClassDesc, InputStream> classStreamResolver)`
  Returns a `ClassHierarchyResolver` that extracts class hierarchy information from `class` files returned by a mapping function.
  `default ClassHierarchyResolver`
  ClassHierarchyResolver.`orElse(ClassHierarchyResolver other)`
  Chains this `ClassHierarchyResolver` with another to be consulted if this resolver does not know about the specified class.
  Methods in java.lang.classfile with parameters of type ClassHierarchyResolver
  Modifier and Type
  Method
  Description
  `static ClassFile.ClassHierarchyResolverOption`
  ClassFile.ClassHierarchyResolverOption.`of(ClassHierarchyResolver classHierarchyResolver)`
  Returns an option describing the class hierarchy resolver to use.
  `default ClassHierarchyResolver`
  ClassHierarchyResolver.`orElse(ClassHierarchyResolver other)`
  Chains this `ClassHierarchyResolver` with another to be consulted if this resolver does not know about the specified class.