Here you can find the source of classToFile(String name)
Parameter | Description |
---|---|
name | The class name |
public static String classToFile(String name)
//package com.java2s; /*/* w ww . j a v a 2 s . c om*/ * Copyright (c) 1998 - 2005 Versant Corporation * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Versant Corporation - initial API and implementation */ public class Main { /** * Converts a clas name to a file name. All periods are replaced * with slashes and the '.class' extension is added. * @param name The class name */ public static String classToFile(String name) { return name.replace('.', '/').concat(".class"); } }