public static enum Morph.Binder.DefaultMethodLocator.Implicit extends Enum<Morph.Binder.DefaultMethodLocator.Implicit> implements Morph.Binder.DefaultMethodLocator
Morph.Binder.DefaultMethodLocator.Explicit, Morph.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 Morph.Binder.DefaultMethodLocator.Implicit |
valueOf(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.
|
public static final Morph.Binder.DefaultMethodLocator.Implicit INSTANCE
public static Morph.Binder.DefaultMethodLocator.Implicit[] values()
for (Morph.Binder.DefaultMethodLocator.Implicit c : Morph.Binder.DefaultMethodLocator.Implicit.values()) System.out.println(c);
public static Morph.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 Morph.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.