Class MethodDelegationBinder.AmbiguityResolver.Compound
java.lang.Object
net.bytebuddy.implementation.bind.MethodDelegationBinder.AmbiguityResolver.Compound
- All Implemented Interfaces:
MethodDelegationBinder.AmbiguityResolver
- Enclosing interface:
MethodDelegationBinder.AmbiguityResolver
@Enhance
public static class MethodDelegationBinder.AmbiguityResolver.Compound
extends Object
implements MethodDelegationBinder.AmbiguityResolver
A chain of
MethodDelegationBinder.AmbiguityResolvers
that are applied in the given order until two bindings can be resolved.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bind.MethodDelegationBinder.AmbiguityResolver
MethodDelegationBinder.AmbiguityResolver.Compound, MethodDelegationBinder.AmbiguityResolver.Directional, MethodDelegationBinder.AmbiguityResolver.NoOp, MethodDelegationBinder.AmbiguityResolver.Resolution -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<MethodDelegationBinder.AmbiguityResolver> A list of ambiguity resolvers that are applied by this chain in their order of application.Fields inherited from interface net.bytebuddy.implementation.bind.MethodDelegationBinder.AmbiguityResolver
DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionCompound(List<? extends MethodDelegationBinder.AmbiguityResolver> ambiguityResolvers) Creates an immutable chain of ambiguity resolvers.Compound(MethodDelegationBinder.AmbiguityResolver... ambiguityResolver) Creates an immutable chain of ambiguity resolvers. -
Method Summary
Modifier and TypeMethodDescriptionresolve(MethodDescription source, MethodDelegationBinder.MethodBinding left, MethodDelegationBinder.MethodBinding right) Attempts to resolve to conflicting bindings.
-
Field Details
-
ambiguityResolvers
A list of ambiguity resolvers that are applied by this chain in their order of application.
-
-
Constructor Details
-
Compound
Creates an immutable chain of ambiguity resolvers.- Parameters:
ambiguityResolver- The ambiguity resolvers to chain in the order of their application.
-
Compound
Creates an immutable chain of ambiguity resolvers.- Parameters:
ambiguityResolvers- The ambiguity resolvers to chain in the order of their application.
-
-
Method Details
-
resolve
public MethodDelegationBinder.AmbiguityResolver.Resolution resolve(MethodDescription source, MethodDelegationBinder.MethodBinding left, MethodDelegationBinder.MethodBinding right) Attempts to resolve to conflicting bindings.- Specified by:
resolvein interfaceMethodDelegationBinder.AmbiguityResolver- Parameters:
source- The source method that was bound to both target methods.left- The first successful binding of thesourcemethod.right- The second successful binding of thesourcemethod.- Returns:
- The resolution state when resolving a conflicting binding where
MethodDelegationBinder.AmbiguityResolver.Resolution.LEFTindicates a successful binding to theleftbinding whileMethodDelegationBinder.AmbiguityResolver.Resolution.RIGHTindicates a successful binding to therightbinding.
-