Class DefaultMethodHandle.Binder.MethodLocator.ForExplicitType
java.lang.Object
net.bytebuddy.implementation.bind.annotation.DefaultMethodHandle.Binder.MethodLocator.ForExplicitType
- All Implemented Interfaces:
DefaultMethodHandle.Binder.MethodLocator
- Enclosing interface:
DefaultMethodHandle.Binder.MethodLocator
@Enhance
public static class DefaultMethodHandle.Binder.MethodLocator.ForExplicitType
extends Object
implements DefaultMethodHandle.Binder.MethodLocator
A method locator for an explicit target type.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bind.annotation.DefaultMethodHandle.Binder.MethodLocator
DefaultMethodHandle.Binder.MethodLocator.ForExplicitType, DefaultMethodHandle.Binder.MethodLocator.ForImplicitType
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForExplicitType
(TypeDescription typeDescription) Creates a method locator for an explicit target. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(Implementation.Target implementationTarget, MethodDescription source) Resolves the special method invocation to this target.
-
Field Details
-
typeDescription
The explicit target type.
-
-
Constructor Details
-
ForExplicitType
Creates a method locator for an explicit target.- Parameters:
typeDescription
- The explicit target type.
-
-
Method Details
-
resolve
public Implementation.SpecialMethodInvocation resolve(Implementation.Target implementationTarget, MethodDescription source) Resolves the special method invocation to this target.- Specified by:
resolve
in interfaceDefaultMethodHandle.Binder.MethodLocator
- Parameters:
implementationTarget
- The implementation target.source
- The method being instrumented.- Returns:
- A special method invocation that represents the super call of this binding.
-