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:
AutoCloseable
,ClassFileLocator
,Closeable
,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.ClassFileLocator
ClassFileLocator.Compound, ClassFileLocator.Filtering, ClassFileLocator.ForClassLoader, ClassFileLocator.ForFolder, ClassFileLocator.ForInstrumentation, ClassFileLocator.ForJarFile, ClassFileLocator.ForModule, ClassFileLocator.ForModuleFile, ClassFileLocator.ForUrl, ClassFileLocator.NoOp, ClassFileLocator.PackageDiscriminating, ClassFileLocator.Resolution, ClassFileLocator.Simple
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType
DynamicType.Builder<T>, DynamicType.Default, DynamicType.Loaded<T>, DynamicType.Unloaded<T>
-
Field Summary
Fields inherited from interface net.bytebuddy.dynamic.ClassFileLocator
CLASS_FILE_EXTENSION
-
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.ClassFileLocator
locate
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.
-