Package net.bytebuddy.dynamic
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
A dynamic type that has been loaded into the running instance of the Java virtual machine.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType
DynamicType.Builder<T>, DynamicType.Default, DynamicType.Loaded<T>, DynamicType.Unloaded<T>
-
Method Summary
Modifier and TypeMethodDescriptionMap<TypeDescription,
Class<?>> Returns all loaded types that are implied by this dynamic type.Returns the loaded main class.Map<TypeDescription,
Class<?>> Returns a map of all loaded auxiliary types to this dynamic type.Methods inherited from interface net.bytebuddy.dynamic.DynamicType
getAllTypes, getAuxiliaryTypes, getBytes, getLoadedTypeInitializers, getTypeDescription, hasAliveLoadedTypeInitializers, inject, inject, saveIn, toJar, toJar
-
Method Details
-
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.
-