protected static enum Advice.OffsetMapping.ForOrigin.Factory extends Enum<Advice.OffsetMapping.ForOrigin.Factory> implements Advice.OffsetMapping.Factory<Advice.Origin>
Advice.OffsetMapping.Factory.AdviceType, Advice.OffsetMapping.Factory.Illegal<T extends Annotation>, Advice.OffsetMapping.Factory.Simple<T extends Annotation>| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
Class<Advice.Origin> |
getAnnotationType()
Returns the annotation type of this factory.
|
Advice.OffsetMapping |
make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Advice.Origin> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
static Advice.OffsetMapping.ForOrigin.Factory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.OffsetMapping.ForOrigin.Factory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.OffsetMapping.ForOrigin.Factory INSTANCE
public static Advice.OffsetMapping.ForOrigin.Factory[] values()
for (Advice.OffsetMapping.ForOrigin.Factory c : Advice.OffsetMapping.ForOrigin.Factory.values()) System.out.println(c);
public static Advice.OffsetMapping.ForOrigin.Factory valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Class<Advice.Origin> getAnnotationType()
getAnnotationType in interface Advice.OffsetMapping.Factory<Advice.Origin>public Advice.OffsetMapping make(ParameterDescription.InDefinedShape target, AnnotationDescription.Loadable<Advice.Origin> annotation, Advice.OffsetMapping.Factory.AdviceType adviceType)
make in interface Advice.OffsetMapping.Factory<Advice.Origin>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–2024. All rights reserved.