Enum MethodDelegationBinder.AmbiguityResolver.Resolution
- java.lang.Object
-
- java.lang.Enum<MethodDelegationBinder.AmbiguityResolver.Resolution>
-
- net.bytebuddy.implementation.bind.MethodDelegationBinder.AmbiguityResolver.Resolution
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MethodDelegationBinder.AmbiguityResolver.Resolution>
- Enclosing interface:
- MethodDelegationBinder.AmbiguityResolver
public static enum MethodDelegationBinder.AmbiguityResolver.Resolution extends java.lang.Enum<MethodDelegationBinder.AmbiguityResolver.Resolution>
A resolution state of an attempt to resolve two conflicting bindings.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AMBIGUOUS
Describes a resolution state where both methods have inflicting dominance over each other.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.UNKNOWN
Describes a resolution state where no information about dominance could be gathered.
-
Field Summary
Fields Modifier and Type Field Description private boolean
unresolved
true
if this resolution is unresolved.
-
Constructor Summary
Constructors Modifier Constructor Description private
Resolution(boolean unresolved)
Creates a new resolution.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isUnresolved()
Checks if this binding is unresolved.MethodDelegationBinder.AmbiguityResolver.Resolution
merge(MethodDelegationBinder.AmbiguityResolver.Resolution other)
Merges two resolutions in order to determine their compatibility.static MethodDelegationBinder.AmbiguityResolver.Resolution
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MethodDelegationBinder.AmbiguityResolver.Resolution[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final MethodDelegationBinder.AmbiguityResolver.Resolution UNKNOWN
Describes a resolution state where no information about dominance could be gathered.
-
LEFT
public static final MethodDelegationBinder.AmbiguityResolver.Resolution LEFT
Describes a resolution state where the left method dominates the right method.
-
RIGHT
public static final MethodDelegationBinder.AmbiguityResolver.Resolution RIGHT
Describes a resolution state where the right method dominates the left method.
-
AMBIGUOUS
public static final MethodDelegationBinder.AmbiguityResolver.Resolution AMBIGUOUS
Describes a resolution state where both methods have inflicting dominance over each other.
-
-
Method Detail
-
values
public static MethodDelegationBinder.AmbiguityResolver.Resolution[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MethodDelegationBinder.AmbiguityResolver.Resolution c : MethodDelegationBinder.AmbiguityResolver.Resolution.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MethodDelegationBinder.AmbiguityResolver.Resolution valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- 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.
-
-