Enum DefaultCallHandle.Binder.DefaultMethodLocator.Implicit
java.lang.Object
java.lang.Enum<DefaultCallHandle.Binder.DefaultMethodLocator.Implicit>
net.bytebuddy.implementation.bind.annotation.DefaultCallHandle.Binder.DefaultMethodLocator.Implicit
- All Implemented Interfaces:
Serializable
,Comparable<DefaultCallHandle.Binder.DefaultMethodLocator.Implicit>
,java.lang.constant.Constable
,DefaultCallHandle.Binder.DefaultMethodLocator
- Enclosing interface:
DefaultCallHandle.Binder.DefaultMethodLocator
public static enum DefaultCallHandle.Binder.DefaultMethodLocator.Implicit
extends Enum<DefaultCallHandle.Binder.DefaultMethodLocator.Implicit>
implements DefaultCallHandle.Binder.DefaultMethodLocator
An implicit default method locator that only permits the invocation of a default method if the source
method itself represents a method that was defined on a default method interface.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bind.annotation.DefaultCallHandle.Binder.DefaultMethodLocator
DefaultCallHandle.Binder.DefaultMethodLocator.Explicit, DefaultCallHandle.Binder.DefaultMethodLocator.Implicit
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolve
(Implementation.Target implementationTarget, MethodDescription source) Locates the correct default method to a given source method.Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
Implicit
private Implicit()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
resolve
public Implementation.SpecialMethodInvocation resolve(Implementation.Target implementationTarget, MethodDescription source) Locates the correct default method to a given source method.- Specified by:
resolve
in interfaceDefaultCallHandle.Binder.DefaultMethodLocator
- Parameters:
implementationTarget
- The current implementation target.source
- The source method for which a default method should be looked up.- Returns:
- A special method invocation of the default method or an illegal special method invocation, if no suitable invocation could be located.
-