Enum MethodDelegationBinder.BindingResolver.Default
java.lang.Object
java.lang.Enum<MethodDelegationBinder.BindingResolver.Default>
net.bytebuddy.implementation.bind.MethodDelegationBinder.BindingResolver.Default
- All Implemented Interfaces:
Serializable
,Comparable<MethodDelegationBinder.BindingResolver.Default>
,java.lang.constant.Constable
,MethodDelegationBinder.BindingResolver
- Enclosing interface:
MethodDelegationBinder.BindingResolver
public static enum MethodDelegationBinder.BindingResolver.Default
extends Enum<MethodDelegationBinder.BindingResolver.Default>
implements MethodDelegationBinder.BindingResolver
A default implementation of a binding resolver that fully relies on an
MethodDelegationBinder.AmbiguityResolver
.-
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.BindingResolver
MethodDelegationBinder.BindingResolver.Default, MethodDelegationBinder.BindingResolver.StreamWriting, MethodDelegationBinder.BindingResolver.Unique
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
Represents the index of the left value of two elements in a list.private static final int
Represents the index of the only value of two elements in a list.private static final int
Represents the index of the right value of two elements in a list. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoResolve
(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, MethodDescription source, List<MethodDelegationBinder.MethodBinding> targets) Resolves a method binding for thesource
method.resolve
(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, MethodDescription source, List<MethodDelegationBinder.MethodBinding> targets) Resolves a method binding for thesource
method.Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Field Details
-
ONLY
private static final int ONLYRepresents the index of the only value of two elements in a list.- See Also:
-
LEFT
private static final int LEFTRepresents the index of the left value of two elements in a list.- See Also:
-
RIGHT
private static final int RIGHTRepresents the index of the right value of two elements in a list.- See Also:
-
-
Constructor Details
-
Default
private Default()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
resolve
public MethodDelegationBinder.MethodBinding resolve(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, MethodDescription source, List<MethodDelegationBinder.MethodBinding> targets) Resolves a method binding for thesource
method.- Specified by:
resolve
in interfaceMethodDelegationBinder.BindingResolver
- Parameters:
ambiguityResolver
- The ambiguity resolver to use.source
- The source method being bound.targets
- The possible target candidates. The list contains at least one element.- Returns:
- The method binding that was chosen.
-
doResolve
private MethodDelegationBinder.MethodBinding doResolve(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, MethodDescription source, List<MethodDelegationBinder.MethodBinding> targets) Resolves a method binding for thesource
method.- Parameters:
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.- Returns:
- The method binding that was chosen.
-