Uses of Interface
net.bytebuddy.dynamic.DynamicType.Builder
Packages that use DynamicType.Builder
Package
Description
Byte Buddy is a library for creating Java classes at runtime of a Java program.
An agent builder is used to easily implement load-time class-transformations using a Java agent.
The ASM package contains classes that are meant for direct interaction with the ASM API.
A package for types that allow for applying Byte Buddy transformation during a build process.
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.
All classes and types in this package are related to creating a
DynamicType
by
enhancing a given type.All classes and types in this package are related to creating a
DynamicType
by
creating a subclass of a given type.This package contains annotations, types and classes that are responsible for binding a method to calling another
method by interpreting annotations that indicate how a method should be bound to another method.
-
Uses of DynamicType.Builder in net.bytebuddy
Methods in net.bytebuddy that return DynamicType.BuilderModifier and TypeMethodDescription<T> DynamicType.Builder
<T> Decorates a type withAsmVisitorWrapper
and allows adding attributes and annotations.<T> DynamicType.Builder
<T> ByteBuddy.decorate
(Class<T> type, ClassFileLocator classFileLocator) Decorates a type withAsmVisitorWrapper
and allows adding attributes and annotations.<T> DynamicType.Builder
<T> ByteBuddy.decorate
(TypeDescription type, ClassFileLocator classFileLocator) Decorates a type withAsmVisitorWrapper
and allows adding attributes and annotations.DynamicType.Builder
<? extends Annotation> ByteBuddy.makeAnnotation()
Creates a newAnnotation
type.DynamicType.Builder
<? extends Enum<?>> ByteBuddy.makeEnumeration
(String... value) Creates a newEnum
type.DynamicType.Builder
<? extends Enum<?>> ByteBuddy.makeEnumeration
(Collection<? extends String> values) Creates a newEnum
type.ByteBuddy.makeInterface()
Creates a new, plain interface type.<T> DynamicType.Builder
<T> ByteBuddy.makeInterface
(Class<T> interfaceType) Creates a new interface type that extends the provided interface.ByteBuddy.makeInterface
(Type... interfaceType) Creates a new interface type that extends the provided interface.ByteBuddy.makeInterface
(Collection<? extends TypeDefinition> interfaceTypes) Creates a new interface type that extends the provided interface.ByteBuddy.makeInterface
(List<? extends Type> interfaceTypes) Creates a new interface type that extends the provided interface.ByteBuddy.makeInterface
(TypeDefinition... interfaceType) Creates a new interface type that extends the provided interface.ByteBuddy.makePackage
(String name) Creates a new package definition.ByteBuddy.makeRecord()
Creates a new Java record.<T> DynamicType.Builder
<T> Rebases the given type where any intercepted method that is declared by the redefined type is preserved within the rebased type's class such that the class's original can be invoked from the new method implementations.<T> DynamicType.Builder
<T> ByteBuddy.rebase
(Class<T> type, ClassFileLocator classFileLocator) Rebases the given type where any intercepted method that is declared by the redefined type is preserved within the rebased type's class such that the class's original can be invoked from the new method implementations.<T> DynamicType.Builder
<T> ByteBuddy.rebase
(Class<T> type, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer) Rebases the given type where any intercepted method that is declared by the redefined type is preserved within the rebased type's class such that the class's original can be invoked from the new method implementations.ByteBuddy.rebase
(Package aPackage, ClassFileLocator classFileLocator) Rebases a package.ByteBuddy.rebase
(PackageDescription aPackage, ClassFileLocator classFileLocator) Rebases a package.<T> DynamicType.Builder
<T> ByteBuddy.rebase
(TypeDescription type, ClassFileLocator classFileLocator) Rebases the given type where any intercepted method that is declared by the redefined type is preserved within the rebased type's class such that the class's original can be invoked from the new method implementations.<T> DynamicType.Builder
<T> ByteBuddy.rebase
(TypeDescription type, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer) Rebases the given type where any intercepted method that is declared by the redefined type is preserved within the rebased type's class such that the class's original can be invoked from the new method implementations.<T> DynamicType.Builder
<T> Redefines the given type where any intercepted method that is declared by the redefined type is fully replaced by the new implementation.<T> DynamicType.Builder
<T> ByteBuddy.redefine
(Class<T> type, ClassFileLocator classFileLocator) Redefines the given type where any intercepted method that is declared by the redefined type is fully replaced by the new implementation.<T> DynamicType.Builder
<T> ByteBuddy.redefine
(TypeDescription type, ClassFileLocator classFileLocator) Redefines the given type where any intercepted method that is declared by the redefined type is fully replaced by the new implementation.<T> DynamicType.Builder
<T> Creates a new builder for subclassing the provided type.<T> DynamicType.Builder
<T> ByteBuddy.subclass
(Class<T> superType, ConstructorStrategy constructorStrategy) Creates a new builder for subclassing the provided type.Creates a new builder for subclassing the provided type.ByteBuddy.subclass
(Type superType, ConstructorStrategy constructorStrategy) Creates a new builder for subclassing the provided type.ByteBuddy.subclass
(TypeDefinition superType) Creates a new builder for subclassing the provided type.ByteBuddy.subclass
(TypeDefinition superType, ConstructorStrategy constructorStrategy) Creates a new builder for subclassing the provided type. -
Uses of DynamicType.Builder in net.bytebuddy.agent.builder
Methods in net.bytebuddy.agent.builder that return DynamicType.BuilderModifier and TypeMethodDescriptionAgentBuilder.InitializationStrategy.Dispatcher.apply
(DynamicType.Builder<?> builder) Transforms the instrumented type to implement an appropriate initialization strategy.AgentBuilder.InitializationStrategy.Minimal.apply
(DynamicType.Builder<?> builder) Transforms the instrumented type to implement an appropriate initialization strategy.AgentBuilder.InitializationStrategy.NoOp.apply
(DynamicType.Builder<?> builder) Transforms the instrumented type to implement an appropriate initialization strategy.AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.apply
(DynamicType.Builder<?> builder) Transforms the instrumented type to implement an appropriate initialization strategy.AgentBuilder.TypeStrategy.builder
(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Creates a type builder for a given type.AgentBuilder.TypeStrategy.ForBuildEntryPoint.builder
(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Creates a type builder for a given type.AgentBuilder.Transformer.ForAdvice.transform
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Allows for a transformation of aDynamicType.Builder
.AgentBuilder.Transformer.ForBuildPlugin.transform
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Allows for a transformation of aDynamicType.Builder
.AgentBuilder.Transformer.transform
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Allows for a transformation of aDynamicType.Builder
.Methods in net.bytebuddy.agent.builder with parameters of type DynamicType.BuilderModifier and TypeMethodDescriptionAgentBuilder.InitializationStrategy.Dispatcher.apply
(DynamicType.Builder<?> builder) Transforms the instrumented type to implement an appropriate initialization strategy.AgentBuilder.InitializationStrategy.Minimal.apply
(DynamicType.Builder<?> builder) Transforms the instrumented type to implement an appropriate initialization strategy.AgentBuilder.InitializationStrategy.NoOp.apply
(DynamicType.Builder<?> builder) Transforms the instrumented type to implement an appropriate initialization strategy.AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.apply
(DynamicType.Builder<?> builder) Transforms the instrumented type to implement an appropriate initialization strategy.AgentBuilder.Transformer.ForAdvice.transform
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Allows for a transformation of aDynamicType.Builder
.AgentBuilder.Transformer.ForBuildPlugin.transform
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Allows for a transformation of aDynamicType.Builder
.AgentBuilder.Transformer.transform
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Allows for a transformation of aDynamicType.Builder
. -
Uses of DynamicType.Builder in net.bytebuddy.asm
Methods in net.bytebuddy.asm that return DynamicType.BuilderModifier and TypeMethodDescriptionprivate static DynamicType.Builder
<?> ClassVisitorFactory.toMethodVisitorBuilder
(ByteBuddy byteBuddy, Class<?> sourceVisitor, Class<?> targetVisitor, Class<?> sourceTypePath, Class<?> targetTypePath, Class<?> sourceLabel, Class<?> targetLabel, Class<?> sourceType, Class<?> targetType, Class<?> sourceHandle, Class<?> targetHandle, Class<?> sourceConstantDynamic, Class<?> targetConstantDynamic) Creates a builder for a method visitor type.private static DynamicType.Builder
<?> ClassVisitorFactory.toVisitorBuilder
(ByteBuddy byteBuddy, Class<?> sourceVisitor, Class<?> targetVisitor, Class<?> sourceTypePath, Class<?> targetTypePath, Implementation appendix) Creates a builder for a visitor type.Methods in net.bytebuddy.asm with parameters of type DynamicType.BuilderModifier and TypeMethodDescriptionprivate static DynamicType
ClassVisitorFactory.toAttributeWrapper
(DynamicType.Builder<?> builder, Class<?> source, Class<?> target, TypeDescription sourceWrapper, TypeDescription targetWrapper) Creates a wrapper type for anAttribute
to pass attribues along a visitor chain. -
Uses of DynamicType.Builder in net.bytebuddy.build
Methods in net.bytebuddy.build that return DynamicType.BuilderModifier and TypeMethodDescriptionAccessControllerPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.CachedReturnPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.DispatcherAnnotationPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.HashCodeAndEqualsPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.Plugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.Plugin.NoOp.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.RenamingPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.RepeatedAnnotationPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.ToStringPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.Plugin.Engine.TypeStrategy.builder
(ByteBuddy byteBuddy, TypeDescription typeDescription, ClassFileLocator classFileLocator) Creates a builder for a given type.Plugin.Engine.TypeStrategy.ForEntryPoint.builder
(ByteBuddy byteBuddy, TypeDescription typeDescription, ClassFileLocator classFileLocator) Creates a builder for a given type.EntryPoint.transform
(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer) Applies a transformation.EntryPoint.Unvalidated.transform
(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer) Applies a transformation.Methods in net.bytebuddy.build with parameters of type DynamicType.BuilderModifier and TypeMethodDescriptionAccessControllerPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.CachedReturnPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.DispatcherAnnotationPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.HashCodeAndEqualsPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.Plugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.Plugin.NoOp.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.RenamingPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.RepeatedAnnotationPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.ToStringPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin. -
Uses of DynamicType.Builder in net.bytebuddy.dynamic
Subinterfaces of DynamicType.Builder in net.bytebuddy.dynamicModifier and TypeInterfaceDescriptionstatic interface
A builder for an optional field definition.static interface
A builder for an optional field definition that allows for defining a value.static interface
An inner type definition for defining a type that is contained within another type, method or constructor.static interface
An inner type definition for defining a type that is contained within another type.static interface
A builder for a method definition.static interface
A builder for optionally defining an implementation of a method.static interface
A builder for a method definition with a receiver type.static interface
ADynamicType.Builder.RecordComponentDefinition
as an optional build step.static interface
A builder for a type variable definition.Classes in net.bytebuddy.dynamic that implement DynamicType.BuilderModifier and TypeClassDescriptionstatic class
An abstract base implementation of a dynamic type builder.static class
An adapter implementation of a dynamic type builder.protected class
An adapter for defining a new field.protected class
An adapter for matching an existing field.protected class
An adapter for applying an inner type definition for an outer method or constructor.protected class
An adapter for applying an inner type definition for an outer type.protected class
An annotation adapter for a method definition.protected class
An annotation adapter for implementing annotations during a method definition.protected class
An adapter for optionally matching methods defined by declared interfaces.protected class
An adapter for defining a record component.protected class
An adapter for matching record components.protected class
An adapter for defining a new type variable for the instrumented type.static class
A delegator for a dynamic type builder delegating all invocations to another dynamic type builder.static class
A dynamic type writer that uses aTypeWriter
to create a dynamic type.static class
An abstract base implementation for an optional field definition.static class
An abstract base implementation of an optional field definition that allows for defining a value.private static class
An adapter for an optional field definition that allows for defining a value.static class
An abstract base implementation of a method definition.protected static class
An adapter implementation of a method definition.static class
An abstract base implementation of a method definition that can accept a receiver type.static class
An abstract base implementation of a record definition.static class
An abstract base implementation of a type variable definition.Methods in net.bytebuddy.dynamic that return DynamicType.BuilderModifier and TypeMethodDescriptionDynamicType.Builder.AbstractBase.Adapter.annotateType
(Collection<? extends AnnotationDescription> annotations) Annotates the instrumented type with the supplied annotations.DynamicType.Builder.AbstractBase.annotateType
(Annotation... annotation) Annotates the instrumented type with the supplied annotations.DynamicType.Builder.AbstractBase.annotateType
(List<? extends Annotation> annotations) Annotates the instrumented type with the supplied annotations.DynamicType.Builder.AbstractBase.annotateType
(AnnotationDescription... annotation) Annotates the instrumented type with the supplied annotations.DynamicType.Builder.AbstractBase.Delegator.annotateType
(Collection<? extends AnnotationDescription> annotations) Annotates the instrumented type with the supplied annotations.DynamicType.Builder.annotateType
(Annotation... annotation) Annotates the instrumented type with the supplied annotations.DynamicType.Builder.annotateType
(Collection<? extends AnnotationDescription> annotations) Annotates the instrumented type with the supplied annotations.DynamicType.Builder.annotateType
(List<? extends Annotation> annotations) Annotates the instrumented type with the supplied annotations.DynamicType.Builder.annotateType
(AnnotationDescription... annotation) Annotates the instrumented type with the supplied annotations.DynamicType.Builder.AbstractBase.Adapter.InnerTypeDefinitionForMethodAdapter.asAnonymousType()
Defines this inner type declaration as an anonymous type.DynamicType.Builder.AbstractBase.Adapter.InnerTypeDefinitionForTypeAdapter.asAnonymousType()
Defines this inner type declaration as an anonymous type.DynamicType.Builder.InnerTypeDefinition.asAnonymousType()
Defines this inner type declaration as an anonymous type.DynamicType.Builder.AbstractBase.Adapter.InnerTypeDefinitionForTypeAdapter.asMemberType()
Defines this inner type declaration as a member type.DynamicType.Builder.InnerTypeDefinition.ForType.asMemberType()
Defines this inner type declaration as a member type.DynamicType.Builder.AbstractBase.Adapter.attribute
(TypeAttributeAppender typeAttributeAppender) Applies the given type attribute appender onto the instrumented type.DynamicType.Builder.AbstractBase.Delegator.attribute
(TypeAttributeAppender typeAttributeAppender) Applies the given type attribute appender onto the instrumented type.DynamicType.Builder.attribute
(TypeAttributeAppender typeAttributeAppender) Applies the given type attribute appender onto the instrumented type.DynamicType.Builder.AbstractBase.Adapter.declaredTypes
(Collection<? extends TypeDescription> types) Defines this type as an the outer type of the supplied types.DynamicType.Builder.AbstractBase.declaredTypes
(Class<?>... type) Defines this type as an the outer type of the supplied types.DynamicType.Builder.AbstractBase.declaredTypes
(List<? extends Class<?>> type) Defines this type as an the outer type of the supplied types.DynamicType.Builder.AbstractBase.declaredTypes
(TypeDescription... type) Defines this type as an the outer type of the supplied types.DynamicType.Builder.AbstractBase.Delegator.declaredTypes
(Collection<? extends TypeDescription> types) Defines this type as an the outer type of the supplied types.DynamicType.Builder.declaredTypes
(Class<?>... type) Defines this type as an the outer type of the supplied types.DynamicType.Builder.declaredTypes
(Collection<? extends TypeDescription> types) Defines this type as an the outer type of the supplied types.DynamicType.Builder.declaredTypes
(List<? extends Class<?>> types) Defines this type as an the outer type of the supplied types.DynamicType.Builder.declaredTypes
(TypeDescription... type) Defines this type as an the outer type of the supplied types.DynamicType.Builder.AbstractBase.Adapter.ignoreAlso
(LatentMatcher<? super MethodDescription> ignoredMethods) Specifies to exclude any method that is matched by the supplied matcher from instrumentation.DynamicType.Builder.AbstractBase.Delegator.ignoreAlso
(ElementMatcher<? super MethodDescription> ignoredMethods) Specifies to exclude any method that is matched by the supplied matcher from instrumentation.DynamicType.Builder.AbstractBase.Delegator.ignoreAlso
(LatentMatcher<? super MethodDescription> ignoredMethods) Specifies to exclude any method that is matched by the supplied matcher from instrumentation.DynamicType.Builder.AbstractBase.ignoreAlso
(ElementMatcher<? super MethodDescription> ignoredMethods) Specifies to exclude any method that is matched by the supplied matcher from instrumentation.DynamicType.Builder.ignoreAlso
(ElementMatcher<? super MethodDescription> ignoredMethods) Specifies to exclude any method that is matched by the supplied matcher from instrumentation.DynamicType.Builder.ignoreAlso
(LatentMatcher<? super MethodDescription> ignoredMethods) Specifies to exclude any method that is matched by the supplied matcher from instrumentation.DynamicType.Builder.AbstractBase.Adapter.initializer
(ByteCodeAppender byteCodeAppender) Executes the supplied byte code appender within the beginning of the instrumented type's type initializer.DynamicType.Builder.AbstractBase.Adapter.initializer
(LoadedTypeInitializer loadedTypeInitializer) Executes the supplied loaded type initializer when loading the created instrumented type.DynamicType.Builder.AbstractBase.Delegator.initializer
(ByteCodeAppender byteCodeAppender) Executes the supplied byte code appender within the beginning of the instrumented type's type initializer.DynamicType.Builder.AbstractBase.Delegator.initializer
(LoadedTypeInitializer loadedTypeInitializer) Executes the supplied loaded type initializer when loading the created instrumented type.DynamicType.Builder.initializer
(ByteCodeAppender byteCodeAppender) Executes the supplied byte code appender within the beginning of the instrumented type's type initializer.DynamicType.Builder.initializer
(LoadedTypeInitializer loadedTypeInitializer) Executes the supplied loaded type initializer when loading the created instrumented type.protected DynamicType.Builder
<U> DynamicType.Builder.AbstractBase.Adapter.FieldDefinitionAdapter.materialize()
protected DynamicType.Builder
<U> DynamicType.Builder.AbstractBase.Adapter.FieldMatchAdapter.materialize()
protected DynamicType.Builder
<U> DynamicType.Builder.AbstractBase.Adapter.InnerTypeDefinitionForMethodAdapter.materialize()
protected DynamicType.Builder
<U> DynamicType.Builder.AbstractBase.Adapter.InnerTypeDefinitionForTypeAdapter.materialize()
protected abstract DynamicType.Builder
<U> DynamicType.Builder.AbstractBase.Adapter.materialize
(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes) Materializes the supplied state of a dynamic type builder.protected DynamicType.Builder
<U> DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.AnnotationAdapter.materialize()
protected DynamicType.Builder
<U> DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter.AnnotationAdapter.materialize()
protected DynamicType.Builder
<U> DynamicType.Builder.AbstractBase.Adapter.OptionalMethodMatchAdapter.materialize()
protected DynamicType.Builder
<U> DynamicType.Builder.AbstractBase.Adapter.RecordComponentDefinitionAdapter.materialize()
protected DynamicType.Builder
<U> DynamicType.Builder.AbstractBase.Adapter.RecordComponentMatchAdapter.materialize()
protected DynamicType.Builder
<U> DynamicType.Builder.AbstractBase.Adapter.TypeVariableDefinitionAdapter.materialize()
protected abstract DynamicType.Builder
<U> DynamicType.Builder.AbstractBase.Delegator.materialize()
Creates a new builder that realizes the current state of the builder.DynamicType.Builder.AbstractBase.Adapter.merge
(Collection<? extends ModifierContributor.ForType> modifierContributors) Merges the supplied modifier contributors with the modifiers of the instrumented type and defines them as the instrumented type's new modifiers.DynamicType.Builder.AbstractBase.Delegator.merge
(Collection<? extends ModifierContributor.ForType> modifierContributors) Merges the supplied modifier contributors with the modifiers of the instrumented type and defines them as the instrumented type's new modifiers.DynamicType.Builder.AbstractBase.merge
(ModifierContributor.ForType... modifierContributor) Merges the supplied modifier contributors with the modifiers of the instrumented type and defines them as the instrumented type's new modifiers.DynamicType.Builder.merge
(Collection<? extends ModifierContributor.ForType> modifierContributors) Merges the supplied modifier contributors with the modifiers of the instrumented type and defines them as the instrumented type's new modifiers.DynamicType.Builder.merge
(ModifierContributor.ForType... modifierContributor) Merges the supplied modifier contributors with the modifiers of the instrumented type and defines them as the instrumented type's new modifiers.DynamicType.Builder.AbstractBase.Adapter.modifiers
(int modifiers) Defines the supplied modifiers as the modifiers of the instrumented type.DynamicType.Builder.AbstractBase.Delegator.modifiers
(int modifiers) Defines the supplied modifiers as the modifiers of the instrumented type.DynamicType.Builder.AbstractBase.modifiers
(Collection<? extends ModifierContributor.ForType> modifierContributors) Defines the supplied modifiers as the modifiers of the instrumented type.DynamicType.Builder.AbstractBase.modifiers
(ModifierContributor.ForType... modifierContributor) Defines the supplied modifiers as the modifiers of the instrumented type.DynamicType.Builder.modifiers
(int modifiers) Defines the supplied modifiers as the modifiers of the instrumented type.DynamicType.Builder.modifiers
(Collection<? extends ModifierContributor.ForType> modifierContributors) Defines the supplied modifiers as the modifiers of the instrumented type.DynamicType.Builder.modifiers
(ModifierContributor.ForType... modifierContributor) Defines the supplied modifiers as the modifiers of the instrumented type.Names the dynamic type by the supplied name.Names the dynamic type by the supplied name.Names the dynamic type by the supplied name.DynamicType.Builder.AbstractBase.Adapter.nestHost
(TypeDescription type) Defines this type as a nest member of the supplied type as a nest host.DynamicType.Builder.AbstractBase.Delegator.nestHost
(TypeDescription type) Defines this type as a nest member of the supplied type as a nest host.Defines this type as a nest member of the supplied type as a nest host.Defines this type as a nest member of the supplied type as a nest host.DynamicType.Builder.nestHost
(TypeDescription type) Defines this type as a nest member of the supplied type as a nest host.DynamicType.Builder.AbstractBase.Adapter.nestMembers
(Collection<? extends TypeDescription> types) Defines this type as a nest host for the supplied types.DynamicType.Builder.AbstractBase.Delegator.nestMembers
(Collection<? extends TypeDescription> types) Defines this type as a nest host for the supplied types.DynamicType.Builder.AbstractBase.nestMembers
(Class<?>... type) Defines this type as a nest host for the supplied types.DynamicType.Builder.AbstractBase.nestMembers
(List<? extends Class<?>> types) Defines this type as a nest host for the supplied types.DynamicType.Builder.AbstractBase.nestMembers
(TypeDescription... type) Defines this type as a nest host for the supplied types.DynamicType.Builder.nestMembers
(Class<?>... type) Defines this type as a nest host for the supplied types.DynamicType.Builder.nestMembers
(Collection<? extends TypeDescription> types) Defines this type as a nest host for the supplied types.DynamicType.Builder.nestMembers
(List<? extends Class<?>> types) Defines this type as a nest host for the supplied types.DynamicType.Builder.nestMembers
(TypeDescription... type) Defines this type as a nest host for the supplied types.DynamicType.Builder.AbstractBase.noNestMate()
Defines this type as self-hosted, i.e.DynamicType.Builder.noNestMate()
Defines this type as self-hosted, i.e.DynamicType.Builder.AbstractBase.Adapter.permittedSubclass
(Collection<? extends TypeDescription> types) Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.DynamicType.Builder.AbstractBase.Delegator.permittedSubclass
(Collection<? extends TypeDescription> types) Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.DynamicType.Builder.AbstractBase.permittedSubclass
(Class<?>... type) Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.DynamicType.Builder.AbstractBase.permittedSubclass
(List<? extends Class<?>> types) Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.DynamicType.Builder.AbstractBase.permittedSubclass
(TypeDescription... type) Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.DynamicType.Builder.permittedSubclass
(Class<?>... type) Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.DynamicType.Builder.permittedSubclass
(Collection<? extends TypeDescription> types) Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.DynamicType.Builder.permittedSubclass
(List<? extends Class<?>> types) Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.DynamicType.Builder.permittedSubclass
(TypeDescription... type) Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.DynamicType.Builder.AbstractBase.Adapter.require
(Collection<DynamicType> auxiliaryTypes) Explicitly requires other dynamic types for the creation of this type.DynamicType.Builder.AbstractBase.Delegator.require
(Collection<DynamicType> auxiliaryTypes) Explicitly requires other dynamic types for the creation of this type.DynamicType.Builder.AbstractBase.require
(TypeDescription type, byte[] binaryRepresentation) Explicitly requires another dynamic type for the creation of this type.DynamicType.Builder.AbstractBase.require
(TypeDescription type, byte[] binaryRepresentation, LoadedTypeInitializer typeInitializer) Explicitly requires another dynamic type for the creation of this type.DynamicType.Builder.AbstractBase.require
(DynamicType... auxiliaryType) Explicitly requires other dynamic types for the creation of this type.DynamicType.Builder.require
(Collection<DynamicType> auxiliaryTypes) Explicitly requires other dynamic types for the creation of this type.DynamicType.Builder.require
(TypeDescription type, byte[] binaryRepresentation) Explicitly requires another dynamic type for the creation of this type.DynamicType.Builder.require
(TypeDescription type, byte[] binaryRepresentation, LoadedTypeInitializer typeInitializer) Explicitly requires another dynamic type for the creation of this type.DynamicType.Builder.require
(DynamicType... auxiliaryType) Explicitly requires other dynamic types for the creation of this type.Adds a suffix to the current type name without changing the type's package.Adds a suffix to the current type name without changing the type's package.Adds a suffix to the current type name without changing the type's package.DynamicType.Builder.AbstractBase.Adapter.topLevelType()
Defines this type as a top-level type that is not declared by another type or enclosed by another member.DynamicType.Builder.AbstractBase.Delegator.topLevelType()
Defines this type as a top-level type that is not declared by another type or enclosed by another member.DynamicType.Builder.topLevelType()
Defines this type as a top-level type that is not declared by another type or enclosed by another member.DynamicType.Builder.AbstractBase.Adapter.transform
(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer) Transforms any type variable that is defined by this type if it is matched by the supplied matcher.DynamicType.Builder.AbstractBase.Delegator.transform
(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer) Transforms any type variable that is defined by this type if it is matched by the supplied matcher.DynamicType.Builder.transform
(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer) Transforms any type variable that is defined by this type if it is matched by the supplied matcher.DynamicType.Builder.AbstractBase.Adapter.unsealed()
Unseales this type.DynamicType.Builder.AbstractBase.Delegator.unsealed()
Unseales this type.DynamicType.Builder.unsealed()
Unseales this type.DynamicType.Builder.AbstractBase.Adapter.visit
(AsmVisitorWrapper asmVisitorWrapper) Applies the suppliedAsmVisitorWrapper
onto theClassVisitor
during building a dynamic type.DynamicType.Builder.AbstractBase.Delegator.visit
(AsmVisitorWrapper asmVisitorWrapper) Applies the suppliedAsmVisitorWrapper
onto theClassVisitor
during building a dynamic type.DynamicType.Builder.visit
(AsmVisitorWrapper asmVisitorWrapper) Applies the suppliedAsmVisitorWrapper
onto theClassVisitor
during building a dynamic type.DynamicType.Builder.AbstractBase.withHashCodeEquals()
ImplementsObject.hashCode()
andObject.equals(Object)
methods for the instrumented type if those methods are not declared asfinal
by a super class.DynamicType.Builder.withHashCodeEquals()
ImplementsObject.hashCode()
andObject.equals(Object)
methods for the instrumented type if those methods are not declared asfinal
by a super class.DynamicType.Builder.AbstractBase.withToString()
Implements aObject.toString()
method for the instrumented type if such a method is not declared asfinal
by a super class.DynamicType.Builder.withToString()
Implements aObject.toString()
method for the instrumented type if such a method is not declared asfinal
by a super class. -
Uses of DynamicType.Builder in net.bytebuddy.dynamic.scaffold.inline
Classes in net.bytebuddy.dynamic.scaffold.inline that implement DynamicType.BuilderModifier and TypeClassDescriptionclass
An abstract base implementation of a dynamic type builder that alters an existing type.class
A type builder that decorates a type by allowing for the application of attribute changes and ASM visitor wrappers.class
A type builder that rebases an instrumented type.class
A type builder that redefines an instrumented type.Methods in net.bytebuddy.dynamic.scaffold.inline that return DynamicType.BuilderModifier and TypeMethodDescriptionDecoratingDynamicTypeBuilder.annotateType
(Collection<? extends AnnotationDescription> annotations) Annotates the instrumented type with the supplied annotations.DecoratingDynamicTypeBuilder.attribute
(TypeAttributeAppender typeAttributeAppender) Applies the given type attribute appender onto the instrumented type.DecoratingDynamicTypeBuilder.declaredTypes
(Collection<? extends TypeDescription> types) Defines this type as an the outer type of the supplied types.DecoratingDynamicTypeBuilder.ignoreAlso
(LatentMatcher<? super MethodDescription> ignoredMethods) Specifies to exclude any method that is matched by the supplied matcher from instrumentation.DecoratingDynamicTypeBuilder.initializer
(ByteCodeAppender byteCodeAppender) Executes the supplied byte code appender within the beginning of the instrumented type's type initializer.DecoratingDynamicTypeBuilder.initializer
(LoadedTypeInitializer loadedTypeInitializer) Executes the supplied loaded type initializer when loading the created instrumented type.protected DynamicType.Builder
<T> RebaseDynamicTypeBuilder.materialize
(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes) protected DynamicType.Builder
<T> RedefinitionDynamicTypeBuilder.materialize
(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes) DecoratingDynamicTypeBuilder.merge
(Collection<? extends ModifierContributor.ForType> modifierContributors) Merges the supplied modifier contributors with the modifiers of the instrumented type and defines them as the instrumented type's new modifiers.DecoratingDynamicTypeBuilder.modifiers
(int modifiers) Defines the supplied modifiers as the modifiers of the instrumented type.Names the dynamic type by the supplied name.DecoratingDynamicTypeBuilder.nestHost
(TypeDescription type) Defines this type as a nest member of the supplied type as a nest host.DecoratingDynamicTypeBuilder.nestMembers
(Collection<? extends TypeDescription> types) Defines this type as a nest host for the supplied types.DecoratingDynamicTypeBuilder.permittedSubclass
(Collection<? extends TypeDescription> types) Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.DecoratingDynamicTypeBuilder.require
(Collection<DynamicType> auxiliaryTypes) Explicitly requires other dynamic types for the creation of this type.Adds a suffix to the current type name without changing the type's package.DecoratingDynamicTypeBuilder.topLevelType()
Defines this type as a top-level type that is not declared by another type or enclosed by another member.DecoratingDynamicTypeBuilder.transform
(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer) Transforms any type variable that is defined by this type if it is matched by the supplied matcher.DecoratingDynamicTypeBuilder.unsealed()
Unseales this type.DecoratingDynamicTypeBuilder.visit
(AsmVisitorWrapper asmVisitorWrapper) Applies the suppliedAsmVisitorWrapper
onto theClassVisitor
during building a dynamic type. -
Uses of DynamicType.Builder in net.bytebuddy.dynamic.scaffold.subclass
Classes in net.bytebuddy.dynamic.scaffold.subclass that implement DynamicType.BuilderModifier and TypeClassDescriptionclass
A type builder that creates an instrumented type as a subclass, i.e.Methods in net.bytebuddy.dynamic.scaffold.subclass that return DynamicType.BuilderModifier and TypeMethodDescriptionprotected DynamicType.Builder
<T> SubclassDynamicTypeBuilder.materialize
(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes) -
Uses of DynamicType.Builder in net.bytebuddy.implementation.bind.annotation
Methods in net.bytebuddy.implementation.bind.annotation that return DynamicType.BuilderModifier and TypeMethodDescriptionFieldProxy.Binder.FieldResolver.apply
(DynamicType.Builder<?> builder, FieldDescription fieldDescription, Assigner assigner, MethodAccessorFactory methodAccessorFactory) Applies this field resolver to a dynamic type.FieldProxy.Binder.FieldResolver.ForGetter.apply
(DynamicType.Builder<?> builder, FieldDescription fieldDescription, Assigner assigner, MethodAccessorFactory methodAccessorFactory) Applies this field resolver to a dynamic type.FieldProxy.Binder.FieldResolver.ForGetterSetterPair.apply
(DynamicType.Builder<?> builder, FieldDescription fieldDescription, Assigner assigner, MethodAccessorFactory methodAccessorFactory) Applies this field resolver to a dynamic type.FieldProxy.Binder.FieldResolver.ForSetter.apply
(DynamicType.Builder<?> builder, FieldDescription fieldDescription, Assigner assigner, MethodAccessorFactory methodAccessorFactory) Applies this field resolver to a dynamic type.FieldProxy.Binder.FieldResolver.Unresolved.apply
(DynamicType.Builder<?> builder, FieldDescription fieldDescription, Assigner assigner, MethodAccessorFactory methodAccessorFactory) Applies this field resolver to a dynamic type.Methods in net.bytebuddy.implementation.bind.annotation with parameters of type DynamicType.BuilderModifier and TypeMethodDescriptionFieldProxy.Binder.FieldResolver.apply
(DynamicType.Builder<?> builder, FieldDescription fieldDescription, Assigner assigner, MethodAccessorFactory methodAccessorFactory) Applies this field resolver to a dynamic type.FieldProxy.Binder.FieldResolver.ForGetter.apply
(DynamicType.Builder<?> builder, FieldDescription fieldDescription, Assigner assigner, MethodAccessorFactory methodAccessorFactory) Applies this field resolver to a dynamic type.FieldProxy.Binder.FieldResolver.ForGetterSetterPair.apply
(DynamicType.Builder<?> builder, FieldDescription fieldDescription, Assigner assigner, MethodAccessorFactory methodAccessorFactory) Applies this field resolver to a dynamic type.FieldProxy.Binder.FieldResolver.ForSetter.apply
(DynamicType.Builder<?> builder, FieldDescription fieldDescription, Assigner assigner, MethodAccessorFactory methodAccessorFactory) Applies this field resolver to a dynamic type.FieldProxy.Binder.FieldResolver.Unresolved.apply
(DynamicType.Builder<?> builder, FieldDescription fieldDescription, Assigner assigner, MethodAccessorFactory methodAccessorFactory) Applies this field resolver to a dynamic type.