Class Morph.Binder.DefaultMethodLocator.Explicit
- java.lang.Object
-
- net.bytebuddy.implementation.bind.annotation.Morph.Binder.DefaultMethodLocator.Explicit
-
- All Implemented Interfaces:
Morph.Binder.DefaultMethodLocator
- Enclosing interface:
- Morph.Binder.DefaultMethodLocator
@Enhance public static class Morph.Binder.DefaultMethodLocator.Explicit extends java.lang.Object implements Morph.Binder.DefaultMethodLocator
An explicit default method locator attempts to look up a default method in the specified interface type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bind.annotation.Morph.Binder.DefaultMethodLocator
Morph.Binder.DefaultMethodLocator.Explicit, Morph.Binder.DefaultMethodLocator.Implicit
-
-
Field Summary
Fields Modifier and Type Field Description private TypeDescription
typeDescription
A description of the type on which the default method should be invoked.
-
Constructor Summary
Constructors Constructor Description Explicit(TypeDescription typeDescription)
Creates a new explicit default method locator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Implementation.SpecialMethodInvocation
resolve(Implementation.Target implementationTarget, MethodDescription source)
Locates the correct default method to a given source method.
-
-
-
Field Detail
-
typeDescription
private final TypeDescription typeDescription
A description of the type on which the default method should be invoked.
-
-
Constructor Detail
-
Explicit
public Explicit(TypeDescription typeDescription)
Creates a new explicit default method locator.- Parameters:
typeDescription
- The actual target interface as explicitly defined byDefaultCall.targetType()
.
-
-
Method Detail
-
resolve
public Implementation.SpecialMethodInvocation resolve(Implementation.Target implementationTarget, MethodDescription source)
Locates the correct default method to a given source method.- Specified by:
resolve
in interfaceMorph.Binder.DefaultMethodLocator
- Parameters:
implementationTarget
- The current implementation target.source
- The source method for which a default method should be looked up.- Returns:
- A special method invocation of the default method or an illegal special method invocation, if no suitable invocation could be located.
-
-