Class Pretty
java.lang.Object
org.glassfish.hk2.utilities.reflection.Pretty
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns a pretty string for the given arraystatic StringMakes a nice, pretty class (without the package name)static Stringcollection(Collection<?> collection) Returns a pretty string representing the collectionstatic Stringconstructor(Constructor<?> constructor) Make a nice pretty string out of the constructor and all its parametersstatic StringReturns a pretty string representing a Fieldstatic StringMakes a nice pretty string of the method, with the method name and all parametersprivate static StringprettyPrintParameters(Class<?>[] params) static StringpType(ParameterizedType pType) Prints a pretty parameterized typestatic StringReturns a pretty string for the given type
-
Field Details
-
DOT
- See Also:
-
NULL_STRING
- See Also:
-
CONSTRUCTOR_NAME
- See Also:
-
-
Constructor Details
-
Pretty
public Pretty()
-
-
Method Details
-
clazz
-
pType
Prints a pretty parameterized type- Parameters:
pType- The parameterized type to print. May not be null- Returns:
- A pretty string version of the parameterized type
-
type
-
constructor
Make a nice pretty string out of the constructor and all its parameters- Parameters:
constructor- The constructor to make pretty- Returns:
- A nice pretty string
-
method
-
field
-
array
-
collection
Returns a pretty string representing the collection- Parameters:
collection- A possibly null collection to represent- Returns:
- A pretty string representing the collection
-
prettyPrintParameters
-