Enum Class MethodDelegationBinder.AmbiguityResolver.Directional
java.lang.Object
java.lang.Enum<MethodDelegationBinder.AmbiguityResolver.Directional>
net.bytebuddy.implementation.bind.MethodDelegationBinder.AmbiguityResolver.Directional
- All Implemented Interfaces:
Serializable
,Comparable<MethodDelegationBinder.AmbiguityResolver.Directional>
,Constable
,MethodDelegationBinder.AmbiguityResolver
- Enclosing interface:
- MethodDelegationBinder.AmbiguityResolver
public static enum MethodDelegationBinder.AmbiguityResolver.Directional
extends Enum<MethodDelegationBinder.AmbiguityResolver.Directional>
implements MethodDelegationBinder.AmbiguityResolver
An ambiguity resolver that always resolves in the specified direction.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bind.MethodDelegationBinder.AmbiguityResolver
MethodDelegationBinder.AmbiguityResolver.Compound, MethodDelegationBinder.AmbiguityResolver.Directional, MethodDelegationBinder.AmbiguityResolver.NoOp, MethodDelegationBinder.AmbiguityResolver.Resolution
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA resolver that always resolves toMethodDelegationBinder.AmbiguityResolver.Resolution.LEFT
.A resolver that always resolves toMethodDelegationBinder.AmbiguityResolver.Resolution.RIGHT
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
true
if this instance should resolve to the left side.Fields inherited from interface net.bytebuddy.implementation.bind.MethodDelegationBinder.AmbiguityResolver
DEFAULT
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Directional
(boolean left) Creates a new directional resolver. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(MethodDescription source, MethodDelegationBinder.MethodBinding left, MethodDelegationBinder.MethodBinding right) Attempts to resolve to conflicting bindings.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEFT
A resolver that always resolves toMethodDelegationBinder.AmbiguityResolver.Resolution.LEFT
. -
RIGHT
A resolver that always resolves toMethodDelegationBinder.AmbiguityResolver.Resolution.RIGHT
.
-
-
Field Details
-
left
private final boolean lefttrue
if this instance should resolve to the left side.
-
-
Constructor Details
-
Directional
private Directional(boolean left) Creates a new directional resolver.- Parameters:
left
-true
if this instance should resolve to the left side.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
resolve
public MethodDelegationBinder.AmbiguityResolver.Resolution resolve(MethodDescription source, MethodDelegationBinder.MethodBinding left, MethodDelegationBinder.MethodBinding right) Attempts to resolve to conflicting bindings.- Specified by:
resolve
in interfaceMethodDelegationBinder.AmbiguityResolver
- Parameters:
source
- The source method that was bound to both target methods.left
- The first successful binding of thesource
method.right
- The second successful binding of thesource
method.- Returns:
- The resolution state when resolving a conflicting binding where
MethodDelegationBinder.AmbiguityResolver.Resolution.LEFT
indicates a successful binding to theleft
binding whileMethodDelegationBinder.AmbiguityResolver.Resolution.RIGHT
indicates a successful binding to theright
binding.
-