Here you can find the source of getFilenameForClassName(String className)
private static String getFilenameForClassName(String className)
//package com.java2s; /*/*from ww w. j a v a 2s . c om*/ * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ import java.io.File; import javax.tools.JavaFileObject; public class Main { private static String getFilenameForClassName(String className) { return className.replace('.', File.separatorChar) + JavaFileObject.Kind.CLASS.extension; } }