|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.borland.primetime.util.Classes
Some utilities for getting class info.
Constructor Summary | |
Classes()
|
Method Summary | |
static Url |
findPathUrl(Url[] classpath,
java.lang.String className)
Returns the first entry in a classpath that contains a given class |
static java.lang.String |
getRootEntryFromClasspath(java.lang.Class c)
Returns the entry in the classpath from which a class was loaded. |
static java.lang.String |
getRootEntryFromClasspath(java.lang.String className)
Returns the entry in the classpath from which a class was loaded. |
static java.lang.String |
getShortName(java.lang.Class c)
Returns the name of the class without the package, e.g. |
static boolean |
pathContainsClass(Url[] classpath,
java.lang.String className)
Determines whether a class can be found in a given classpath |
static java.lang.String |
toPath(java.lang.Class c)
Converts a fully-qualified class name to the equivalent path by replacing the '.' characters with '/' |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Classes()
Method Detail |
public static java.lang.String getRootEntryFromClasspath(java.lang.String className)
Use this version of the method when you are unsure whether the class will be present.
className
- name of class to querypublic static java.lang.String getRootEntryFromClasspath(java.lang.Class c)
Use this version of the method when you know the class should be present; otherwise, use getRootEntryFromClasspath(String)
c
- Class to querypublic static java.lang.String getShortName(java.lang.Class c)
c
- Class to querypublic static java.lang.String toPath(java.lang.Class c)
c
- Class to convertpublic static boolean pathContainsClass(Url[] classpath, java.lang.String className)
path
- array of Urls that comprise the classpath. May be null or
empty (in which case the method will always return false).public static Url findPathUrl(Url[] classpath, java.lang.String className)
path
- array of Urls that comprise the classpath. May be null or
empty (in which case the method will always return null).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |