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.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 Classes Modifier and Type Class Description static classMemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.ForDefaultValues.FactoryA factory for creating a default bootstrap argument resolver.protected static classMemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.ForDefaultValues.ResolvedA 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.InDefinedShapedelegateThe delegation target.
-
Constructor Summary
Constructors Modifier Constructor Description protectedForDefaultValues(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.Resolvedresolve(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:
resolvein interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver- Parameters:
instrumentedType- The instrumented type.instrumentedMethod- The instrumented method.- Returns:
- A resolved version of this argument resolver.
-
-