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 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 ClassesModifier and TypeClassDescriptionstatic enum
A factory for creating a default bootstrap argument resolver.protected static class
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
FieldsModifier and TypeFieldDescriptionprivate final MethodDescription.InDefinedShape
The delegation target. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a default bootstrap argument resolver. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves this resolver for a given instrumented type and method.
-
Field Details
-
delegate
The delegation target.
-
-
Constructor Details
-
ForDefaultValues
Creates a default bootstrap argument resolver.- Parameters:
delegate
- The delegation target.
-
-
Method Details
-
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.
-