Here you can find the source of classToPath(Class clazz)
Parameter | Description |
---|---|
clazz | class in package notation |
public static String classToPath(Class clazz)
//package com.java2s; public class Main { /**//ww w. ja v a 2 s. co m * translates path to class in package notation to standard path notation with addition of .class suffix * @param clazz class in package notation * @return path representation of class */ public static String classToPath(Class clazz) { return clazz.getName().replaceAll("\\.", "/") + ".class"; } }