Top Description Constructors Methods
org.easymock.internal

public final Class ArgumentToString

extends Object
Class Inheritance
Imports
java.lang.reflect.Array

Utility class to convert method arguments to Strings
Author
Henri Tremblay

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
public static String

Returns:

a string representation of the matcher.
argumentsToString
(Object...
the arguments to be used in the string representation.
arguments
)

Returns a string representation of the arguments.

public static String

Returns:

a String representation of the argument.
argumentToString
(Object
the argument to convert to a String.
argument
)

Converts an argument to a String using appendArgument(Object, StringBuffer)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ArgumentToStringback to summary
private ArgumentToString()

Method Detail

appendArgumentback to summary
public static void appendArgument(Object value, StringBuffer buffer)
argumentsToStringback to summary
public static String argumentsToString(Object... arguments)

Returns a string representation of the arguments. This convenience implementation calls argumentToString(Object) for every argument in the given array and returns the string representations of the arguments separated by commas.

Parameters
arguments:Object[]

the arguments to be used in the string representation.

Returns:String

a string representation of the matcher.

argumentToStringback to summary
public static String argumentToString(Object argument)

Converts an argument to a String using appendArgument(Object, StringBuffer)

Parameters
argument:Object

the argument to convert to a String.

Returns:String

a String representation of the argument.