Interface ToStringMethod.PrefixResolver

All Known Implementing Classes:
ToStringMethod.PrefixResolver.Default, ToStringMethod.PrefixResolver.ForFixedValue
Enclosing class:
ToStringMethod

public static interface ToStringMethod.PrefixResolver
A prefix resolver is responsible for providing a value that is prepended to a Object.toString() implementation.
  • Method Details

    • resolve

      @MaybeNull String resolve(TypeDescription instrumentedType)
      Resolves the prefixed value.
      Parameters:
      instrumentedType - The instrumented type.
      Returns:
      The value to be prefixed.