Interface DefaultCall.Binder.DefaultMethodLocator
-
- All Known Implementing Classes:
DefaultCall.Binder.DefaultMethodLocator.Explicit,DefaultCall.Binder.DefaultMethodLocator.Implicit
- Enclosing class:
- DefaultCall.Binder
protected static interface DefaultCall.Binder.DefaultMethodLocatorA default method locator is responsible for looking up a default method to a given source method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDefaultCall.Binder.DefaultMethodLocator.ExplicitAn explicit default method locator attempts to look up a default method in the specified interface type.static classDefaultCall.Binder.DefaultMethodLocator.ImplicitAn implicit default method locator that only permits the invocation of a default method if the source method itself represents a method that was defined on a default method interface.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Implementation.SpecialMethodInvocationresolve(Implementation.Target implementationTarget, MethodDescription source)Locates the correct default method to a given source method.
-
-
-
Method Detail
-
resolve
Implementation.SpecialMethodInvocation resolve(Implementation.Target implementationTarget, MethodDescription source)
Locates the correct default method to a given source method.- 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.
-
-