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
public static interface DynamicType.Loaded<T> extends 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<? extends T>
getLoaded()
Returns the loaded main class.java.util.Map<TypeDescription,java.lang.Class<?>>
getLoadedAuxiliaryTypes()
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 Detail
-
getLoaded
java.lang.Class<? extends T> getLoaded()
Returns the loaded main class.- Returns:
- A loaded class representation of this dynamic type.
-
getLoadedAuxiliaryTypes
java.util.Map<TypeDescription,java.lang.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.
-
-