类 FormatHelper
java.lang.Object
cn.taketoday.expression.spel.ast.FormatHelper
Utility methods (formatters etc) used during parsing and evaluation.
- 作者:
- Andy Clement
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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.
-
构造器详细资料
-
FormatHelper
FormatHelper()
-
-
方法详细资料
-
formatMethodForMessage
Produce a readable representation for a given method name with specified arguments.- 参数:
name- the name of the methodargumentTypes- the types of the arguments to the method- 返回:
- a nicely formatted representation, e.g.
foo(String,int)
-
formatClassNameForMessage
Determine a readable name for a given Class object.A String array will have the formatted name "java.lang.String[]".
- 参数:
clazz- the Class whose name is to be formatted- 返回:
- a formatted String suitable for message inclusion
- 另请参阅:
-