org.jbpm.util
Class ClassUtil

java.lang.Object
  extended by org.jbpm.util.ClassUtil

public class ClassUtil
extends java.lang.Object

Helper methods for dealing with classes.

Author:
Alejandro Guizar

Method Summary
static java.lang.String getSimpleName(java.lang.Class clazz)
          Returns the simple name of the given class as specified in the source code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSimpleName

public static java.lang.String getSimpleName(java.lang.Class clazz)
Returns the simple name of the given class as specified in the source code. Returns an empty string if the underlying class is anonymous.

The simple name of an array is the simple name of the component type with "[]" appended. In particular the simple name of an array whose component type is anonymous is "[]".

Returns:
the simple name of the underlying class
See Also:
java.lang.Class.getSimpleName()


Copyright © 2010 JBoss Community. All Rights Reserved.