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:
java.lang.AutoCloseable
,ClassFileLocator
,java.io.Closeable
,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.ClassFileLocator
ClassFileLocator.Compound, ClassFileLocator.Filtering, ClassFileLocator.ForClassLoader, ClassFileLocator.ForFolder, ClassFileLocator.ForInstrumentation, ClassFileLocator.ForJarFile, ClassFileLocator.ForModule, ClassFileLocator.ForModuleFile, ClassFileLocator.ForUrl, ClassFileLocator.MultiReleaseAware, ClassFileLocator.NoOp, ClassFileLocator.PackageDiscriminating, ClassFileLocator.Resolution, ClassFileLocator.Simple
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType
DynamicType.AbstractBase, DynamicType.Builder<T>, DynamicType.Default, DynamicType.Loaded<T>, DynamicType.Unloaded<T>
-
-
Field Summary
-
Fields inherited from interface net.bytebuddy.dynamic.ClassFileLocator
CLASS_FILE_EXTENSION, META_INF_VERSIONS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<TypeDescription,java.lang.Class<?>>
getAllLoaded()
Returns all loaded types that are implied by this dynamic type.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.ClassFileLocator
locate
-
Methods inherited from interface net.bytebuddy.dynamic.DynamicType
close, getAllTypeDescriptions, getAllTypes, getAuxiliaries, getAuxiliaryTypeDescriptions, getAuxiliaryTypes, getBytes, getLoadedTypeInitializer, 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.
-
getAllLoaded
java.util.Map<TypeDescription,java.lang.Class<?>> getAllLoaded()
Returns all loaded types that are implied by this dynamic type.- Returns:
- All loaded types that are implied by this dynamic type.
-
-