S
- The mapped annotation type.protected static class Advice.Dispatcher.OffsetMapping.ForUserValue.Factory<S extends Annotation> extends Object implements Advice.Dispatcher.OffsetMapping.Factory
UNDEFINED
Modifier | Constructor and Description |
---|---|
protected |
Factory(Class<S> type,
Advice.DynamicValue<S> dynamicValue)
Creates a new factory for a user-defined dynamic value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
Advice.Dispatcher.OffsetMapping |
make(ParameterDescription.InDefinedShape parameterDescription)
Creates a new offset mapping for the supplied parameter if possible.
|
protected static Advice.Dispatcher.OffsetMapping.Factory |
of(Class<? extends Annotation> type,
Advice.DynamicValue<?> dynamicValue)
Creates a new factory for mapping a user value.
|
String |
toString() |
protected Factory(Class<S> type, Advice.DynamicValue<S> dynamicValue)
type
- The mapped annotation type.dynamicValue
- The dynamic value instance used for resolving a binding.protected static Advice.Dispatcher.OffsetMapping.Factory of(Class<? extends Annotation> type, Advice.DynamicValue<?> dynamicValue)
type
- The mapped annotation type.dynamicValue
- The dynamic value instance used for resolving a binding.public Advice.Dispatcher.OffsetMapping make(ParameterDescription.InDefinedShape parameterDescription)
Advice.Dispatcher.OffsetMapping.Factory
make
in interface Advice.Dispatcher.OffsetMapping.Factory
parameterDescription
- The parameter description for which to resolve an offset mapping.null
if no mapping can be resolved for this parameter.Copyright © 2014–2016. All rights reserved.