Uses of Interface
net.bytebuddy.dynamic.DynamicType
-
Packages that use DynamicType Package Description net.bytebuddy.agent.builder An agent builder is used to easily implement load-time class-transformations using a Java agent.net.bytebuddy.build A package for types that allow for applying Byte Buddy transformation during a build process.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.net.bytebuddy.dynamic.scaffold This package contains helper types and implementations that are responsible for the actual writing of a byte array representing a Java class.net.bytebuddy.dynamic.scaffold.inline All classes and types in this package are related to creating aDynamicType
by enhancing a given type.net.bytebuddy.dynamic.scaffold.subclass All classes and types in this package are related to creating aDynamicType
by creating a subclass of a given type.net.bytebuddy.implementation The implementation package contains any logic for intercepting method calls.net.bytebuddy.implementation.auxiliary Auxiliary types describe helper types that aid as a supplementary to a givenInstrumentedType
.net.bytebuddy.implementation.bind.annotation 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 in net.bytebuddy.agent.builder
Methods in net.bytebuddy.agent.builder with parameters of type DynamicType Modifier and Type Method Description void
AgentBuilder.Listener.Adapter. onTransformation(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType)
Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.Compound. onTransformation(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType)
Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.Filtering. onTransformation(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType)
Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.ModuleReadEdgeCompleting. onTransformation(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType)
void
AgentBuilder.Listener.NoOp. onTransformation(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType)
Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener. onTransformation(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType)
Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.StreamWriting. onTransformation(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType)
Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.WithTransformationsOnly. onTransformation(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType)
void
AgentBuilder.InitializationStrategy.Dispatcher. register(DynamicType dynamicType, java.lang.ClassLoader classLoader, java.security.ProtectionDomain protectionDomain, AgentBuilder.InjectionStrategy injectionStrategy)
Registers a dynamic type for initialization and/or begins the initialization process.void
AgentBuilder.InitializationStrategy.Minimal. register(DynamicType dynamicType, java.lang.ClassLoader classLoader, java.security.ProtectionDomain protectionDomain, AgentBuilder.InjectionStrategy injectionStrategy)
Registers a dynamic type for initialization and/or begins the initialization process.void
AgentBuilder.InitializationStrategy.NoOp. register(DynamicType dynamicType, java.lang.ClassLoader classLoader, java.security.ProtectionDomain protectionDomain, AgentBuilder.InjectionStrategy injectionStrategy)
Registers a dynamic type for initialization and/or begins the initialization process.void
AgentBuilder.InitializationStrategy.SelfInjection.Eager.Dispatcher. register(DynamicType dynamicType, java.lang.ClassLoader classLoader, java.security.ProtectionDomain protectionDomain, AgentBuilder.InjectionStrategy injectionStrategy)
Registers a dynamic type for initialization and/or begins the initialization process.void
AgentBuilder.InitializationStrategy.SelfInjection.Lazy.Dispatcher. register(DynamicType dynamicType, java.lang.ClassLoader classLoader, java.security.ProtectionDomain protectionDomain, AgentBuilder.InjectionStrategy injectionStrategy)
Registers a dynamic type for initialization and/or begins the initialization process.void
AgentBuilder.InitializationStrategy.SelfInjection.Split.Dispatcher. register(DynamicType dynamicType, java.lang.ClassLoader classLoader, java.security.ProtectionDomain protectionDomain, AgentBuilder.InjectionStrategy injectionStrategy)
Registers a dynamic type for initialization and/or begins the initialization process. -
Uses of DynamicType in net.bytebuddy.build
Fields in net.bytebuddy.build declared as DynamicType Modifier and Type Field Description private DynamicType
Plugin.Engine.Dispatcher.Materializable.ForTransformedElement. dynamicType
The type that has been transformed.Constructors in net.bytebuddy.build with parameters of type DynamicType Constructor Description ForTransformedElement(DynamicType dynamicType)
Creates a new materializable for a successfully transformed type. -
Uses of DynamicType in net.bytebuddy.dynamic
Subinterfaces of DynamicType in net.bytebuddy.dynamic Modifier and Type Interface Description static interface
DynamicType.Loaded<T>
A dynamic type that has been loaded into the running instance of the Java virtual machine.static interface
DynamicType.Unloaded<T>
A dynamic type that has not yet been loaded by a givenClassLoader
.Classes in net.bytebuddy.dynamic that implement DynamicType Modifier and Type Class Description static class
DynamicType.Default
A default implementation of a dynamic type.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.Fields in net.bytebuddy.dynamic with type parameters of type DynamicType Modifier and Type Field Description protected java.util.List<? extends DynamicType>
DynamicType.Builder.AbstractBase.Adapter. auxiliaryTypes
A list of explicitly defined auxiliary types.protected java.util.List<? extends DynamicType>
DynamicType.Default. auxiliaryTypes
A list of auxiliary types for this dynamic type.Methods in net.bytebuddy.dynamic with parameters of type DynamicType Modifier and Type Method Description DynamicType.Unloaded<T>
DynamicType.Default.Unloaded. include(DynamicType... dynamicType)
Includes the provided dynamic types as auxiliary types of this instance.DynamicType.Unloaded<T>
DynamicType.Unloaded. include(DynamicType... dynamicType)
Includes the provided dynamic types as auxiliary types of this instance.<S extends java.lang.ClassLoader>
java.util.Map<TypeDescription,java.lang.Class<?>>TypeResolutionStrategy.Active.Resolved. initialize(DynamicType dynamicType, S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.<S extends java.lang.ClassLoader>
java.util.Map<TypeDescription,java.lang.Class<?>>TypeResolutionStrategy.Disabled. initialize(DynamicType dynamicType, S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.<S extends java.lang.ClassLoader>
java.util.Map<TypeDescription,java.lang.Class<?>>TypeResolutionStrategy.Lazy. initialize(DynamicType dynamicType, S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.<S extends java.lang.ClassLoader>
java.util.Map<TypeDescription,java.lang.Class<?>>TypeResolutionStrategy.Passive. initialize(DynamicType dynamicType, S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.<S extends java.lang.ClassLoader>
java.util.Map<TypeDescription,java.lang.Class<?>>TypeResolutionStrategy.Resolved. initialize(DynamicType dynamicType, S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.static ClassFileLocator
ClassFileLocator.Simple. of(DynamicType dynamicType)
Creates a class file locator that represents all types of a dynamic type.DynamicType.Builder<S>
DynamicType.Builder.AbstractBase. require(DynamicType... auxiliaryType)
Explicitly requires other dynamic types for the creation of this type.DynamicType.Builder<T>
DynamicType.Builder. require(DynamicType... auxiliaryType)
Explicitly requires other dynamic types for the creation of this type.Method parameters in net.bytebuddy.dynamic with type arguments of type DynamicType Modifier and Type Method Description DynamicType.Unloaded<T>
DynamicType.Default.Unloaded. include(java.util.List<? extends DynamicType> dynamicType)
Includes the provided dynamic types as auxiliary types of this instance.DynamicType.Unloaded<T>
DynamicType.Unloaded. include(java.util.List<? extends DynamicType> dynamicTypes)
Includes the provided dynamic types as auxiliary types of this instance.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, java.util.List<? extends DynamicType> auxiliaryTypes)
Materializes the supplied state of a dynamic type builder.DynamicType.Builder<U>
DynamicType.Builder.AbstractBase.Adapter. require(java.util.Collection<DynamicType> auxiliaryTypes)
Explicitly requires other dynamic types for the creation of this type.DynamicType.Builder<U>
DynamicType.Builder.AbstractBase.Delegator. require(java.util.Collection<DynamicType> auxiliaryTypes)
Explicitly requires other dynamic types for the creation of this type.DynamicType.Builder<T>
DynamicType.Builder. require(java.util.Collection<DynamicType> auxiliaryTypes)
Explicitly requires other dynamic types for the creation of this type.Constructor parameters in net.bytebuddy.dynamic with type arguments of type DynamicType Constructor Description Adapter(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, java.util.List<? extends DynamicType> auxiliaryTypes)
Creates a new default type writer for creating a new type that is not based on an existing class file.Default(TypeDescription typeDescription, byte[] binaryRepresentation, LoadedTypeInitializer loadedTypeInitializer, java.util.List<? extends DynamicType> auxiliaryTypes)
Creates a new dynamic type.Loaded(TypeDescription typeDescription, byte[] typeByte, LoadedTypeInitializer loadedTypeInitializer, java.util.List<? extends DynamicType> auxiliaryTypes, java.util.Map<TypeDescription,java.lang.Class<?>> loadedTypes)
Creates a new representation of a loaded dynamic type.Unloaded(TypeDescription typeDescription, byte[] binaryRepresentation, LoadedTypeInitializer loadedTypeInitializer, java.util.List<? extends DynamicType> auxiliaryTypes, TypeResolutionStrategy.Resolved typeResolutionStrategy)
Creates a new unloaded representation of a dynamic type. -
Uses of DynamicType in net.bytebuddy.dynamic.scaffold
Fields in net.bytebuddy.dynamic.scaffold with type parameters of type DynamicType Modifier and Type Field Description protected java.util.List<? extends DynamicType>
TypeWriter.Default. auxiliaryTypes
The explicit auxiliary types to add to the created type.private java.util.List<? extends DynamicType>
TypeWriter.Default.UnresolvedType. auxiliaryTypes
A list of auxiliary types for this unresolved type.Methods in net.bytebuddy.dynamic.scaffold that return types with arguments of type DynamicType Modifier and Type Method Description java.util.List<DynamicType>
TypeWriter.Default.ForInlining.ContextRegistry. getAuxiliaryTypes()
Returns the auxiliary types that were registered during class creation.Method parameters in net.bytebuddy.dynamic.scaffold with type arguments of type DynamicType Modifier and Type Method Description static <U> TypeWriter<U>
TypeWriter.Default. forCreation(MethodRegistry.Compiled methodRegistry, java.util.List<? extends DynamicType> auxiliaryTypes, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, TypePool typePool)
Creates a type writer for creating a new type.static <U> TypeWriter<U>
TypeWriter.Default. forDecoration(TypeDescription instrumentedType, ClassFileVersion classFileVersion, java.util.List<? extends DynamicType> auxiliaryTypes, java.util.List<? extends MethodDescription> methods, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, TypePool typePool, ClassFileLocator classFileLocator)
Creates a type writer for decorating a type.static <U> TypeWriter<U>
TypeWriter.Default. forRebasing(MethodRegistry.Prepared methodRegistry, java.util.List<? extends DynamicType> auxiliaryTypes, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator, MethodRebaseResolver methodRebaseResolver)
Creates a type writer for rebasing a type.static <U> TypeWriter<U>
TypeWriter.Default. forRedefinition(MethodRegistry.Prepared methodRegistry, java.util.List<? extends DynamicType> auxiliaryTypes, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator)
Creates a type writer for redefining a type.Constructor parameters in net.bytebuddy.dynamic.scaffold with type arguments of type DynamicType Constructor Description Default(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, java.util.List<? extends DynamicType> auxiliaryTypes, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, MethodList<?> instrumentedMethods, RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, TypePool typePool)
Creates a new default type writer.ForCreation(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.MethodPool methodPool, TypeWriter.RecordComponentPool recordComponentPool, java.util.List<? extends DynamicType> auxiliaryTypes, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, MethodList<?> instrumentedMethods, RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, TypePool typePool)
Creates a new default type writer for creating a new type that is not based on an existing class file.ForInlining(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, java.util.List<? extends DynamicType> auxiliaryTypes, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, MethodList<?> instrumentedMethods, RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator)
Creates a new inlining type writer.UnresolvedType(byte[] binaryRepresentation, java.util.List<? extends DynamicType> auxiliaryTypes)
Creates a new unresolved type.WithDecorationOnly(TypeDescription instrumentedType, ClassFileVersion classFileVersion, java.util.List<? extends DynamicType> auxiliaryTypes, MethodList<?> methods, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, TypePool typePool, ClassFileLocator classFileLocator)
Creates a new inlining type writer that only applies a decoration.WithFullProcessing(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, java.util.List<? extends DynamicType> auxiliaryTypes, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, MethodList<?> instrumentedMethods, RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator, MethodRegistry.Prepared methodRegistry, Implementation.Target.Factory implementationTargetFactory, MethodRebaseResolver methodRebaseResolver)
Creates a new inlining type writer that fully reprocesses a type. -
Uses of DynamicType in net.bytebuddy.dynamic.scaffold.inline
Fields in net.bytebuddy.dynamic.scaffold.inline with type parameters of type DynamicType Modifier and Type Field Description private java.util.List<DynamicType>
DecoratingDynamicTypeBuilder. auxiliaryTypes
A list of explicitly required auxiliary types.private java.util.List<DynamicType>
MethodRebaseResolver.Default. dynamicTypes
A list of dynamic types that need to be appended to the created type in order to allow for the rebasement.Methods in net.bytebuddy.dynamic.scaffold.inline that return types with arguments of type DynamicType Modifier and Type Method Description java.util.List<DynamicType>
MethodRebaseResolver.Default. getAuxiliaryTypes()
Returns a (potentially empty) list of auxiliary types that are required by this method rebase resolver.java.util.List<DynamicType>
MethodRebaseResolver.Disabled. getAuxiliaryTypes()
Returns a (potentially empty) list of auxiliary types that are required by this method rebase resolver.java.util.List<DynamicType>
MethodRebaseResolver. getAuxiliaryTypes()
Returns a (potentially empty) list of auxiliary types that are required by this method rebase resolver.Method parameters in net.bytebuddy.dynamic.scaffold.inline with type arguments of type DynamicType Modifier and Type Method Description 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, java.util.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, java.util.List<? extends DynamicType> auxiliaryTypes)
DynamicType.Builder<T>
DecoratingDynamicTypeBuilder. require(java.util.Collection<DynamicType> auxiliaryTypes)
Explicitly requires other dynamic types for the creation of this type.Constructor parameters in net.bytebuddy.dynamic.scaffold.inline with type arguments of type DynamicType Constructor Description AbstractInliningDynamicTypeBuilder(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, java.util.List<? extends DynamicType> auxiliaryTypes, TypeDescription originalType, ClassFileLocator classFileLocator)
Creates an inlining dynamic type builder.DecoratingDynamicTypeBuilder(TypeDescription instrumentedType, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, java.util.List<DynamicType> auxiliaryTypes, ClassFileLocator classFileLocator)
Creates a new decorating dynamic type builder.Default(java.util.Map<MethodDescription.InDefinedShape,MethodRebaseResolver.Resolution> resolutions, java.util.List<DynamicType> dynamicTypes)
Creates a new default method rebased resolver.RebaseDynamicTypeBuilder(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, java.util.List<? extends DynamicType> auxiliaryTypes, TypeDescription originalType, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer)
Creates a rebase dynamic type builder.RedefinitionDynamicTypeBuilder(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, java.util.List<? extends DynamicType> auxiliaryTypes, TypeDescription originalType, ClassFileLocator classFileLocator)
Creates a redefinition dynamic type builder. -
Uses of DynamicType in net.bytebuddy.dynamic.scaffold.subclass
Method parameters in net.bytebuddy.dynamic.scaffold.subclass with type arguments of type DynamicType Modifier and Type Method Description protected 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, java.util.List<? extends DynamicType> auxiliaryTypes)
Constructor parameters in net.bytebuddy.dynamic.scaffold.subclass with type arguments of type DynamicType Constructor Description SubclassDynamicTypeBuilder(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, java.util.List<? extends DynamicType> auxiliaryTypes, ConstructorStrategy constructorStrategy)
Creates a new type builder for creating a subclass. -
Uses of DynamicType in net.bytebuddy.implementation
Fields in net.bytebuddy.implementation with type parameters of type DynamicType Modifier and Type Field Description private java.util.Map<AuxiliaryType,DynamicType>
Implementation.Context.Default. auxiliaryTypes
A map of registered auxiliary types to their dynamic type representation.Methods in net.bytebuddy.implementation that return types with arguments of type DynamicType Modifier and Type Method Description java.util.List<DynamicType>
Implementation.Context.Default. getAuxiliaryTypes()
Returns anyAuxiliaryType
that was registered with thisImplementation.Context
.java.util.List<DynamicType>
Implementation.Context.Disabled. getAuxiliaryTypes()
Returns anyAuxiliaryType
that was registered with thisImplementation.Context
.java.util.List<DynamicType>
Implementation.Context.ExtractableView. getAuxiliaryTypes()
Returns anyAuxiliaryType
that was registered with thisImplementation.Context
. -
Uses of DynamicType in net.bytebuddy.implementation.auxiliary
Methods in net.bytebuddy.implementation.auxiliary that return DynamicType Modifier and Type Method Description DynamicType
AuxiliaryType. make(java.lang.String auxiliaryTypeName, ClassFileVersion classFileVersion, MethodAccessorFactory methodAccessorFactory)
Creates a new auxiliary type.DynamicType
MethodCallProxy. make(java.lang.String auxiliaryTypeName, ClassFileVersion classFileVersion, MethodAccessorFactory methodAccessorFactory)
Creates a new auxiliary type.DynamicType
PrivilegedMemberLookupAction. make(java.lang.String auxiliaryTypeName, ClassFileVersion classFileVersion, MethodAccessorFactory methodAccessorFactory)
Creates a new auxiliary type.DynamicType
TrivialType. make(java.lang.String auxiliaryTypeName, ClassFileVersion classFileVersion, MethodAccessorFactory methodAccessorFactory)
Creates a new auxiliary type.DynamicType
TypeProxy. make(java.lang.String auxiliaryTypeName, ClassFileVersion classFileVersion, MethodAccessorFactory methodAccessorFactory)
Creates a new auxiliary type. -
Uses of DynamicType in net.bytebuddy.implementation.bind.annotation
Methods in net.bytebuddy.implementation.bind.annotation that return DynamicType Modifier and Type Method Description DynamicType
FieldProxy.Binder.AccessorProxy. make(java.lang.String auxiliaryTypeName, ClassFileVersion classFileVersion, MethodAccessorFactory methodAccessorFactory)
Creates a new auxiliary type.DynamicType
Morph.Binder.RedirectionProxy. make(java.lang.String auxiliaryTypeName, ClassFileVersion classFileVersion, MethodAccessorFactory methodAccessorFactory)
Creates a new auxiliary type.DynamicType
Pipe.Binder.Redirection. make(java.lang.String auxiliaryTypeName, ClassFileVersion classFileVersion, MethodAccessorFactory methodAccessorFactory)
Creates a new auxiliary type.
-