Package net.bytebuddy.implementation
Enum MethodCall.ArgumentLoader.ForMethodParameter.OfInstrumentedMethod
- java.lang.Object
-
- java.lang.Enum<MethodCall.ArgumentLoader.ForMethodParameter.OfInstrumentedMethod>
-
- net.bytebuddy.implementation.MethodCall.ArgumentLoader.ForMethodParameter.OfInstrumentedMethod
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MethodCall.ArgumentLoader.ForMethodParameter.OfInstrumentedMethod>
,InstrumentedType.Prepareable
,MethodCall.ArgumentLoader.Factory
- Enclosing class:
- MethodCall.ArgumentLoader.ForMethodParameter
protected static enum MethodCall.ArgumentLoader.ForMethodParameter.OfInstrumentedMethod extends java.lang.Enum<MethodCall.ArgumentLoader.ForMethodParameter.OfInstrumentedMethod> implements MethodCall.ArgumentLoader.Factory
A factory for argument loaders that supplies all arguments of the instrumented method as arguments.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
OfInstrumentedMethod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<MethodCall.ArgumentLoader>
make(Implementation.Target implementationTarget, TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodDescription invokedMethod)
Creates any number of argument loaders for an instrumentation.InstrumentedType
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.static MethodCall.ArgumentLoader.ForMethodParameter.OfInstrumentedMethod
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MethodCall.ArgumentLoader.ForMethodParameter.OfInstrumentedMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final MethodCall.ArgumentLoader.ForMethodParameter.OfInstrumentedMethod INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static MethodCall.ArgumentLoader.ForMethodParameter.OfInstrumentedMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MethodCall.ArgumentLoader.ForMethodParameter.OfInstrumentedMethod c : MethodCall.ArgumentLoader.ForMethodParameter.OfInstrumentedMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MethodCall.ArgumentLoader.ForMethodParameter.OfInstrumentedMethod valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
prepare
public InstrumentedType prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.- Specified by:
prepare
in interfaceInstrumentedType.Prepareable
- Parameters:
instrumentedType
- The instrumented type in its current form.- Returns:
- The prepared instrumented type.
-
make
public java.util.List<MethodCall.ArgumentLoader> make(Implementation.Target implementationTarget, TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodDescription invokedMethod)
Creates any number of argument loaders for an instrumentation.- Specified by:
make
in interfaceMethodCall.ArgumentLoader.Factory
- Parameters:
implementationTarget
- The implementation target.instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.invokedMethod
- The invoked method.- Returns:
- Any number of argument loaders to supply for the method call.
-
-