Interface FixedValue.AssignerConfigurable

All Superinterfaces:
Implementation, InstrumentedType.Prepareable
All Known Implementing Classes:
FixedValue.ForArgument, FixedValue.ForOriginType, FixedValue.ForPoolValue, FixedValue.ForThisValue, FixedValue.ForValue
Enclosing class:
FixedValue

public static interface FixedValue.AssignerConfigurable extends Implementation
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.
  • Method Details

    • withAssigner

      Implementation withAssigner(Assigner assigner, Assigner.Typing typing)
      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.