org.apache.tools.ant.taskdefs.optional.depend

Class 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.
Method Summary
static StringconvertDotName(String dotName)
Convert a class name from java source file dot notation to class file slash notation..
static StringconvertSlashName(String name)
Convert a class name from class file slash notation to java source file dot notation.

Method Detail

convertDotName

public static String convertDotName(String dotName)
Convert a class name from java source file dot notation to class file slash notation..

Parameters: dotName the class name in dot notation (eg. java.lang.Object).

Returns: the class name in slash notation (eg. java/lang/Object).

convertSlashName

public static String convertSlashName(String name)
Convert a class name from class file slash notation to java source file dot notation.

Parameters: name the class name in slash notation org/apache/ant

Returns: the class name in dot notation (eg. java.lang.Object).

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.