Package net.bytebuddy.asm
Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.ForDefaultValues
- java.lang.Object
-
- net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.ForDefaultValues
-
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver
- Enclosing interface:
- MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver
@Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.ForDefaultValues extends java.lang.Object implements MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver
An implementation that supplies a default set of arguments to a bootstrap method. The arguments are:- A
java.lang.invoke.MethodHandles.Lookup
representing the source method. - A
String
representing the target's internal name. - A
java.lang.invoke.MethodType
representing the type that is requested for binding. - A
String
representation of the delegate's binary class name. - A
Class
representing the receiver type of the substituted element. - A
String
representing the internal name of the substituted element. - A
java.lang.invoke.MethodHandle
to the substituted element. - A
Class
describing the instrumented type. - A
String
representing the instrumented method or constructor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.ForDefaultValues.Factory
A factory for creating a default bootstrap argument resolver.protected static class
MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.ForDefaultValues.Resolved
A resolved default bootstrap argument resolver.-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver
MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.ForDefaultValues
-
-
Field Summary
Fields Modifier and Type Field Description private MethodDescription.InDefinedShape
delegate
The delegation target.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForDefaultValues(MethodDescription.InDefinedShape delegate)
Creates a default bootstrap argument resolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.Resolved
resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Resolves this resolver for a given instrumented type and method.
-
-
-
Field Detail
-
delegate
private final MethodDescription.InDefinedShape delegate
The delegation target.
-
-
Constructor Detail
-
ForDefaultValues
protected ForDefaultValues(MethodDescription.InDefinedShape delegate)
Creates a default bootstrap argument resolver.- Parameters:
delegate
- The delegation target.
-
-
Method Detail
-
resolve
public MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.Resolved resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Resolves this resolver for a given instrumented type and method.- Specified by:
resolve
in interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver
- Parameters:
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.- Returns:
- A resolved version of this argument resolver.
-
-