@HashCodeAndEqualsPlugin.Enhance public static class DynamicType.Default extends DynamicType.AbstractBase
Modifier and Type | Class and Description |
---|---|
protected static class |
DynamicType.Default.Loaded<T>
A default implementation of a loaded dynamic type.
|
static class |
DynamicType.Default.Unloaded<T>
A default implementation of an unloaded dynamic type.
|
DynamicType.AbstractBase, DynamicType.Builder<T>, DynamicType.Default
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
Modifier and Type | Field and Description |
---|---|
protected List<? extends DynamicType> |
auxiliaryTypes
A list of auxiliary types for this dynamic type.
|
protected byte[] |
binaryRepresentation
The byte array representing this dynamic type.
|
protected LoadedTypeInitializer |
loadedTypeInitializer
The loaded type initializer for this dynamic type.
|
protected TypeDescription |
typeDescription
A type description of this dynamic type.
|
META_INF_VERSIONS
Constructor and Description |
---|
Default(TypeDescription typeDescription,
byte[] binaryRepresentation,
LoadedTypeInitializer loadedTypeInitializer,
List<? extends DynamicType> auxiliaryTypes)
Creates a new dynamic type.
|
Modifier and Type | Method and Description |
---|---|
List<? extends DynamicType> |
getAuxiliaries()
Returns all auxiliary types of this dynamic type.
|
byte[] |
getBytes()
Returns a byte array representing this dynamic type.
|
LoadedTypeInitializer |
getLoadedTypeInitializer()
Returns the loaded type initializer of this dynamic type.
|
TypeDescription |
getTypeDescription()
Returns a description of this dynamic type.
|
close, getAllTypeDescriptions, getAllTypes, getAuxiliaryTypeDescriptions, getAuxiliaryTypes, getLoadedTypeInitializers, hasAliveLoadedTypeInitializers, inject, inject, locate, saveIn, toJar, toJar
protected final TypeDescription typeDescription
protected final byte[] binaryRepresentation
protected final LoadedTypeInitializer loadedTypeInitializer
protected final List<? extends DynamicType> auxiliaryTypes
public Default(TypeDescription typeDescription, byte[] binaryRepresentation, LoadedTypeInitializer loadedTypeInitializer, List<? extends DynamicType> auxiliaryTypes)
typeDescription
- A description of this dynamic type.binaryRepresentation
- A byte array containing the binary representation of this dynamic type. The array must not be modified.loadedTypeInitializer
- The loaded type initializer of this dynamic type.auxiliaryTypes
- The auxiliary type required for this dynamic type.public TypeDescription getTypeDescription()
Returns a description of this dynamic type.
Note: This description will most likely differ from the binary representation of this type. Normally, annotations and intercepted methods are not added to this type description.
public byte[] getBytes()
public LoadedTypeInitializer getLoadedTypeInitializer()
public List<? extends DynamicType> getAuxiliaries()
Copyright © 2014–2025. All rights reserved.