Enum Morph.Binder.DefaultMethodLocator.Implicit
- java.lang.Object
-
- java.lang.Enum<Morph.Binder.DefaultMethodLocator.Implicit>
-
- net.bytebuddy.implementation.bind.annotation.Morph.Binder.DefaultMethodLocator.Implicit
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Morph.Binder.DefaultMethodLocator.Implicit>
,Morph.Binder.DefaultMethodLocator
- Enclosing interface:
- Morph.Binder.DefaultMethodLocator
public static enum Morph.Binder.DefaultMethodLocator.Implicit extends java.lang.Enum<Morph.Binder.DefaultMethodLocator.Implicit> implements Morph.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 interface net.bytebuddy.implementation.bind.annotation.Morph.Binder.DefaultMethodLocator
Morph.Binder.DefaultMethodLocator.Explicit, Morph.Binder.DefaultMethodLocator.Implicit
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
Implicit()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Implementation.SpecialMethodInvocation
resolve(Implementation.Target implementationTarget, MethodDescription source)
Locates the correct default method to a given source method.static Morph.Binder.DefaultMethodLocator.Implicit
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Morph.Binder.DefaultMethodLocator.Implicit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final Morph.Binder.DefaultMethodLocator.Implicit INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static Morph.Binder.DefaultMethodLocator.Implicit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Morph.Binder.DefaultMethodLocator.Implicit c : Morph.Binder.DefaultMethodLocator.Implicit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Morph.Binder.DefaultMethodLocator.Implicit valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- 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 interfaceMorph.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.
-
-