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

public final Enum DeclaringTypeResolver

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

This ambiguity resolver matches that method out of two methods that is declared by the more specific type. If two methods are declared by the same type or by two unrelated types, this resolver returns an ambiguous result.

Field Summary

Modifier and TypeField and Description
public static final DeclaringTypeResolver
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 DeclaringTypeResolver
public static DeclaringTypeResolver[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSTANCEback to summary
public static final DeclaringTypeResolver INSTANCE

The singleton instance.

Constructor Detail

DeclaringTypeResolverback to summary
private DeclaringTypeResolver()

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 DeclaringTypeResolver valueOf(String name)
valuesback to summary
public static DeclaringTypeResolver[] values()