Class DefaultMethod.Binder.MethodLocator.ForExplicitType
- java.lang.Object
-
- net.bytebuddy.implementation.bind.annotation.DefaultMethod.Binder.MethodLocator.ForExplicitType
-
- All Implemented Interfaces:
DefaultMethod.Binder.MethodLocator
- Enclosing interface:
- DefaultMethod.Binder.MethodLocator
@Enhance public static class DefaultMethod.Binder.MethodLocator.ForExplicitType extends java.lang.Object implements DefaultMethod.Binder.MethodLocator
A method locator for an explicit target type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bind.annotation.DefaultMethod.Binder.MethodLocator
DefaultMethod.Binder.MethodLocator.ForExplicitType, DefaultMethod.Binder.MethodLocator.ForImplicitType
-
-
Field Summary
Fields Modifier and Type Field Description private TypeDescription
typeDescription
The explicit target type.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForExplicitType(TypeDescription typeDescription)
Creates a method locator for an explicit target.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Implementation.SpecialMethodInvocation
resolve(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:
resolve
in interfaceDefaultMethod.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.
-
-