Top Description Fields Constructors Methods
org.easymock.bytebuddy.implementation.bind

public final Enum MethodNameEqualityResolver

extends Enum<MethodNameEqualityResolver>
implements AmbiguityResolver
Class Inheritance
All Implemented Interfaces
org.easymock.bytebuddy.implementation.bind.MethodDelegationBinder.AmbiguityResolver
Imports
org.easymock.bytebuddy.description.method.MethodDescription

Implementation of an org.easymock.bytebuddy.implementation.bind.MethodDelegationBinder.AmbiguityResolver that resolves conflicting bindings by considering equality of a target method's name as an indicator for a dominant binding.

 

For example, if method source.foo can be bound to methods targetA.foo and targetB.bar, targetA.foo will be considered as dominant.

Field Summary

Modifier and TypeField and Description
public static final MethodNameEqualityResolver
INSTANCE

The singleton instance.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public MethodDelegationBinder.AmbiguityResolver.Resolution
resolve(MethodDescription
The source method that was bound to both target methods.
source
,
MethodDelegationBinder.MethodBinding
The first successful binding of the source method.
left
,
MethodDelegationBinder.MethodBinding
The second successful binding of the source method.
right
)

Implements org.easymock.bytebuddy.implementation.bind.MethodDelegationBinder.AmbiguityResolver.resolve.

Attempts to resolve to conflicting bindings.
public static MethodNameEqualityResolver
public static MethodNameEqualityResolver[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSTANCEback to summary
public static final MethodNameEqualityResolver INSTANCE

The singleton instance.

Constructor Detail

MethodNameEqualityResolverback to summary
private MethodNameEqualityResolver()

Method Detail

resolveback to summary
public MethodDelegationBinder.AmbiguityResolver.Resolution resolve(MethodDescription source, MethodDelegationBinder.MethodBinding left, MethodDelegationBinder.MethodBinding right)

Implements org.easymock.bytebuddy.implementation.bind.MethodDelegationBinder.AmbiguityResolver.resolve.

Doc from org.easymock.bytebuddy.implementation.bind.MethodDelegationBinder.AmbiguityResolver.resolve.

Attempts to resolve to conflicting bindings.

Parameters
source:MethodDescription

The source method that was bound to both target methods.

left:MethodDelegationBinder.MethodBinding

The first successful binding of the source method.

right:MethodDelegationBinder.MethodBinding

The second successful binding of the source method.

Returns:MethodDelegationBinder.AmbiguityResolver.Resolution

The resolution state when resolving a conflicting binding where org.easymock.bytebuddy.implementation.bind.MethodDelegationBinder.AmbiguityResolver.Resolution#LEFT indicates a successful binding to the left binding while org.easymock.bytebuddy.implementation.bind.MethodDelegationBinder.AmbiguityResolver.Resolution#RIGHT indicates a successful binding to the right binding.

valueOfback to summary
public static MethodNameEqualityResolver valueOf(String name)
valuesback to summary
public static MethodNameEqualityResolver[] values()