Package net.bytebuddy.implementation
Class MethodCall.ArgumentLoader.ForInstance.Factory
- java.lang.Object
-
- net.bytebuddy.implementation.MethodCall.ArgumentLoader.ForInstance.Factory
-
- All Implemented Interfaces:
MethodCall.ArgumentLoader.Factory
- Enclosing class:
- MethodCall.ArgumentLoader.ForInstance
protected static class MethodCall.ArgumentLoader.ForInstance.Factory extends java.lang.Object implements MethodCall.ArgumentLoader.Factory
A factory that supplies the value of a static field as an argument.
-
-
Constructor Summary
Constructors Constructor Description Factory(java.lang.Object value)Creates a factory that loads the value of a static field as an argument.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<MethodCall.ArgumentLoader>make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodDescription invokedMethod)Creates any number of argument loaders for an instrumentation.InstrumentedTypeprepare(InstrumentedType instrumentedType)Prepares the instrumented type in order to allow the loading of the represented argument.
-
-
-
Method Detail
-
prepare
public InstrumentedType prepare(InstrumentedType instrumentedType)
Description copied from interface:MethodCall.ArgumentLoader.FactoryPrepares the instrumented type in order to allow the loading of the represented argument.- Specified by:
preparein interfaceMethodCall.ArgumentLoader.Factory- Parameters:
instrumentedType- The instrumented type.- Returns:
- The prepared instrumented type.
-
make
public java.util.List<MethodCall.ArgumentLoader> make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodDescription invokedMethod)
Description copied from interface:MethodCall.ArgumentLoader.FactoryCreates any number of argument loaders for an instrumentation.- Specified by:
makein interfaceMethodCall.ArgumentLoader.Factory- Parameters:
instrumentedType- The instrumented type.instrumentedMethod- The instrumented method.invokedMethod- The invoked method.- Returns:
- Any number of argument loaders to supply for the method call.
-
-