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

public final Enum ParameterLengthResolver

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

This net.bytebuddy.implementation.bind.MethodDelegationBinder.AmbiguityResolver selects the method with more arguments. If two methods have equally many arguments, the resolution is ambiguous.

Field Summary

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

Field Detail

INSTANCEback to summary
public static final ParameterLengthResolver INSTANCE

The singleton instance.

Constructor Detail

ParameterLengthResolverback to summary
private ParameterLengthResolver()

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