@HashCodeAndEqualsPlugin.Enhance public static class MethodCall.TargetHandler.ForConstructingInvocation extends java.lang.Object implements MethodCall.TargetHandler, MethodCall.TargetHandler.Resolved
Modifier and Type | Class and Description |
---|---|
(package private) static class |
MethodCall.TargetHandler.ForConstructingInvocation.Factory
A target handler factory for a constructor invocation.
|
MethodCall.TargetHandler.ForConstructingInvocation, MethodCall.TargetHandler.ForField, MethodCall.TargetHandler.ForMethodCall, MethodCall.TargetHandler.ForMethodParameter, MethodCall.TargetHandler.ForSelfOrStaticInvocation, MethodCall.TargetHandler.ForValue, MethodCall.TargetHandler.Resolved, MethodCall.TargetHandler.Simple
Modifier and Type | Field and Description |
---|---|
private TypeDescription |
instrumentedType
The instrumented type.
|
Modifier | Constructor and Description |
---|---|
protected |
ForConstructingInvocation(TypeDescription instrumentedType)
Creates a new target handle constructor invocation.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
getTypeDescription()
Returns the target's type description.
|
MethodCall.TargetHandler.Resolved |
resolve(MethodDescription instrumentedMethod)
Resolves this target handler.
|
StackManipulation |
toStackManipulation(MethodDescription invokedMethod,
Assigner assigner,
Assigner.Typing typing)
Creates a stack manipulation to represent this resolved target handler.
|
private final TypeDescription instrumentedType
protected ForConstructingInvocation(TypeDescription instrumentedType)
instrumentedType
- The instrumented type.public MethodCall.TargetHandler.Resolved resolve(MethodDescription instrumentedMethod)
resolve
in interface MethodCall.TargetHandler
instrumentedMethod
- The instrumented method.public TypeDescription getTypeDescription()
getTypeDescription
in interface MethodCall.TargetHandler.Resolved
public StackManipulation toStackManipulation(MethodDescription invokedMethod, Assigner assigner, Assigner.Typing typing)
toStackManipulation
in interface MethodCall.TargetHandler.Resolved
invokedMethod
- The invoked method.assigner
- The assigner to use.typing
- The typing to apply.