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 Classes Modifier and Type Interface Description static class
MethodDelegationBinder.BindingResolver.Default
A default implementation of a binding resolver that fully relies on anMethodDelegationBinder.AmbiguityResolver
.static class
MethodDelegationBinder.BindingResolver.StreamWriting
Binds a method using another resolver and prints the selected binding to aPrintStream
.static class
MethodDelegationBinder.BindingResolver.Unique
A binding resolver that only binds a method if it has a unique binding.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodDelegationBinder.MethodBinding
resolve(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, MethodDescription source, java.util.List<MethodDelegationBinder.MethodBinding> targets)
Resolves a method binding for thesource
method.
-
-
-
Method Detail
-
resolve
MethodDelegationBinder.MethodBinding resolve(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, MethodDescription source, java.util.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.
-
-