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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface MemberSubstitution.TypePoolResolver
MemberSubstitution.TypePoolResolver.ForClassFileLocator, MemberSubstitution.TypePoolResolver.ForExplicitPool, MemberSubstitution.TypePoolResolver.OfImplicitPool -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionForExplicitPool(TypePool typePool) Creates a resolver for an explicit type pool. -
Method Summary
Modifier and TypeMethodDescriptionresolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Resolves a type pool to use for locating substituted members.
-
Field Details
-
typePool
The type pool to return.
-
-
Constructor Details
-
ForExplicitPool
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:
resolvein 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.
-