DefaultTextMethodCallFormatter

Responsible to format a method call for text output (e.g. to the console) where it represents arguments of a method call by using their Any.toString representation with a few exceptions.

The exceptions are:

  • CharSequence, is wrapped in quotes (") and \r as well as \n are escaped.

  • Char is wrapped in apostrophes (')

Functions

Link copied to clipboard
open override fun formatArgument(argument: Any?): String

Formats the given argument.

Link copied to clipboard
open override fun formatCall(methodName: String, arguments: Array<out Any?>): String

Returns a representation of a method call to a method named methodName with the given arguments.