Implementation allows the invocation of a specified method while
providing explicit arguments to this method.
| Modifier and Type | Class and Description |
|---|---|
| protected class | MethodCall.Appender
The appender being used to implement a |
| public static interface | MethodCall.ArgumentLoader
An argument loader is responsible for loading an argument for an invoked method onto the operand stack. |
| public static class | MethodCall.FieldSetting
A |
| protected static interface | MethodCall.MethodInvoker
A method invoker is responsible for creating a method invocation that is to be applied by a
|
| public static interface | MethodCall.MethodLocator
A method locator is responsible for identifying the method that is to be invoked
by a |
| protected static interface | MethodCall.TargetHandler
A target handler is responsible for invoking a method for a
|
| protected static interface | MethodCall.TerminationHandler
A termination handler is responsible to handle the return value of a method that is invoked via a
|
| public static class | MethodCall.WithoutSpecifiedTarget
Represents a |
| Modifier and Type | Field and Description |
|---|---|
| protected final List | argumentLoaders
The argument loader to load arguments onto the operand stack in their application order. |
| protected final Assigner | assigner
The assigner to use. |
| protected final MethodCall. | methodInvoker
The method invoker to use. |
| protected final MethodCall. | methodLocator
The method locator to use. |
| protected final MethodCall. | targetHandler
The target handler to use. |
| protected final MethodCall. | terminationHandler
The termination handler to use. |
| protected final Assigner. | typing
Indicates if dynamic type castings should be attempted for incompatible assignments. |
| Access | Constructor and Description |
|---|---|
| protected | MethodCall(MethodCall.
The method locator to use. methodLocator,The target handler to use. targetHandler,The argument loader to load arguments onto the operand stack in their application order. argumentLoaders,The method invoker to use. methodInvoker,The termination handler to use. terminationHandler,The assigner to use. assigner, Assigner.Indicates if dynamic type castings should be attempted for incompatible assignments. typingCreates a new method call implementation. |
| Modifier and Type | Method and Description |
|---|---|
| public Implementation | andThen(Implementation
The subsequent implementation. implementation)Implements net. |
| public Implementation. | andThen(Implementation.
The subsequent composable implementation. implementationImplements net. |
| public ByteCodeAppender | appender(Implementation.
The target of the current implementation. implementationTargetImplements net. |
| public static Implementation. | |
| public static MethodCall | Returns: A method call that invokes the given constructor without providing any arguments.The constructor to invoke. constructor)Invokes the given constructor in order to create an instance. |
| public static MethodCall | Returns: A method call that invokes the given constructor without providing any arguments.A description of the constructor to invoke. methodDescription)Invokes the given constructor in order to create an instance. |
| public static MethodCall. | |
| public static MethodCall. | Returns: A method call implementation that invokes the given constructor without providing any arguments.The constructor to invoke. constructor)Invokes the given constructor on the instance of the instrumented type. |
| public static MethodCall. | Returns: A method call implementation that invokes the given method without providing any arguments.The method to invoke. methodDescription)Invokes the given method. |
| public static MethodCall. | Returns: A method call for the uniquely identified method.The matcher to identify the method to invoke. matcher)Invokes a unique virtual method or constructor of the instrumented type that is matched by the specified matcher. |
| public static MethodCall. | Returns: A method call for the uniquely identified method.The matcher to identify the method to invoke. matcher, MethodGraph.The method graph compiler to use. methodGraphCompilerInvokes a unique virtual method or constructor of the instrumented type that is matched by the specified matcher. |
| public static MethodCall. | Returns: A method call implementation that uses the provided method locator for resolving the method to be invoked.The method locator to apply for locating the method to invoke given the instrumented
method. methodLocatorInvokes a method using the provided method locator. |
| public static MethodCall. | Returns: A method call that invokes the method being instrumented.Invokes the instrumented method recursively. |
| public static MethodCall | Returns: A method call that invokes the method being instrumented as a super method call.Invokes the instrumented method as a super method call on the instance itself. |
| public InstrumentedType | prepare(InstrumentedType
The instrumented type in its current form. instrumentedType)Implements net. |
| public static Implementation. | |
| public MethodCall. | |
| public MethodCall. | Returns: A new instance of this method call that sets the resulting value as the specified field's value.The field to set. fieldDescription)Sets the result of the method call as a value of the specified field. |
| public MethodCall. | Returns: A new instance of this method call that sets the resulting value as the specified field's value.A matcher that locates a field in the instrumented type's hierarchy. matcher)Sets the result of the method call as a value of the specified field. |
| public MethodCall | |
| public MethodCall | Returns: A method call that hands the provided arguments to the invoked method.The type descriptions to provide as arguments. 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. |
| public MethodCall | Returns: A method call that hands the provided arguments to the invoked method.The enumeration descriptions to provide as arguments. 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. |
| public MethodCall | Returns: A method call that hands the provided arguments to the invoked method.The constants to provide as arguments. constant)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. |
| public MethodCall | Returns: A method call that hands the provided arguments to the invoked method.The constants to provide as arguments. constant)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. |
| public MethodCall | Returns: A method call that adds the stack manipulation as the next argument to the invoked method.The stack manipulation loading the value. stackManipulation, Type The type of the argument being loaded. type)Adds a stack manipulation as an assignment to the next parameter. |
| public MethodCall | Returns: A method call that adds the stack manipulation as the next argument to the invoked method.The stack manipulation loading the value. stackManipulation, TypeDefinition The type of the argument being loaded. typeDefinition)Adds a stack manipulation as an assignment to the next parameter. |
| public MethodCall | Returns: A method call that adds the arguments of the supplied argument loaders to the invoked method.The argument loaders to apply to the subsequent arguments of the argumentLoaderDefines a method call that resolves arguments by the supplied argument loader factories. |
| public MethodCall | Returns: A method call that adds the arguments of the supplied argument loaders to the invoked method.The argument loaders to apply to the subsequent arguments of the argumentLoaders)Defines a method call that resolves arguments by the supplied argument loader factories. |
| public MethodCall | Returns: A method call that hands all arguments of the instrumented method to the invoked method.Adds all arguments of the instrumented method as arguments to the invoked method to this method call. |
| public MethodCall | Returns: A method call that hands the provided arguments to the invoked method.The parameter indices of the instrumented method to be handed to the invoked method as an
argument in their order. The indices are zero-based. index)Defines a number of arguments of the instrumented method by their parameter indices to be handed to the invoked method as an argument. |
| public MethodCall | Returns: A method call that adds an array containing all arguments of the instrumented method to the invoked method.Adds an array containing all arguments of the instrumented method to this method call. |
| public MethodCall | Returns: A method call that loadssize elements from the array handed to the instrumented method as argument index.The index of the parameter. index)
Creates a method call where the parameter with |
| public MethodCall | Returns: A method call that loadssize elements from the array handed to the instrumented method as argument index.The index of the parameter. index, int The amount of elements to load from the array. size)
Creates a method call where the parameter with |
| public MethodCall | Returns: A method call that loadssize elements from the array handed to the instrumented method as argument index.The index of the parameter. index, int The first array index to consider. start, int The amount of elements to load from the array with increasing index from size)start.
Creates a method call where the parameter with |
| public Implementation. | Returns: This method call using the provided assigner.The assigner to use. assigner, Assigner.Indicates if dynamic type castings should be attempted for incompatible assignments. typingDefines an assigner to be used for assigning values to the parameters of the invoked method. |
| public MethodCall | |
| public MethodCall | Returns: A method call which assigns the next parameters to the values of the given fields.The field locator factory to use. fieldLocatorFactory,The names of the fields. name)Defines a method call which fetches a value from a list of existing fields. |
| public MethodCall | Returns: A method call which assigns the parameter to the result of the given method call.The method call to use. methodCall)Defines a method call which fetches a value from a method call. |
| public MethodCall | Returns: This method call where the next parameter is a assigned a reference to thejava.
value of the instrumented type.Assigns the |
| public MethodCall | Returns: A method call that hands the provided arguments to the invoked method.The arguments to provide to the method that is being called in their order. argument)Defines a number of arguments to be handed to the method that is being invoked by this implementation. |
| public MethodCall | Returns: This method call where the next parameter is a assigned a reference to thethis reference
of the instance of the intercepted method.Assigns the |