Uses of Class
net.bytebuddy.implementation.MethodCall
Packages that use MethodCall
Package
Description
The implementation package contains any logic for intercepting method calls.
-
Uses of MethodCall in net.bytebuddy.implementation
Subclasses of MethodCall in net.bytebuddy.implementationModifier and TypeClassDescriptionstatic class
Represents aMethodCall
that invokes a method without specifying an invocation method.Fields in net.bytebuddy.implementation declared as MethodCallModifier and TypeFieldDescriptionprivate final MethodCall
MethodCall.ArgumentLoader.ForMethodCall.Factory.methodCall
The method call to use.private final MethodCall
MethodCall.FieldSetting.methodCall
The represented method call.private final MethodCall
MethodCall.TargetHandler.ForMethodCall.Factory.methodCall
The method call to invoke.Methods in net.bytebuddy.implementation that return MethodCallModifier and TypeMethodDescriptionstatic MethodCall
MethodCall.construct
(Constructor<?> constructor) Invokes the given constructor in order to create an instance.static MethodCall
MethodCall.construct
(MethodDescription methodDescription) Invokes the given constructor in order to create an instance.static MethodCall
MethodCall.invokeSuper()
Invokes the instrumented method as a super method call on the instance itself.Invokes the specified method on the given instance.MethodCall.WithoutSpecifiedTarget.on
(StackManipulation stackManipulation, Class<?> type) Invokes the specified method on an instance that is loaded by the provided stack manipulation.MethodCall.WithoutSpecifiedTarget.on
(StackManipulation stackManipulation, TypeDescription typeDescription) Invokes the specified method on an instance that is loaded by the provided stack manipulation.<T> MethodCall
Invokes the specified method on the given instance.MethodCall.WithoutSpecifiedTarget.onArgument
(int index) Invokes the specified method on the instrumented method's argument of the given index.MethodCall.WithoutSpecifiedTarget.onDefault()
Invokes the given method by a Java 8 default method invocation on the instance of the instrumented type.Invokes a method on the object stored in the specified field.Invokes a method on the object stored in the specified field.MethodCall.WithoutSpecifiedTarget.onField
(String name, FieldLocator.Factory fieldLocatorFactory) Invokes a method on the object stored in the specified field.MethodCall.WithoutSpecifiedTarget.onField
(FieldDescription fieldDescription) Invokes a method on the object stored in the specified field.MethodCall.WithoutSpecifiedTarget.onMethodCall
(MethodCall methodCall) Invokes a method on the method call's return value.MethodCall.WithoutSpecifiedTarget.onSuper()
Invokes the given method by a super method invocation on the instance of the instrumented type.Defines a number of arguments to be handed to the method that is being invoked by this implementation.MethodCall.with
(List<? extends MethodCall.ArgumentLoader.Factory> argumentLoaders) Defines a method call that resolves arguments by the supplied argument loader factories.MethodCall.with
(EnumerationDescription... enumerationDescription) Defines the given enumeration values to be provided as arguments to the invoked method where the values are read from the enumeration class on demand.MethodCall.with
(TypeDescription... typeDescription) Defines the given types to be provided as arguments to the invoked method where the represented types are stored in the generated class's constant pool.MethodCall.with
(StackManipulation stackManipulation, Type type) Adds a stack manipulation as an assignment to the next parameter.MethodCall.with
(StackManipulation stackManipulation, TypeDefinition typeDefinition) Adds a stack manipulation as an assignment to the next parameter.MethodCall.with
(MethodCall.ArgumentLoader.Factory... argumentLoader) Defines a method call that resolves arguments by the supplied argument loader factories.MethodCall.with
(JavaConstant... javaConstant) Defines the given Java instances to be provided as arguments to the invoked method where the given instances are stored in the generated class's constant pool.MethodCall.withAllArguments()
Adds all arguments of the instrumented method as arguments to the invoked method to this method call.MethodCall.withArgument
(int... index) Defines a number of arguments of the instrumented method by their parameter indices to be handed to the invoked method as an argument.MethodCall.withArgumentArray()
Adds an array containing all arguments of the instrumented method to this method call.MethodCall.withArgumentArrayElements
(int index) Creates a method call where the parameter withindex
is expected to be an array and where each element of the array is expected to represent an argument for the method being invoked.MethodCall.withArgumentArrayElements
(int index, int size) Creates a method call where the parameter withindex
is expected to be an array and wheresize
elements are loaded from the array as arguments for the invoked method.MethodCall.withArgumentArrayElements
(int index, int start, int size) Creates a method call where the parameter withindex
is expected to be an array and wheresize
elements are loaded from the array as arguments for the invoked method.Defines a method call which fetches a value from a list of existing fields.MethodCall.withField
(FieldLocator.Factory fieldLocatorFactory, String... name) Defines a method call which fetches a value from a list of existing fields.MethodCall.withMethodCall
(MethodCall methodCall) Defines a method call which fetches a value from a method call.MethodCall.withOwnType()
Assigns theClass
value of the instrumented type.MethodCall.withReference
(Object... argument) Defines a number of arguments to be handed to the method that is being invoked by this implementation.MethodCall.withThis()
Assigns thethis
reference to the next parameter.Methods in net.bytebuddy.implementation with parameters of type MethodCallModifier and TypeMethodDescriptionMethodCall.WithoutSpecifiedTarget.onMethodCall
(MethodCall methodCall) Invokes a method on the method call's return value.MethodCall.withMethodCall
(MethodCall methodCall) Defines a method call which fetches a value from a method call.Constructors in net.bytebuddy.implementation with parameters of type MethodCallModifierConstructorDescriptionFactory
(MethodCall methodCall) Creates a new argument loader for an existing method call.Factory
(MethodCall methodCall) Creates a new factory for invoking another method call as a method target.protected
FieldSetting
(MethodCall methodCall) Creates a new field setting method call.