@HashCodeAndEqualsPlugin.Enhance public static class MethodCall.FieldSetting extends Object implements Implementation.Composable
MethodCall
that sets the call's result as the value of a field.Modifier and Type | Class and Description |
---|---|
protected static class |
MethodCall.FieldSetting.Appender
A byte code appender to implement a field-setting method call.
|
Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Target
InstrumentedType.Prepareable.NoOp
Modifier | Constructor and Description |
---|---|
protected |
FieldSetting(MethodCall methodCall)
Creates a new field setting method call.
|
Modifier and Type | Method and Description |
---|---|
Implementation.Composable |
andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation |
andThen(Implementation implementation)
Appends the supplied implementation to this implementation.
|
ByteCodeAppender |
appender(Implementation.Target implementationTarget)
Creates a byte code appender that determines the implementation of the instrumented type's methods.
|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
|
Implementation.Composable |
withAssigner(Assigner assigner,
Assigner.Typing typing)
Defines an assigner to be used for assigning values to the parameters of the invoked method.
|
protected FieldSetting(MethodCall methodCall)
methodCall
- The represented method call.public Implementation.Composable withAssigner(Assigner assigner, Assigner.Typing typing)
assigner
- The assigner to use.typing
- Indicates if dynamic type castings should be attempted for incompatible assignments.public InstrumentedType prepare(InstrumentedType instrumentedType)
prepare
in interface InstrumentedType.Prepareable
instrumentedType
- The instrumented type in its current form.public ByteCodeAppender appender(Implementation.Target implementationTarget)
appender
in interface Implementation
implementationTarget
- The target of the current implementation.InstrumentedType.Prepareable.prepare(InstrumentedType)
.public Implementation andThen(Implementation implementation)
andThen
in interface Implementation.Composable
implementation
- The subsequent implementation.public Implementation.Composable andThen(Implementation.Composable implementation)
andThen
in interface Implementation.Composable
implementation
- The subsequent composable implementation.Copyright © 2014–2023. All rights reserved.