Interface DynamicType.Loaded<T>

Type Parameters:
T - The most specific known loaded type that is implemented by this dynamic type, usually the type itself, an interface or the direct super class.
All Superinterfaces:
DynamicType
All Known Implementing Classes:
DynamicType.Default.Loaded
Enclosing interface:
DynamicType

public static interface DynamicType.Loaded<T> extends DynamicType
A dynamic type that has been loaded into the running instance of the Java virtual machine.
  • Method Details

    • getLoaded

      Class<? extends T> getLoaded()
      Returns the loaded main class.
      Returns:
      A loaded class representation of this dynamic type.
    • getLoadedAuxiliaryTypes

      Map<TypeDescription,Class<?>> getLoadedAuxiliaryTypes()

      Returns a map of all loaded auxiliary types to this dynamic type.

      Note: The type descriptions will most likely differ from the binary representation of this type. Normally, annotations and intercepted methods are not added to the type descriptions of auxiliary types.

      Returns:
      A mapping from the fully qualified names of all auxiliary types to their loaded class representations.
    • getAllLoaded

      Map<TypeDescription,Class<?>> getAllLoaded()
      Returns all loaded types that are implied by this dynamic type.
      Returns:
      All loaded types that are implied by this dynamic type.