public static enum BindingPriority.Resolver extends Enum<BindingPriority.Resolver> implements MethodDelegationBinder.AmbiguityResolver
BindingPriority
annotation.MethodDelegationBinder.AmbiguityResolver.Compound, MethodDelegationBinder.AmbiguityResolver.Directional, MethodDelegationBinder.AmbiguityResolver.NoOp, MethodDelegationBinder.AmbiguityResolver.Resolution
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
DEFAULT
Modifier and Type | Method and Description |
---|---|
MethodDelegationBinder.AmbiguityResolver.Resolution |
resolve(MethodDescription source,
MethodDelegationBinder.MethodBinding left,
MethodDelegationBinder.MethodBinding right)
Attempts to resolve to conflicting bindings.
|
static BindingPriority.Resolver |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BindingPriority.Resolver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BindingPriority.Resolver INSTANCE
public static BindingPriority.Resolver[] values()
for (BindingPriority.Resolver c : BindingPriority.Resolver.values()) System.out.println(c);
public static BindingPriority.Resolver valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic MethodDelegationBinder.AmbiguityResolver.Resolution resolve(MethodDescription source, MethodDelegationBinder.MethodBinding left, MethodDelegationBinder.MethodBinding right)
resolve
in interface MethodDelegationBinder.AmbiguityResolver
source
- The source method that was bound to both target methods.left
- The first successful binding of the source
method.right
- The second successful binding of the source
method.MethodDelegationBinder.AmbiguityResolver.Resolution.LEFT
indicates a successful binding to the left
binding while
MethodDelegationBinder.AmbiguityResolver.Resolution.RIGHT
indicates a successful binding to the right
binding.Copyright © 2014–2024. All rights reserved.