Uses of Interface
net.bytebuddy.dynamic.scaffold.subclass.ConstructorStrategy
Packages that use ConstructorStrategy
Package
Description
Byte Buddy is a library for creating Java classes at runtime of a Java program.
All classes and types in this package are related to creating a
DynamicType
by
creating a subclass of a given type.-
Uses of ConstructorStrategy in net.bytebuddy
Classes in net.bytebuddy that implement ConstructorStrategyModifier and TypeClassDescriptionprotected static enum
A constructor strategy for implementing a Java record.Methods in net.bytebuddy with parameters of type ConstructorStrategyModifier and TypeMethodDescription<T> DynamicType.Builder
<T> ByteBuddy.subclass
(Class<T> superType, ConstructorStrategy constructorStrategy) 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, ConstructorStrategy constructorStrategy) Creates a new builder for subclassing the provided type. -
Uses of ConstructorStrategy in net.bytebuddy.dynamic.scaffold.subclass
Classes in net.bytebuddy.dynamic.scaffold.subclass that implement ConstructorStrategyModifier and TypeClassDescriptionstatic enum
Default implementations of constructor strategies.protected static class
A wrapper for a default constructor strategy which additionally applies a method attribute appender factory.static class
A constructor strategy that creates a default constructor that invokes a super constructor with default arguments.Fields in net.bytebuddy.dynamic.scaffold.subclass declared as ConstructorStrategyModifier and TypeFieldDescriptionprivate final ConstructorStrategy
SubclassDynamicTypeBuilder.constructorStrategy
The constructor strategy to apply onto the instrumented type.Methods in net.bytebuddy.dynamic.scaffold.subclass that return ConstructorStrategyModifier and TypeMethodDescriptionConstructorStrategy.Default.with
(MethodAttributeAppender.Factory methodAttributeAppenderFactory) Returns a constructor strategy that supplies the supplied method attribute appender factory.ConstructorStrategy.Default.withInheritedAnnotations()
Applies this constructor strategy while retaining any of the base constructor's annotations.Constructors in net.bytebuddy.dynamic.scaffold.subclass with parameters of type ConstructorStrategyModifierConstructorDescriptionSubclassDynamicTypeBuilder
(InstrumentedType.WithFlexibleName instrumentedType, 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, ConstructorStrategy constructorStrategy) Creates a new type builder for creating a subclass.protected
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, List<? extends DynamicType> auxiliaryTypes, ConstructorStrategy constructorStrategy) Creates a new type builder for creating a subclass.