@HashCodeAndEqualsPlugin.Enhance protected static class Advice.OffsetMapping.ForExitValue.Factory extends Object implements Advice.OffsetMapping.Factory<Advice.Exit>
Advice.OffsetMapping.ForExitValue
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 exitType)
Creates a new factory for creating a
Advice.OffsetMapping.ForExitValue offset mapping. |
Modifier and Type | Method and Description |
---|---|
Class<Advice.Exit> |
getAnnotationType()
Returns the annotation type of this factory.
|
Advice.OffsetMapping |
make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Advice.Exit> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
protected static Advice.OffsetMapping.Factory<Advice.Exit> |
of(TypeDefinition typeDefinition)
Creates a new factory for creating a
Advice.OffsetMapping.ForExitValue offset mapping. |
protected Factory(TypeDefinition exitType)
Advice.OffsetMapping.ForExitValue
offset mapping.exitType
- The supplied type of the exit advice.protected static Advice.OffsetMapping.Factory<Advice.Exit> of(TypeDefinition typeDefinition)
Advice.OffsetMapping.ForExitValue
offset mapping.typeDefinition
- The supplied type of the enter method.public Class<Advice.Exit> getAnnotationType()
getAnnotationType
in interface Advice.OffsetMapping.Factory<Advice.Exit>
public Advice.OffsetMapping make(ParameterDescription.InDefinedShape target, AnnotationDescription.Loadable<Advice.Exit> annotation, Advice.OffsetMapping.Factory.AdviceType adviceType)
make
in interface Advice.OffsetMapping.Factory<Advice.Exit>
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.