@HashCodeAndEqualsPlugin.Enhance protected static class Advice.OffsetMapping.ForLocalValue.Factory extends java.lang.Object implements Advice.OffsetMapping.Factory<Advice.Local>
Advice.Local
.Advice.OffsetMapping.Factory.AdviceType, Advice.OffsetMapping.Factory.Illegal<T extends java.lang.annotation.Annotation>, Advice.OffsetMapping.Factory.Simple<T extends java.lang.annotation.Annotation>
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,TypeDefinition> |
namedTypes
The mapping of type names to their type that are available.
|
Modifier | Constructor and Description |
---|---|
protected |
Factory(java.util.Map<java.lang.String,TypeDefinition> namedTypes)
Creates a factory for a
Advice.Local variable mapping. |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<Advice.Local> |
getAnnotationType()
Returns the annotation type of this factory.
|
Advice.OffsetMapping |
make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Advice.Local> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
private final java.util.Map<java.lang.String,TypeDefinition> namedTypes
protected Factory(java.util.Map<java.lang.String,TypeDefinition> namedTypes)
Advice.Local
variable mapping.namedTypes
- The mapping of type names to their type that are available.public java.lang.Class<Advice.Local> getAnnotationType()
getAnnotationType
in interface Advice.OffsetMapping.Factory<Advice.Local>
public Advice.OffsetMapping make(ParameterDescription.InDefinedShape target, AnnotationDescription.Loadable<Advice.Local> annotation, Advice.OffsetMapping.Factory.AdviceType adviceType)
make
in interface Advice.OffsetMapping.Factory<Advice.Local>
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.