public class FormatHelper
extends java.lang.Object
| Constructor and Description |
|---|
FormatHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
formatClassNameForMessage(java.lang.Class<?> clazz)
Determine a readable name for a given Class object.
|
static java.lang.String |
formatMethodForMessage(java.lang.String name,
java.util.List<org.springframework.core.convert.TypeDescriptor> argumentTypes)
Produce a readable representation for a given method name with specified arguments.
|
public static java.lang.String formatMethodForMessage(java.lang.String name,
java.util.List<org.springframework.core.convert.TypeDescriptor> argumentTypes)
name - the name of the methodargumentTypes - the types of the arguments to the methodfoo(String,int)public static java.lang.String formatClassNameForMessage(java.lang.Class<?> clazz)
A String array will have the formatted name "java.lang.String[]".
clazz - the Class whose name is to be formattedClassUtils.getQualifiedName(Class)