Class AbstractInliningDynamicTypeBuilder<T>

Type Parameters:
T - A loaded type that the dynamic type is guaranteed to be a subtype of.
All Implemented Interfaces:
DynamicType.Builder<T>
Direct Known Subclasses:
RebaseDynamicTypeBuilder, RedefinitionDynamicTypeBuilder

@Enhance public abstract class AbstractInliningDynamicTypeBuilder<T> extends DynamicType.Builder.AbstractBase.Adapter<T>
An abstract base implementation of a dynamic type builder that alters an existing type.
  • Field Details

    • originalType

      protected final TypeDescription originalType
      The original type that is being redefined or rebased.
    • classFileLocator

      protected final ClassFileLocator classFileLocator
      The class file locator for locating the original type's class file.
  • Constructor Details

    • AbstractInliningDynamicTypeBuilder

      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 - An instrumented type representing the subclass.
      fieldRegistry - The field pool to use.
      methodRegistry - The method pool to use.
      recordComponentRegistry - The record component pool to use.
      typeAttributeAppender - The type attribute appender to apply onto the instrumented type.
      asmVisitorWrapper - The ASM visitor wrapper to apply onto the class writer.
      classFileVersion - The class file version to use for types that are not based on an existing class file.
      auxiliaryTypeNamingStrategy - The naming strategy to use for naming auxiliary types.
      annotationValueFilterFactory - The annotation value filter factory to use.
      annotationRetention - The annotation retention strategy to use.
      implementationContextFactory - The implementation context factory to use.
      methodGraphCompiler - The method graph compiler to use.
      typeValidation - Determines if a type should be explicitly validated.
      visibilityBridgeStrategy - The visibility bridge strategy to apply.
      classWriterStrategy - The class writer strategy to use.
      ignoredMethods - A matcher for identifying methods that should be excluded from instrumentation.
      auxiliaryTypes - A list of explicitly defined auxiliary types.
      originalType - The original type that is being redefined or rebased.
      classFileLocator - The class file locator for locating the original type's class file.
  • Method Details