List of utility methods to do Class File Name Get
String | classFileName(Class clazz) Determine the name of the class file, relative to the containing package: e.g. String className = clazz.getName(); int lastDotIndex = className.lastIndexOf('.'); return className.substring(lastDotIndex + 1) + ".class"; |
String | classFileName(Class> cl) class File Name return cl.getName().replace('.', '/') + ".class"; |
String | classFileName(String className) class File Name return classFileNameWithType(className, ""); |
String | classFileName(String packageName, String className) class File Name return getPackagedFileName(packageName, className, "java"); |
String | classFileNameFromClassName(String classname) get Class filename from ClassName return classname + ".class"; |
String | classFileNameWithTypeAndExt(String className, String type, String ext) class File Name With Type And Ext return className + type + "." + ext; |