Interface MethodDelegationBinder.BindingResolver
- All Known Implementing Classes:
MethodDelegationBinder.BindingResolver.Default
,MethodDelegationBinder.BindingResolver.StreamWriting
,MethodDelegationBinder.BindingResolver.Unique
- Enclosing interface:
- MethodDelegationBinder
public static interface MethodDelegationBinder.BindingResolver
A binding resolver is responsible to choose a method binding between several possible candidates.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
A default implementation of a binding resolver that fully relies on anMethodDelegationBinder.AmbiguityResolver
.static class
Binds a method using another resolver and prints the selected binding to aPrintStream
.static enum
A binding resolver that only binds a method if it has a unique binding. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, MethodDescription source, List<MethodDelegationBinder.MethodBinding> targets) Resolves a method binding for thesource
method.
-
Method Details
-
resolve
MethodDelegationBinder.MethodBinding resolve(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, MethodDescription source, List<MethodDelegationBinder.MethodBinding> targets) Resolves a method binding for thesource
method.- Parameters:
ambiguityResolver
- The ambiguity resolver to use.source
- The source method being bound.targets
- The possible target candidates. The list contains at least one element.- Returns:
- The method binding that was chosen.
-