public static enum DefaultCall.Binder.DefaultMethodLocator.Implicit extends Enum<DefaultCall.Binder.DefaultMethodLocator.Implicit> implements DefaultCall.Binder.DefaultMethodLocator
DefaultCall.Binder.DefaultMethodLocator.Explicit, DefaultCall.Binder.DefaultMethodLocator.Implicit
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
Implementation.SpecialMethodInvocation |
resolve(Implementation.Target implementationTarget,
MethodDescription source)
Locates the correct default method to a given source method.
|
static DefaultCall.Binder.DefaultMethodLocator.Implicit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultCall.Binder.DefaultMethodLocator.Implicit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultCall.Binder.DefaultMethodLocator.Implicit INSTANCE
public static DefaultCall.Binder.DefaultMethodLocator.Implicit[] values()
for (DefaultCall.Binder.DefaultMethodLocator.Implicit c : DefaultCall.Binder.DefaultMethodLocator.Implicit.values()) System.out.println(c);
public static DefaultCall.Binder.DefaultMethodLocator.Implicit valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Implementation.SpecialMethodInvocation resolve(Implementation.Target implementationTarget, MethodDescription source)
resolve
in interface DefaultCall.Binder.DefaultMethodLocator
implementationTarget
- The current implementation target.source
- The source method for which a default method should be looked up.Copyright © 2014–2019. All rights reserved.