@HashCodeAndEqualsPlugin.Enhance public static class Advice.AssignReturned.ToAllArguments.Handler extends Object implements Advice.AssignReturned.Handler
Advice.AssignReturned.ToAllArguments
annotation.Modifier and Type | Class and Description |
---|---|
static class |
Advice.AssignReturned.ToAllArguments.Handler.Factory
A factory to create a handler for a
Advice.AssignReturned.ToAllArguments annotation. |
Modifier | Constructor and Description |
---|---|
protected |
Handler(int index,
Assigner.Typing typing)
Creates a new handler.
|
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Returns the array offset which this handler intends to assign or a negative value if this handler
intends to assign a scalar value.
|
StackManipulation |
resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.ArgumentHandler argumentHandler,
TypeDescription.Generic type,
StackManipulation value)
Resolves this handler.
|
protected Handler(int index, Assigner.Typing typing)
index
- The index in the array that is returned which represents the assigned value or a
negative value if assigning a scalar value.typing
- The typing to apply when assigning the returned value to the targeted value.public int getIndex()
getIndex
in interface Advice.AssignReturned.Handler
public StackManipulation resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription.Generic type, StackManipulation value)
resolve
in interface Advice.AssignReturned.Handler
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.assigner
- The assigner to use.argumentHandler
- The argument handler for the handled advice method.type
- The type that this handler receives for assignment.value
- An instruction to load the handled value onto the operand stack.Copyright © 2014–2024. All rights reserved.