public static enum Argument.BindingMechanic extends Enum<Argument.BindingMechanic>
Modifier and Type | Method and Description |
---|---|
protected abstract MethodDelegationBinder.ParameterBinding<?> |
makeBinding(TypeDescription sourceType,
TypeDescription targetType,
int sourceParameterIndex,
Assigner assigner,
boolean considerRuntimeType,
int parameterOffset)
Creates the binding that is requrest
|
static Argument.BindingMechanic |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Argument.BindingMechanic[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Argument.BindingMechanic UNIQUE
public static final Argument.BindingMechanic ANONYMOUS
public static Argument.BindingMechanic[] values()
for (Argument.BindingMechanic c : Argument.BindingMechanic.values()) System.out.println(c);
public static Argument.BindingMechanic 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 nullprotected abstract MethodDelegationBinder.ParameterBinding<?> makeBinding(TypeDescription sourceType, TypeDescription targetType, int sourceParameterIndex, Assigner assigner, boolean considerRuntimeType, int parameterOffset)
sourceType
- The source type to be bound.targetType
- The target type the sourceType
is to be bound to.sourceParameterIndex
- The index of the source parameter.assigner
- The assigner that is used to perform the assignment.considerRuntimeType
- If true
, the assignment is allowed to consider runtime types.parameterOffset
- The offset of the source method's parameter.Copyright © 2014. All rights reserved.