public static enum Argument.NextUnboundAsDefaultsProvider extends Enum<Argument.NextUnboundAsDefaultsProvider> implements TargetMethodAnnotationDrivenBinder.DefaultsProvider
bar(Object, String)
would be equivalent to a bar(@Argument(0) Object, @Argument(1) String)
.Modifier and Type | Class and Description |
---|---|
protected static class |
Argument.NextUnboundAsDefaultsProvider.NextUnboundArgumentIterator
An iterator that creates
Argument
annotations for any non-referenced index of the source method. |
TargetMethodAnnotationDrivenBinder.DefaultsProvider.Empty
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
Iterator<AnnotationDescription> |
makeIterator(Implementation.Target implementationTarget,
MethodDescription source,
MethodDescription target)
Creates an iterator from which a value is pulled each time no processable annotation is found on a
method parameter.
|
String |
toString() |
static Argument.NextUnboundAsDefaultsProvider |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Argument.NextUnboundAsDefaultsProvider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Argument.NextUnboundAsDefaultsProvider INSTANCE
public static Argument.NextUnboundAsDefaultsProvider[] values()
for (Argument.NextUnboundAsDefaultsProvider c : Argument.NextUnboundAsDefaultsProvider.values()) System.out.println(c);
public static Argument.NextUnboundAsDefaultsProvider 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 Iterator<AnnotationDescription> makeIterator(Implementation.Target implementationTarget, MethodDescription source, MethodDescription target)
TargetMethodAnnotationDrivenBinder.DefaultsProvider
makeIterator
in interface TargetMethodAnnotationDrivenBinder.DefaultsProvider
implementationTarget
- The target of the current implementation.source
- The source method that is bound to the target
method.target
- Tge target method that is subject to be bound by the source
method.public String toString()
toString
in class Enum<Argument.NextUnboundAsDefaultsProvider>
Copyright © 2014–2015. All rights reserved.