Interface FixedValue.AssignerConfigurable
- All Superinterfaces:
Implementation, InstrumentedType.Prepareable
- All Known Implementing Classes:
FixedValue.ForArgument, FixedValue.ForConstantValue, FixedValue.ForOriginType, FixedValue.ForThisValue, FixedValue.ForValue
- Enclosing class:
FixedValue
Represents a fixed value implementation that is using a default assigner for attempting to assign
the fixed value to the return type of the instrumented method.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Implementation
Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.TargetNested classes/interfaces inherited from interface InstrumentedType.Prepareable
InstrumentedType.Prepareable.NoOp -
Method Summary
Modifier and TypeMethodDescriptionwithAssigner(Assigner assigner, Assigner.Typing typing) Defines an explicit assigner to this fixed value implementation.Methods inherited from interface Implementation
appenderMethods inherited from interface InstrumentedType.Prepareable
prepare
-
Method Details
-
withAssigner
Defines an explicit assigner to this fixed value implementation.- Parameters:
assigner- The assigner to use for assigning the fixed value to the return type of the instrumented value.typing- Indicates if dynamic type castings should be attempted for incompatible assignments.- Returns:
- A fixed value implementation that makes use of the given assigner.
-