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.@HashCodeAndEqualsPlugin.Enhance protected static class DynamicType.Default.Loaded<T> extends DynamicType.Default implements DynamicType.Loaded<T>
DynamicType.Default.Dispatcher, DynamicType.Default.Loaded<T>, DynamicType.Default.Unloaded<T>
DynamicType.Builder<T>, DynamicType.Default, DynamicType.Loaded<T>, DynamicType.Unloaded<T>
auxiliaryTypes, binaryRepresentation, DISPATCHER, loadedTypeInitializer, typeDescription
Modifier | Constructor and Description |
---|---|
protected |
Loaded(TypeDescription typeDescription,
byte[] typeByte,
LoadedTypeInitializer loadedTypeInitializer,
List<? extends DynamicType> auxiliaryTypes,
Map<TypeDescription,Class<?>> loadedTypes)
Creates a new representation of a loaded dynamic type.
|
Modifier and Type | Method and Description |
---|---|
Class<? extends T> |
getLoaded()
Returns the loaded main class.
|
Map<TypeDescription,Class<?>> |
getLoadedAuxiliaryTypes()
Returns a map of all loaded auxiliary types to this dynamic type.
|
getAllTypes, getAuxiliaryTypes, getBytes, getLoadedTypeInitializers, getTypeDescription, hasAliveLoadedTypeInitializers, inject, inject, saveIn, toJar, toJar
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllTypes, getAuxiliaryTypes, getBytes, getLoadedTypeInitializers, getTypeDescription, hasAliveLoadedTypeInitializers, inject, inject, saveIn, toJar, toJar
protected Loaded(TypeDescription typeDescription, byte[] typeByte, LoadedTypeInitializer loadedTypeInitializer, List<? extends DynamicType> auxiliaryTypes, Map<TypeDescription,Class<?>> loadedTypes)
typeDescription
- A description of this dynamic type.typeByte
- An array of byte of the binary representation of this dynamic type.loadedTypeInitializer
- The type initializer of this dynamic type.auxiliaryTypes
- The auxiliary types that are required for this dynamic type.loadedTypes
- A map of loaded types for this dynamic type and all its auxiliary types.public Class<? extends T> getLoaded()
getLoaded
in interface DynamicType.Loaded<T>
public 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.
getLoadedAuxiliaryTypes
in interface DynamicType.Loaded<T>
Copyright © 2014–2020. All rights reserved.