Class MemberSubstitution.TypePoolResolver.ForExplicitPool

java.lang.Object
net.bytebuddy.asm.MemberSubstitution.TypePoolResolver.ForExplicitPool
All Implemented Interfaces:
MemberSubstitution.TypePoolResolver
Enclosing interface:
MemberSubstitution.TypePoolResolver

@Enhance public static class MemberSubstitution.TypePoolResolver.ForExplicitPool extends Object implements MemberSubstitution.TypePoolResolver
A type pool resolver that returns a specific type pool.
  • Field Details

    • typePool

      private final TypePool typePool
      The type pool to return.
  • Constructor Details

    • ForExplicitPool

      public ForExplicitPool(TypePool typePool)
      Creates a resolver for an explicit type pool.
      Parameters:
      typePool - The type pool to return.
  • Method Details

    • resolve

      public TypePool resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
      Resolves a type pool to use for locating substituted members.
      Specified by:
      resolve in interface MemberSubstitution.TypePoolResolver
      Parameters:
      instrumentedType - The instrumented type.
      instrumentedMethod - The instrumented method.
      typePool - The type pool implicit to the instrumentation.
      Returns:
      The type pool to use.