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 java.lang.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 Modifier and Type Field Description private TypeDescriptiontypeDescriptionThe explicit target type.
-
Constructor Summary
Constructors Modifier Constructor Description protectedForExplicitType(TypeDescription typeDescription)Creates a method locator for an explicit target.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Implementation.SpecialMethodInvocationresolve(Implementation.Target implementationTarget, MethodDescription source)Resolves the special method invocation to this target.
-
-
-
Field Detail
-
typeDescription
private final TypeDescription typeDescription
The explicit target type.
-
-
Constructor Detail
-
ForExplicitType
protected ForExplicitType(TypeDescription typeDescription)
Creates a method locator for an explicit target.- Parameters:
typeDescription- The explicit target type.
-
-
Method Detail
-
resolve
public Implementation.SpecialMethodInvocation resolve(Implementation.Target implementationTarget, MethodDescription source)
Resolves the special method invocation to this target.- Specified by:
resolvein 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.
-
-