Package net.bytebuddy.implementation
Class MethodCall.ArgumentLoader.ForMethodCall.Factory
java.lang.Object
net.bytebuddy.implementation.MethodCall.ArgumentLoader.ForMethodCall.Factory
- All Implemented Interfaces:
InstrumentedType.Prepareable
,MethodCall.ArgumentLoader.Factory
- Enclosing class:
- MethodCall.ArgumentLoader.ForMethodCall
@Enhance
protected static class MethodCall.ArgumentLoader.ForMethodCall.Factory
extends Object
implements MethodCall.ArgumentLoader.Factory
A factory for an argument loaded that loads the return value of a method call as an argument.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable
InstrumentedType.Prepareable.NoOp
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFactory
(MethodCall methodCall) Creates a new argument loader for an existing method call. -
Method Summary
Modifier and TypeMethodDescriptionmake
(Implementation.Target implementationTarget) Creates an argument provider for the supplied implementation target.prepare
(InstrumentedType instrumentedType) Prepares a given instrumented type.
-
Field Details
-
methodCall
The method call to use.
-
-
Constructor Details
-
Factory
Creates a new argument loader for an existing method call.- Parameters:
methodCall
- The method call to use.
-
-
Method Details
-
prepare
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
Creates an argument provider for the supplied implementation target.- Specified by:
make
in interfaceMethodCall.ArgumentLoader.Factory
- Parameters:
implementationTarget
- The implementation target to use.- Returns:
- An appropriate argument provider.
-