@HashCodeAndEqualsPlugin.Enhance protected static class Advice.OffsetMapping.ForEnterValue.Factory extends Object implements Advice.OffsetMapping.Factory<Advice.Enter>
Advice.OffsetMapping.ForEnterValue
offset mapping.Advice.OffsetMapping.Factory.AdviceType, Advice.OffsetMapping.Factory.Illegal<T extends Annotation>, Advice.OffsetMapping.Factory.Simple<T extends Annotation>
Modifier | Constructor and Description |
---|---|
protected |
Factory(TypeDefinition enterType)
Creates a new factory for creating a
Advice.OffsetMapping.ForEnterValue offset mapping. |
Modifier and Type | Method and Description |
---|---|
Class<Advice.Enter> |
getAnnotationType()
Returns the annotation type of this factory.
|
Advice.OffsetMapping |
make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Advice.Enter> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
protected static Advice.OffsetMapping.Factory<Advice.Enter> |
of(TypeDefinition typeDefinition)
Creates a new factory for creating a
Advice.OffsetMapping.ForEnterValue offset mapping. |
protected Factory(TypeDefinition enterType)
Advice.OffsetMapping.ForEnterValue
offset mapping.enterType
- The supplied type of the enter method.protected static Advice.OffsetMapping.Factory<Advice.Enter> of(TypeDefinition typeDefinition)
Advice.OffsetMapping.ForEnterValue
offset mapping.typeDefinition
- The supplied type of the enter advice.public Class<Advice.Enter> getAnnotationType()
getAnnotationType
in interface Advice.OffsetMapping.Factory<Advice.Enter>
public Advice.OffsetMapping make(ParameterDescription.InDefinedShape target, AnnotationDescription.Loadable<Advice.Enter> annotation, Advice.OffsetMapping.Factory.AdviceType adviceType)
make
in interface Advice.OffsetMapping.Factory<Advice.Enter>
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–2019. All rights reserved.