Class Implementation.Context.ExtractableView.AbstractBase

java.lang.Object
net.bytebuddy.implementation.Implementation.Context.ExtractableView.AbstractBase
All Implemented Interfaces:
Implementation.Context, Implementation.Context.ExtractableView, MethodAccessorFactory
Direct Known Subclasses:
Implementation.Context.Default, Implementation.Context.Disabled
Enclosing interface:
Implementation.Context.ExtractableView

@Enhance public abstract static class Implementation.Context.ExtractableView.AbstractBase extends Object implements Implementation.Context.ExtractableView
An abstract base implementation of an extractable view of an implementation context.
  • Field Details

    • instrumentedType

      protected final TypeDescription instrumentedType
      The instrumented type.
    • classFileVersion

      protected final ClassFileVersion classFileVersion
      The class file version of the dynamic type.
  • Constructor Details

    • AbstractBase

      protected AbstractBase(TypeDescription instrumentedType, ClassFileVersion classFileVersion)
      Create a new extractable view.
      Parameters:
      instrumentedType - The instrumented type.
      classFileVersion - The class file version of the dynamic type.
  • Method Details

    • getInstrumentedType

      public TypeDescription getInstrumentedType()
      Returns the instrumented type of the current implementation. The instrumented type is exposed with the intend of allowing optimal byte code generation and not for implementing checks or changing the behavior of a StackManipulation.
      Specified by:
      getInstrumentedType in interface Implementation.Context
      Returns:
      The instrumented type of the current implementation.
    • getClassFileVersion

      public ClassFileVersion getClassFileVersion()
      Returns the class file version of the currently created dynamic type.
      Specified by:
      getClassFileVersion in interface Implementation.Context
      Returns:
      The class file version of the currently created dynamic type.