@Retention(value=RUNTIME) @Target(value={METHOD,CONSTRUCTOR,FIELD}) public @interface TargetElement
Alias, Delete,
Substitute, AnnotateOriginal, or KeepOriginal.
See TargetClass for an overview of the annotation system.
| Modifier and Type | Fields and Description |
|---|---|
static String |
CONSTRUCTOR_NAME |
public static final String CONSTRUCTOR_NAME
public abstract String name
To make a reference to a constructor, use the name TargetElement.CONSTRUCTOR_NAME.
public abstract Class<?>[] onlyWith
BooleanSupplier or Predicate<Class>
(the parameter for Predicate.test(T) is the "original" class as specified by the
TargetClass annotation, as a Class).