Package net.bytebuddy.dynamic
@ByDefault
package net.bytebuddy.dynamic
This package contains classes and interfaces that are connected to writing the byte stream that represents a Java
type that is dynamically created and for loading this type into a running JVM process.
-
ClassDescriptionLocates a class file or its byte array representation when it is given its type description.A compound
ClassFileLocator
that chains several locators.A class file locator that queries a class loader for binary representations of class files.A privileged action for creating a proxy class loader for the boot class loader.A class file locator that queries a class loader for binary representations of class files.A class file locator that finds files from a standardized Java folder structure with folders donating packages and class files being saved as<classname>.class
files within their package folder.A Java agent that allows the location of class files by emulating a retransformation.A delegate that is queried for loading a class.A default implementation of a class loading delegate.A privileged action for creating a proxy class loader for the boot class loader.A class loading delegate that allows the location of explicitly registered classes that cannot be located by a class loader directly.A class loading delegate that accounts for asun.reflect.DelegatingClassLoader
which cannot load its own classes by name.Representation of a JavaField
.An action for creating a dispatcher.An uninitialized version of a dispatcher for extracting a class loader's loaded classes.Represents a field that could be located.Represents a field that could not be located.A dispatcher to interact with theInstrumentation
API.A non-operational class file transformer that remembers the binary format of a given class.A class file locator that locates classes within a Java jar file.A class file locator that locates class files by querying a Java module'sgetResourceAsStream
method.A class file locator for a Java module that only references this module weakly.A class file locator that locates classes within a Java jmod file.A class file locator that reads class files from one or several URLs.An action to create a class loader with the purpose of locating classes from an URL location.A class file locator that cannot locate any class files.A class file locator that discriminates by a type's package.Represents a class file as binary data.Represents a byte array as binary data.A canonical representation of an illegal binary representation.A simple class file locator that returns class files from a selection of given types.A dynamic type that is created at runtime, usually as the result of applying aDynamicType.Builder
or as the result of anAuxiliaryType
.A builder for creating a dynamic type.An abstract base implementation of a dynamic type builder.An adapter implementation of a dynamic type builder.A delegator for a dynamic type builder delegating all invocations to another dynamic type builder.A builder for a field definition.A builder for an optional field definition.An abstract base implementation for an optional field definition.A builder for an optional field definition that allows for defining a value.An abstract base implementation of an optional field definition that allows for defining a value.An adapter for an optional field definition that allows for defining a value.A builder for a field definition that allows for defining a value.An inner type definition for defining a type that is contained within another type, method or constructor.An inner type definition for defining a type that is contained within another type.A builder for a method definition.An abstract base implementation of a method definition.An adapter implementation of a method definition.A builder for defining an implementation of a method and optionally defining a type variable or thrown exception.An abstract base implementation for defining an implementation of a method and optionally defining a type variable or thrown exception.A builder for defining an implementation of a method.An abstract base implementation for a builder optionally defining an implementation of a method.A builder for optionally defining an implementation of a method.A builder for defining an implementation of a method and optionally defining a type variable, thrown exception or method parameter.An abstract base implementation for defining an implementation of a method and optionally defining a type variable, thrown exception or parameter type.A builder for optionally defining an annotation on a parameter.An abstract base implementation for defining an annotation on a parameter.An adapter implementation for defining an annotation on a parameter.A builder for defining an implementation of a method and optionally defining a type variable, thrown exception or method parameter.An abstract base implementation for an initial parameter definition.A builder for defining an implementation of a method and optionally defining a type variable, thrown exception or a parameter type.An abstract base implementation of an exception definition.A builder for optionally defining an annotation on a parameter.An abstract base implementation of a simple parameter definition.An adapter implementation of a simple parameter definition.A builder for a method definition with a receiver type.An abstract base implementation of a method definition that can accept a receiver type.A builder for defining an implementation of a method and optionally defining a type variable.An abstract base implementation for defining an implementation of a method and optionally defining a type variable.A builder for optionally defining an annotation for a type variable.An abstract base implementation for defining an annotation on a parameter.An adapter implementation for an annotatable type variable definition.A builder for a record component definition.ADynamicType.Builder.RecordComponentDefinition
as an optional build step.An abstract base implementation of a record definition.A builder for a type variable definition.An abstract base implementation of a type variable definition.A default implementation of a dynamic type.A default implementation of a loaded dynamic type.A default implementation of an unloaded dynamic type.A dynamic type that has been loaded into the running instance of the Java virtual machine.A dynamic type that has not yet been loaded by a givenClassLoader
.This nexus is a global dispatcher for initializing classes withLoadedTypeInitializer
s.The Nexus accessor is creating a VM-global singletonNexus
such that it can be seen by all class loaders of a virtual machine.A dispatcher for registering type initializers in theNexus
.An enabled dispatcher for registering a type initializer in aNexus
.Creates a new dispatcher for accessing aNexus
.A disabled dispatcher where aNexus
is not available.An initialization appender that looks up a loaded type initializer from Byte Buddy'sNexus
.This type is used as a place holder for creating methods or fields that refer to the type that currently subject of creation within aDynamicType.Builder
.Transformer<T>A transformer is responsible for transforming an object into a compatible instance of the same type.A compound transformer.A transformer for a field that delegates to another transformer that transforms aFieldDescription.Token
.A transformer for a field's modifiers.An implementation of a transformed field.A transformer for a field that delegates to another transformer that transforms aMethodDescription.Token
.A transformer for a method's modifiers.The transformed method.A non-operational transformer that returns the received instance.A type resolution strategy is responsible for loading a class and for initializing itsLoadedTypeInitializer
s.A type resolution strategy that applies allLoadedTypeInitializer
as a part of class loading using reflection.A resolved version of an active type resolution strategy.A type resolution strategy that does not allow for explicit loading of a class and that does not inject any code into the type initializer.A type resolution strategy that does not apply anyLoadedTypeInitializer
s but only loads all types.A type resolution strategy that applies allLoadedTypeInitializer
after class loading using reflection.A resolvedTypeResolutionStrategy
.Implements a strategy for deciding if a visibility bridge should be generated.Default implementations of visibility bridge strategies.