@HashCodeAndEqualsPlugin.Enhance public static class DefaultCall.Binder.DefaultMethodLocator.Explicit extends java.lang.Object implements DefaultCall.Binder.DefaultMethodLocator
DefaultCall.Binder.DefaultMethodLocator.Explicit, DefaultCall.Binder.DefaultMethodLocator.Implicit| Modifier and Type | Field and Description |
|---|---|
private TypeDescription |
typeDescription
A description of the type on which the default method should be invoked.
|
| Constructor and Description |
|---|
Explicit(TypeDescription typeDescription)
Creates a new explicit default method locator.
|
| Modifier and Type | Method and Description |
|---|---|
Implementation.SpecialMethodInvocation |
resolve(Implementation.Target implementationTarget,
MethodDescription source)
Locates the correct default method to a given source method.
|
private final TypeDescription typeDescription
public Explicit(TypeDescription typeDescription)
typeDescription - The actual target interface as explicitly defined by
DefaultCall.targetType().public Implementation.SpecialMethodInvocation resolve(Implementation.Target implementationTarget, MethodDescription source)
resolve in interface DefaultCall.Binder.DefaultMethodLocatorimplementationTarget - The current implementation target.source - The source method for which a default method should be looked up.