Top Description Fields Constructors Methods
net.bytebuddy.dynamic.scaffold.inline

public abstract Class AbstractInliningDynamicTypeBuilder<T>

extends DynamicType.Builder.AbstractBase.Adapter<T>
Class Inheritance
Known Direct Subclasses
net.bytebuddy.dynamic.scaffold.inline.RebaseDynamicTypeBuilder, net.bytebuddy.dynamic.scaffold.inline.RedefinitionDynamicTypeBuilder
Annotations
@Enhance
Type Parameters
<T>
A loaded type that the dynamic type is guaranteed to be a subtype of.
Imports
net.bytebuddy.ClassFileVersion, net.bytebuddy.asm.AsmVisitorWrapper, net.bytebuddy.build.HashCodeAndEqualsPlugin, net.bytebuddy.description.method.MethodDescription, net.bytebuddy.description.type.TypeDescription, net.bytebuddy.dynamic.ClassFileLocator, .DynamicType, .VisibilityBridgeStrategy, net.bytebuddy.dynamic.scaffold.*, net.bytebuddy.implementation.Implementation, net.bytebuddy.implementation.attribute.AnnotationRetention, .AnnotationValueFilter, .TypeAttributeAppender, net.bytebuddy.implementation.auxiliary.AuxiliaryType, net.bytebuddy.matcher.LatentMatcher, net.bytebuddy.pool.TypePool, java.util.List

An abstract base implementation of a dynamic type builder that alters an existing type.

Field Summary

Modifier and TypeField and Description
protected final ClassFileLocator
classFileLocator

The class file locator for locating the original type's class file.

protected final TypeDescription
originalType

The original type that is being redefined or rebased.

Inherited from net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase.Adapter:
annotationRetentionannotationValueFilterFactoryasmVisitorWrapperauxiliaryTypeNamingStrategyauxiliaryTypesclassFileVersionclassWriterStrategyfieldRegistryignoredMethodsimplementationContextFactoryinstrumentedTypemethodGraphCompilermethodRegistryrecordComponentRegistrytypeAttributeAppendertypeValidationvisibilityBridgeStrategy

Constructor Summary

AccessConstructor and Description
protected
AbstractInliningDynamicTypeBuilder(InstrumentedType.WithFlexibleName
An instrumented type representing the subclass.
instrumentedType
,
FieldRegistry
The field pool to use.
fieldRegistry
,
MethodRegistry
The method pool to use.
methodRegistry
,
RecordComponentRegistry
The record component pool to use.
recordComponentRegistry
,
TypeAttributeAppender
The type attribute appender to apply onto the instrumented type.
typeAttributeAppender
,
AsmVisitorWrapper
The ASM visitor wrapper to apply onto the class writer.
asmVisitorWrapper
,
ClassFileVersion
The class file version to use for types that are not based on an existing class file.
classFileVersion
,
AuxiliaryType.NamingStrategy
The naming strategy to use for naming auxiliary types.
auxiliaryTypeNamingStrategy
,
AnnotationValueFilter.Factory
The annotation value filter factory to use.
annotationValueFilterFactory
,
AnnotationRetention
The annotation retention strategy to use.
annotationRetention
,
Implementation.Context.Factory
The implementation context factory to use.
implementationContextFactory
,
MethodGraph.Compiler
The method graph compiler to use.
methodGraphCompiler
,
TypeValidation
Determines if a type should be explicitly validated.
typeValidation
,
VisibilityBridgeStrategy
The visibility bridge strategy to apply.
visibilityBridgeStrategy
,
ClassWriterStrategy
The class writer strategy to use.
classWriterStrategy
,
LatentMatcher<? super MethodDescription>
A matcher for identifying methods that should be excluded from instrumentation.
ignoredMethods
,
List<? extends DynamicType>
A list of explicitly defined auxiliary types.
auxiliaryTypes
,
TypeDescription
The original type that is being redefined or rebased.
originalType
,
ClassFileLocator
The class file locator for locating the original type's class file.
classFileLocator
)

Creates an inlining dynamic type builder.

Method Summary

Modifier and TypeMethod and Description
protected TypeWriter<T>
Inherited from net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase.Adapter:
annotateTypeattributedeclaredTypesdefineConstructordefineFielddefineMethoddefineRecordComponentfieldignoreAlsoimplementinitializerinitializerinnerTypeOfinnerTypeOfinvokablematerializemergemodifiersnamenestHostnestMemberspermittedSubclassrecordComponentrequiresuffixtopLevelTypetoTypeDescriptiontransformtypeVariableunsealedvisit

Field Detail

classFileLocatorback to summary
protected final ClassFileLocator classFileLocator

The class file locator for locating the original type's class file.

originalTypeback to summary
protected final TypeDescription originalType

The original type that is being redefined or rebased.

Constructor Detail

AbstractInliningDynamicTypeBuilderback to summary
protected 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, List<? extends DynamicType> auxiliaryTypes, TypeDescription originalType, ClassFileLocator classFileLocator)

Creates an inlining dynamic type builder.

Parameters
instrumentedType:InstrumentedType.WithFlexibleName

An instrumented type representing the subclass.

fieldRegistry:FieldRegistry

The field pool to use.

methodRegistry:MethodRegistry

The method pool to use.

recordComponentRegistry:RecordComponentRegistry

The record component pool to use.

typeAttributeAppender:TypeAttributeAppender

The type attribute appender to apply onto the instrumented type.

asmVisitorWrapper:AsmVisitorWrapper

The ASM visitor wrapper to apply onto the class writer.

classFileVersion:ClassFileVersion

The class file version to use for types that are not based on an existing class file.

auxiliaryTypeNamingStrategy:AuxiliaryType.NamingStrategy

The naming strategy to use for naming auxiliary types.

annotationValueFilterFactory:AnnotationValueFilter.Factory

The annotation value filter factory to use.

annotationRetention:AnnotationRetention

The annotation retention strategy to use.

implementationContextFactory:Implementation.Context.Factory

The implementation context factory to use.

methodGraphCompiler:MethodGraph.Compiler

The method graph compiler to use.

typeValidation:TypeValidation

Determines if a type should be explicitly validated.

visibilityBridgeStrategy:VisibilityBridgeStrategy

The visibility bridge strategy to apply.

classWriterStrategy:ClassWriterStrategy

The class writer strategy to use.

ignoredMethods:LatentMatcher<? super MethodDescription>

A matcher for identifying methods that should be excluded from instrumentation.

auxiliaryTypes:List<? extends DynamicType>

A list of explicitly defined auxiliary types.

originalType:TypeDescription

The original type that is being redefined or rebased.

classFileLocator:ClassFileLocator

The class file locator for locating the original type's class file.

Method Detail

toTypeWriterback to summary
protected TypeWriter<T> toTypeWriter()

Implements abstract net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase.UsingTypeWriter.toTypeWriter.

Doc from net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase.UsingTypeWriter.toTypeWriter.

Creates a TypeWriter without an explicitly specified TypePool.

Returns:TypeWriter<T>

An appropriate TypeWriter.