Interface MethodDelegationBinder.BindingResolver
-
- All Known Implementing Classes:
MethodDelegationBinder.BindingResolver.Default,MethodDelegationBinder.BindingResolver.StreamWriting,MethodDelegationBinder.BindingResolver.Unique
- Enclosing interface:
- MethodDelegationBinder
public static interface MethodDelegationBinder.BindingResolverA binding resolver is responsible to choose a method binding between several possible candidates.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMethodDelegationBinder.BindingResolver.DefaultA default implementation of a binding resolver that fully relies on anMethodDelegationBinder.AmbiguityResolver.static classMethodDelegationBinder.BindingResolver.StreamWritingBinds a method using another resolver and prints the selected binding to aPrintStream.static classMethodDelegationBinder.BindingResolver.UniqueA 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.MethodBindingresolve(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, MethodDescription source, java.util.List<MethodDelegationBinder.MethodBinding> targets)Resolves a method binding for thesourcemethod.
-
-
-
Method Detail
-
resolve
MethodDelegationBinder.MethodBinding resolve(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, MethodDescription source, java.util.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.
-
-