Package net.bytebuddy.implementation
Enum Class MethodCall.MethodLocator.ForInstrumentedMethod
java.lang.Object
java.lang.Enum<MethodCall.MethodLocator.ForInstrumentedMethod>
net.bytebuddy.implementation.MethodCall.MethodLocator.ForInstrumentedMethod
- All Implemented Interfaces:
Serializable
,Comparable<MethodCall.MethodLocator.ForInstrumentedMethod>
,Constable
,MethodCall.MethodLocator
,MethodCall.MethodLocator.Factory
- Enclosing interface:
MethodCall.MethodLocator
public static enum MethodCall.MethodLocator.ForInstrumentedMethod
extends Enum<MethodCall.MethodLocator.ForInstrumentedMethod>
implements MethodCall.MethodLocator, MethodCall.MethodLocator.Factory
A method locator that simply returns the intercepted method.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.MethodCall.MethodLocator
MethodCall.MethodLocator.Factory, MethodCall.MethodLocator.ForElementMatcher, MethodCall.MethodLocator.ForExplicitMethod, MethodCall.MethodLocator.ForInstrumentedMethod
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmake
(TypeDescription instrumentedType) Creates a method locator for a given instrumented type.resolve
(TypeDescription targetType, MethodDescription instrumentedMethod) Resolves the method to be invoked.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
ForInstrumentedMethod
private ForInstrumentedMethod()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
make
Creates a method locator for a given instrumented type.- Specified by:
make
in interfaceMethodCall.MethodLocator.Factory
- Parameters:
instrumentedType
- The instrumented type.- Returns:
- A suitable method locator.
-
resolve
Resolves the method to be invoked.- Specified by:
resolve
in interfaceMethodCall.MethodLocator
- Parameters:
targetType
- The type the method is called on.instrumentedMethod
- The method being instrumented.- Returns:
- The method to invoke.
-