public class GosuClassUtil extends Object
| Constructor and Description |
|---|
GosuClassUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Set<Class> |
getAllInterfaces(Class c) |
static String |
getFileExtension(File file) |
static String |
getFileExtension(String name) |
static String |
getNameNoPackage(String className) |
static String |
getPackage(String className) |
static String |
getShortClassName(Class cls)
Gets the class name minus the package name from a
Class. |
static String |
getShortClassName(String className)
Gets the class name minus the package name from a String.
|
public static String getShortClassName(Class cls)
Gets the class name minus the package name from a Class.
cls - the class to get the short name for.public static String getShortClassName(String className)
Gets the class name minus the package name from a String.
The string passed in is assumed to be a class name - it is not checked.
className - the className to get the short name forCopyright © 2016. All rights reserved.