diff options
Diffstat (limited to 'src/java/com/jogamp/common/util')
-rw-r--r-- | src/java/com/jogamp/common/util/ReflectionUtil.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/util/ReflectionUtil.java b/src/java/com/jogamp/common/util/ReflectionUtil.java index f4840e7..a04a160 100644 --- a/src/java/com/jogamp/common/util/ReflectionUtil.java +++ b/src/java/com/jogamp/common/util/ReflectionUtil.java @@ -288,5 +288,10 @@ public final class ReflectionUtil { { return callMethod(null, getMethod(clazzName, methodName, argTypes, cl), args); } + + public static String getBaseName(Class clazz) { + String s = clazz.toString(); + return s.substring(s.lastIndexOf(".")+1); + } } |