Top Description Fields Constructors Methods
net.bytebuddy.implementation.bind

public final Enum MethodNameEqualityResolver

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

Implementation of an net.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 net.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 net.bytebuddy.implementation.bind.MethodDelegationBinder.AmbiguityResolver.resolve.

Doc from net.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 net.bytebuddy.implementation.bind.MethodDelegationBinder.AmbiguityResolver.Resolution#LEFT indicates a successful binding to the left binding while net.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()