public final class ClassUtils extends Object
Modifier and Type | Method and Description |
---|---|
static File |
getRootFile(Class<?> clazz) |
static String |
getShortName(Class<?> clazz)
Gets the classname without the package prefix.
|
static URI |
getURI(Class<?> clazz)
Each .class file has a unique URI combined from the URI of its root, the path within
the package structure and the filename.
|
static boolean |
isInnerType(Class<?> clazz) |
static boolean |
isPublic(Class<?> clazz) |
public static URI getURI(Class<?> clazz)
public static String getShortName(Class<?> clazz)
Class.getSimpleName()
.clazz
- the class to determine the name forpublic static boolean isPublic(Class<?> clazz)
public static boolean isInnerType(Class<?> clazz)
Copyright © 2017–2023 Hans Jörg Heßmann. All rights reserved.