protected static enum Advice.OffsetMapping.ForUnusedValue.Factory extends Enum<Advice.OffsetMapping.ForUnusedValue.Factory> implements Advice.OffsetMapping.Factory<Advice.Unused>
Advice.OffsetMapping.Factory.AdviceType, Advice.OffsetMapping.Factory.Illegal<T extends Annotation>, Advice.OffsetMapping.Factory.Simple<T extends Annotation>
Enum Constant and Description |
---|
INSTANCE
A factory for representing an unused value.
|
Modifier and Type | Method and Description |
---|---|
Class<Advice.Unused> |
getAnnotationType()
Returns the annotation type of this factory.
|
Advice.OffsetMapping |
make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Advice.Unused> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
static Advice.OffsetMapping.ForUnusedValue.Factory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.OffsetMapping.ForUnusedValue.Factory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.OffsetMapping.ForUnusedValue.Factory INSTANCE
public static Advice.OffsetMapping.ForUnusedValue.Factory[] values()
for (Advice.OffsetMapping.ForUnusedValue.Factory c : Advice.OffsetMapping.ForUnusedValue.Factory.values()) System.out.println(c);
public static Advice.OffsetMapping.ForUnusedValue.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.Unused> getAnnotationType()
getAnnotationType
in interface Advice.OffsetMapping.Factory<Advice.Unused>
public Advice.OffsetMapping make(ParameterDescription.InDefinedShape target, AnnotationDescription.Loadable<Advice.Unused> annotation, Advice.OffsetMapping.Factory.AdviceType adviceType)
make
in interface Advice.OffsetMapping.Factory<Advice.Unused>
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.