net.sourceforge.jane.util
Class JavaLangUtils

java.lang.Object
  |
  +--net.sourceforge.jane.util.JavaLangUtils

public class JavaLangUtils
extends java.lang.Object

Java language utilities.


Constructor Summary
JavaLangUtils()
           
 
Method Summary
static java.lang.String getPackageName(java.lang.String fullClassName)
          Returns the package name for the given class.
static java.lang.String getRelativePathToClass(java.lang.String fullClassName)
          Returns a relative path where the .class file of the given class should be found.
static java.lang.String getRelativePathToSource(java.lang.String fullClassName)
          Returns a relative path where the .java file of the given class should be found.
static java.lang.String getUnqualifiedClassName(java.lang.String fullClassName)
          Returns the unqualified name of a class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaLangUtils

public JavaLangUtils()
Method Detail

getUnqualifiedClassName

public static java.lang.String getUnqualifiedClassName(java.lang.String fullClassName)
Returns the unqualified name of a class.

getPackageName

public static java.lang.String getPackageName(java.lang.String fullClassName)
Returns the package name for the given class.
Returns:
The name of the package. An empty string is returned if the class is in the default package.

getRelativePathToClass

public static java.lang.String getRelativePathToClass(java.lang.String fullClassName)
Returns a relative path where the .class file of the given class should be found.

getRelativePathToSource

public static java.lang.String getRelativePathToSource(java.lang.String fullClassName)
Returns a relative path where the .java file of the given class should be found.


Copyright © 2002-2002 SourceForge. All Rights Reserved.