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.Lookuprepresenting the source method. - A
Stringrepresenting the target's internal name. - A
java.lang.invoke.MethodTyperepresenting the type that is requested for binding. - A
Stringrepresentation of the delegate's binary class name. - A
Classrepresenting the receiver type of the substituted element. - A
Stringrepresenting the internal name of the substituted element. - A
java.lang.invoke.MethodHandleto the substituted element. - A
Classdescribing the instrumented type. - A
Stringrepresenting the instrumented method or constructor.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumA factory for creating a default bootstrap argument resolver.protected static classA 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.InDefinedShapeThe delegation target. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates 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:
resolvein interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver- Parameters:
instrumentedType- The instrumented type.instrumentedMethod- The instrumented method.- Returns:
- A resolved version of this argument resolver.
-