Enum Class MethodDelegationBinder.AmbiguityResolver.Resolution
java.lang.Object
java.lang.Enum<MethodDelegationBinder.AmbiguityResolver.Resolution>
net.bytebuddy.implementation.bind.MethodDelegationBinder.AmbiguityResolver.Resolution
- All Implemented Interfaces:
Serializable
,Comparable<MethodDelegationBinder.AmbiguityResolver.Resolution>
,Constable
- Enclosing interface:
MethodDelegationBinder.AmbiguityResolver
public static enum MethodDelegationBinder.AmbiguityResolver.Resolution
extends Enum<MethodDelegationBinder.AmbiguityResolver.Resolution>
A resolution state of an attempt to resolve two conflicting bindings.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDescribes a resolution state where both methods have inflicting dominance over each other.Describes a resolution state where the left method dominates the right method.Describes a resolution state where the right method dominates the left method.Describes a resolution state where no information about dominance could be gathered. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
true
if this resolution is unresolved. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if this binding is unresolved.Merges two resolutions in order to determine their compatibility.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
-
UNKNOWN
Describes a resolution state where no information about dominance could be gathered. -
LEFT
Describes a resolution state where the left method dominates the right method. -
RIGHT
Describes a resolution state where the right method dominates the left method. -
AMBIGUOUS
Describes a resolution state where both methods have inflicting dominance over each other.
-
-
Field Details
-
unresolved
private final boolean unresolvedtrue
if this resolution is unresolved.
-
-
Constructor Details
-
Resolution
private Resolution(boolean unresolved) Creates a new resolution.- Parameters:
unresolved
-true
if this resolution is unresolved.
-
-
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
-
isUnresolved
public boolean isUnresolved()Checks if this binding is unresolved.- Returns:
true
if this binding is unresolved.
-
merge
public MethodDelegationBinder.AmbiguityResolver.Resolution merge(MethodDelegationBinder.AmbiguityResolver.Resolution other) Merges two resolutions in order to determine their compatibility.- Parameters:
other
- The resolution this resolution is to be checked against.- Returns:
- The merged resolution.
-