org.glassfish.hk2.utilities.reflection
Class Pretty

java.lang.Object
  extended by org.glassfish.hk2.utilities.reflection.Pretty

public class Pretty
extends Object

Author:
jwells

Constructor Summary
Pretty()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pretty

public Pretty()
Method Detail

clazz

public static String clazz(Class<?> clazz)
Makes a nice, pretty class (without the package name)

Parameters:
clazz - Make me a pretty class
Returns:
A nice string of the class, with no package

pType

public static String pType(ParameterizedType 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

public static String type(Type t)

constructor

public static String constructor(Constructor<?> 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

public static String method(Method method)
Makes a nice pretty string of the method, with the method name and all parameters

Parameters:
method - The method to make pretty
Returns:
A nice pretty string

field

public static String field(Field field)

array

public static String array(Object[] array)

collection

public static String collection(Collection<?> collection)


Copyright © 2013 Oracle Corporation. All Rights Reserved.