public static enum InjectionPoint.Selector extends java.lang.Enum<InjectionPoint.Selector>
At annotations by including
a colon (:) character followed by the selector type
(case-sensitive), eg:
@At(value = "INVOKE:LAST", ... )
| Enum Constant and Description |
|---|
FIRST
Use the first instruction from the query result.
|
LAST
Use the last instruction from the query result.
|
ONE
The query must return exactly one instruction, if it returns
more than one instruction this should be considered a fail-fast error
state and a runtime exception will be thrown.
|
| Modifier and Type | Field and Description |
|---|---|
static InjectionPoint.Selector |
DEFAULT
Default selector type used if no selector is explicitly specified.
|
| Modifier and Type | Method and Description |
|---|---|
static InjectionPoint.Selector |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InjectionPoint.Selector[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InjectionPoint.Selector FIRST
public static final InjectionPoint.Selector LAST
public static final InjectionPoint.Selector ONE
public static final InjectionPoint.Selector DEFAULT
FIRSTpublic static InjectionPoint.Selector[] values()
for (InjectionPoint.Selector c : InjectionPoint.Selector.values()) System.out.println(c);
public static InjectionPoint.Selector valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null