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.DefaultMethodLocator
A default method locator is responsible for looking up a default method to a given source method.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
An explicit default method locator attempts to look up a default method in the specified interface type.static enum
An 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
Modifier and TypeMethodDescriptionresolve
(Implementation.Target implementationTarget, MethodDescription source) Locates the correct default method to a given source method.
-
Method Details
-
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.
-