T
- The annotation type that triggers this factory.public static interface Advice.OffsetMapping.Factory<T extends Annotation>
Advice.OffsetMapping
for a given parameter for a given annotation.Modifier and Type | Interface and Description |
---|---|
static class |
Advice.OffsetMapping.Factory.AdviceType
Describes the type of advice being applied.
|
static class |
Advice.OffsetMapping.Factory.Illegal<T extends Annotation>
A factory for an annotation whose use is not permitted.
|
static class |
Advice.OffsetMapping.Factory.Simple<T extends Annotation>
A simple factory that binds a constant offset mapping.
|
Modifier and Type | Method and Description |
---|---|
Class<T> |
getAnnotationType()
Returns the annotation type of this factory.
|
Advice.OffsetMapping |
make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<T> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Class<T> getAnnotationType()
Advice.OffsetMapping make(ParameterDescription.InDefinedShape target, AnnotationDescription.Loadable<T> annotation, Advice.OffsetMapping.Factory.AdviceType adviceType)
target
- The parameter description for which to resolve an offset mapping.annotation
- The annotation that triggered this factory.adviceType
- true
if the binding is applied using advice method delegation.null
if no mapping can be resolved for this parameter.Copyright © 2014–2020. All rights reserved.