public static enum MethodDelegationBinder.BindingResolver.Default extends java.lang.Enum<MethodDelegationBinder.BindingResolver.Default> implements MethodDelegationBinder.BindingResolver
MethodDelegationBinder.AmbiguityResolver.MethodDelegationBinder.BindingResolver.Default, MethodDelegationBinder.BindingResolver.StreamWriting, MethodDelegationBinder.BindingResolver.Unique| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Field and Description |
|---|---|
private static int |
LEFT
Represents the index of the left value of two elements in a list.
|
private static int |
ONLY
Represents the index of the only value of two elements in a list.
|
private static int |
RIGHT
Represents the index of the right value of two elements in a list.
|
| Modifier and Type | Method and Description |
|---|---|
private MethodDelegationBinder.MethodBinding |
doResolve(MethodDelegationBinder.AmbiguityResolver ambiguityResolver,
MethodDescription source,
java.util.List<MethodDelegationBinder.MethodBinding> targets)
Resolves a method binding for the
source method. |
MethodDelegationBinder.MethodBinding |
resolve(MethodDelegationBinder.AmbiguityResolver ambiguityResolver,
MethodDescription source,
java.util.List<MethodDelegationBinder.MethodBinding> targets)
Resolves a method binding for the
source method. |
static MethodDelegationBinder.BindingResolver.Default |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MethodDelegationBinder.BindingResolver.Default[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodDelegationBinder.BindingResolver.Default INSTANCE
private static final int ONLY
private static final int LEFT
private static final int RIGHT
public static MethodDelegationBinder.BindingResolver.Default[] values()
for (MethodDelegationBinder.BindingResolver.Default c : MethodDelegationBinder.BindingResolver.Default.values()) System.out.println(c);
public static MethodDelegationBinder.BindingResolver.Default valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic MethodDelegationBinder.MethodBinding resolve(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, MethodDescription source, java.util.List<MethodDelegationBinder.MethodBinding> targets)
source method.resolve in interface MethodDelegationBinder.BindingResolverambiguityResolver - The ambiguity resolver to use.source - The source method being bound.targets - The possible target candidates. The list contains at least one element.private MethodDelegationBinder.MethodBinding doResolve(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, MethodDescription source, java.util.List<MethodDelegationBinder.MethodBinding> targets)
source method.ambiguityResolver - The ambiguity resolver to use.source - The source method being bound.targets - The possible target candidates. The list contains at least one element and is mutable.