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 enumA default implementation of a binding resolver that fully relies on anMethodDelegationBinder.AmbiguityResolver.static classBinds a method using another resolver and prints the selected binding to aPrintStream.static enumA 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 thesourcemethod.
-
Method Details
-
resolve
MethodDelegationBinder.MethodBinding resolve(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, MethodDescription source, List<MethodDelegationBinder.MethodBinding> targets) Resolves a method binding for thesourcemethod.- 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.
-