public static enum Weaver.TargetSource extends Enum<Weaver.TargetSource>
Enum Constant and Description |
---|
CLASS
The class is the target object.
|
FIRST_PARAMETER
The first parameter is the target object.
|
SECOND_PARAMETER
The second parameter is the target object.
|
THIRD_PARAMETER
The third parameter is the target object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canApply(Method method)
Whether this target source can be used to instrument a given method.
|
static Weaver.TargetSource |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Weaver.TargetSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Weaver.TargetSource CLASS
public static final Weaver.TargetSource FIRST_PARAMETER
this
.public static final Weaver.TargetSource SECOND_PARAMETER
this
.public static final Weaver.TargetSource THIRD_PARAMETER
this
.public static Weaver.TargetSource[] values()
for (Weaver.TargetSource c : Weaver.TargetSource.values()) System.out.println(c);
public static Weaver.TargetSource 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 boolean canApply(Method method)
method
- The method to test.true
if the source can be used.Copyright © 2000-2014. All Rights Reserved.