public static enum MethodCall.MethodLocator.ForInstrumentedMethod extends Enum<MethodCall.MethodLocator.ForInstrumentedMethod> implements MethodCall.MethodLocator, MethodCall.MethodLocator.Factory
MethodCall.MethodLocator.Factory, MethodCall.MethodLocator.ForElementMatcher, MethodCall.MethodLocator.ForExplicitMethod, MethodCall.MethodLocator.ForInstrumentedMethod
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
MethodCall.MethodLocator |
make(TypeDescription instrumentedType)
Creates a method locator for a given instrumented type.
|
MethodDescription |
resolve(TypeDescription targetType,
MethodDescription instrumentedMethod)
Resolves the method to be invoked.
|
static MethodCall.MethodLocator.ForInstrumentedMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodCall.MethodLocator.ForInstrumentedMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodCall.MethodLocator.ForInstrumentedMethod INSTANCE
public static MethodCall.MethodLocator.ForInstrumentedMethod[] values()
for (MethodCall.MethodLocator.ForInstrumentedMethod c : MethodCall.MethodLocator.ForInstrumentedMethod.values()) System.out.println(c);
public static MethodCall.MethodLocator.ForInstrumentedMethod 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 MethodCall.MethodLocator make(TypeDescription instrumentedType)
make
in interface MethodCall.MethodLocator.Factory
instrumentedType
- The instrumented type.public MethodDescription resolve(TypeDescription targetType, MethodDescription instrumentedMethod)
resolve
in interface MethodCall.MethodLocator
targetType
- The type the method is called on.instrumentedMethod
- The method being instrumented.Copyright © 2014–2024. All rights reserved.