Java Class Name Convert To classNameToJavaPath(String name)

Here you can find the source of classNameToJavaPath(String name)

Description

class Name To Java Path

License

Open Source License

Declaration

public static String classNameToJavaPath(String name) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static final char FQN_SEPARATOR = '.';
    public static final char PATH_SEPERATOR = '/';

    public static String classNameToJavaPath(String name) {
        return (name.replace(FQN_SEPARATOR, PATH_SEPERATOR) + ".java");
    }/*from   w ww. j a  v a2  s  . c  o  m*/
}

Related

  1. classNameToDirectoryName(final Class targetClass)
  2. classnameToFilename(String classname)
  3. classNameToFilePath(String className)
  4. classNameToFullyQualifiedClassName(String packageName, String className)
  5. classNameToInternalClassName(String className)
  6. classNameToJavaUri(String className)
  7. classNameToPackageName(String fqn)
  8. classNameToPath(final String className)
  9. classNameToPath(String className)