FileDocCategorySizeDatePackage
ClassFileUtils.javaAPI DocApache Ant 1.701886Wed Dec 13 06:16:24 GMT 2006org.apache.tools.ant.taskdefs.optional.depend

ClassFileUtils

public class ClassFileUtils extends Object
Utility class file routines. This class provides a number of static utility methods to convert between the formats used in the Java class file format and those commonly used in Java programming.

Fields Summary
Constructors Summary
Methods Summary
public static java.lang.StringconvertDotName(java.lang.String dotName)
Convert a class name from java source file dot notation to class file slash notation..

param
dotName the class name in dot notation (eg. java.lang.Object).
return
the class name in slash notation (eg. java/lang/Object).

        return dotName.replace('.", '/");
    
public static java.lang.StringconvertSlashName(java.lang.String name)
Convert a class name from class file slash notation to java source file dot notation.

param
name the class name in slash notation org/apache/ant
return
the class name in dot notation (eg. java.lang.Object).

        return name.replace('\\", '.").replace('/", '.");