Package | Description |
---|---|
net.bytebuddy |
Byte Buddy is a library for creating Java classes at runtime of a Java program.
|
net.bytebuddy.dynamic.scaffold.subclass |
All classes and types in this package are related to creating a
DynamicType by
creating a subclass of a given type. |
Modifier and Type | Method and Description |
---|---|
<T> DynamicType.Builder<T> |
ByteBuddy.subclass(Class<T> superType,
ConstructorStrategy constructorStrategy)
Creates a new builder for subclassing the provided type.
|
DynamicType.Builder<?> |
ByteBuddy.subclass(Type superType,
ConstructorStrategy constructorStrategy)
Creates a new builder for subclassing the provided type.
|
DynamicType.Builder<?> |
ByteBuddy.subclass(TypeDefinition superType,
ConstructorStrategy constructorStrategy)
Creates a new builder for subclassing the provided type.
|
Modifier and Type | Class and Description |
---|---|
static class |
ConstructorStrategy.Default
Default implementations of constructor strategies.
|
protected static class |
ConstructorStrategy.Default.WithMethodAttributeAppenderFactory
A wrapper for a default constructor strategy which additionally applies a method attribute appender factory.
|
static class |
ConstructorStrategy.ForDefaultConstructor
A constructor strategy that creates a default constructor that invokes a super constructor with default arguments.
|
Modifier and Type | Method and Description |
---|---|
ConstructorStrategy |
ConstructorStrategy.Default.with(MethodAttributeAppender.Factory methodAttributeAppenderFactory)
Returns a constructor strategy that supplies the supplied method attribute appender factory.
|
ConstructorStrategy |
ConstructorStrategy.Default.withInheritedAnnotations()
Applies this constructor strategy while retaining any of the base constructor's annotations.
|
Constructor and Description |
---|
SubclassDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType,
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,
ConstructorStrategy constructorStrategy)
Creates a new type builder for creating a subclass.
|
SubclassDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
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,
ConstructorStrategy constructorStrategy)
Creates a new type builder for creating a subclass.
|
Copyright © 2014–2018. All rights reserved.