public class Pretty extends Object
Constructor and Description |
---|
Pretty() |
Modifier and Type | Method and Description |
---|---|
static String |
array(Object[] array) |
static String |
clazz(Class<?> clazz)
Makes a nice, pretty class (without the package name)
|
static String |
collection(Collection<?> collection) |
static String |
constructor(Constructor<?> constructor)
Make a nice pretty string out of the constructor and all its
parameters
|
static String |
field(Field field) |
static String |
method(Method method)
Makes a nice pretty string of the method, with the method name
and all parameters
|
static String |
pType(ParameterizedType pType)
Prints a pretty parameterized type
|
static String |
type(Type t) |
public static String clazz(Class<?> clazz)
clazz
- Make me a pretty classpublic static String pType(ParameterizedType pType)
pType
- The parameterized type to print. May not be nullpublic static String constructor(Constructor<?> constructor)
constructor
- The constructor to make prettypublic static String method(Method method)
method
- The method to make prettypublic static String collection(Collection<?> collection)
Copyright © 2017 Oracle Corporation. All rights reserved.