Package net.bytebuddy.asm
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 java.lang.Object implements MemberSubstitution.TypePoolResolver
A type pool resolver that returns a specific type pool.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.MemberSubstitution.TypePoolResolver
MemberSubstitution.TypePoolResolver.ForClassFileLocator, MemberSubstitution.TypePoolResolver.ForExplicitPool, MemberSubstitution.TypePoolResolver.OfImplicitPool
-
-
Constructor Summary
Constructors Constructor Description ForExplicitPool(TypePool typePool)
Creates a resolver for an explicit type pool.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypePool
resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
Resolves a type pool to use for locating substituted members.
-
-
-
Field Detail
-
typePool
private final TypePool typePool
The type pool to return.
-
-
Constructor Detail
-
ForExplicitPool
public ForExplicitPool(TypePool typePool)
Creates a resolver for an explicit type pool.- Parameters:
typePool
- The type pool to return.
-
-
Method Detail
-
resolve
public TypePool resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
Resolves a type pool to use for locating substituted members.- Specified by:
resolve
in interfaceMemberSubstitution.TypePoolResolver
- Parameters:
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.typePool
- The type pool implicit to the instrumentation.- Returns:
- The type pool to use.
-
-