Class FormatHelper
- java.lang.Object
 - org.springframework.expression.spel.ast.FormatHelper
 
public class FormatHelper extends Object
Utility methods (formatters etc) used during parsing and evaluation.- Author:
 - Andy Clement
 
Constructor Summary
Constructors Constructor Description FormatHelper()
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringformatClassNameForMessage(Class<?> clazz)Determine a readable name for a given Class object.static StringformatMethodForMessage(String name, List<TypeDescriptor> argumentTypes)Produce a readable representation for a given method name with specified arguments.
Constructor Detail
FormatHelper
public FormatHelper()
Method Detail
formatMethodForMessage
public static String formatMethodForMessage(String name, List<TypeDescriptor> argumentTypes)
Produce a readable representation for a given method name with specified arguments.- Parameters:
 name- the name of the methodargumentTypes- the types of the arguments to the method- Returns:
 - a nicely formatted representation, e.g. 
foo(String,int) 
formatClassNameForMessage
public static String formatClassNameForMessage(Class<?> clazz)
Determine a readable name for a given Class object.A String array will have the formatted name "java.lang.String[]".
- Parameters:
 clazz- the Class whose name is to be formatted- Returns:
 - a formatted String suitable for message inclusion
 - See Also:
 ClassUtils.getQualifiedName(Class)