Interface ClassHierarchyRecomputationContext


@Internal public interface ClassHierarchyRecomputationContext
Provides information required to compute class hierarchies when writing out a transformed classes bytecode, while recomputing stack frames.

Every class name passed to methods of this interface use dot-separated form.

  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Class<?>
    Returns the class identified by className, if it's already loaded and visible from the current classloader or null , if it's not.
    Loads and returns a class by name, if it's not subject to transformation.
    byte[]
    upToFrames(String className)
    Gets the class bytecode of any reachable class.
  • Method Details

    • findLoadedClass

      @Nullable @Nullable Class<?> findLoadedClass(String className)
      Returns the class identified by className, if it's already loaded and visible from the current classloader or null , if it's not.
      Returns:
      the class identified by className, if it's already loaded and visible from the current classloader or null , if it's not
    • upToFrames

      byte[] upToFrames(String className) throws ClassNotFoundException
      Gets the class bytecode of any reachable class. If the class is subject to transformation, any class processors that require frame recomputation will already be applied.
      Throws:
      ClassNotFoundException
    • locateParentClass

      Class<?> locateParentClass(String className) throws ClassNotFoundException
      Loads and returns a class by name, if it's not subject to transformation.
      Throws:
      ClassNotFoundException