|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--joie.Mirror
This class is used to search specified classfiles in the classpath and to return their ClassInfo representation. Additionally it saves all previously loaded ClassInfo objects to avoid generating them more than once.
| Constructor Summary | |
Mirror()
|
|
| Method Summary | |
void |
enableZipSearch(boolean enable)
Enables the search for classfiles in Zipfiles. |
static ClassInfo |
getClassInfo(java.io.File file)
|
static ClassInfo |
getClassInfo(java.lang.String name)
Gets the ClassInfo for the specified class. |
static ClassInfo |
getClassInfo(java.lang.String name,
boolean zip)
Gets the ClassInfo for the specified class. |
static java.lang.String[] |
getClassPath()
Gets the classpath from the system. |
static ClassInfo |
searchClass(java.lang.String classname,
boolean zip)
Looks up the class in the classpath and returns the Classinfo for it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Mirror()
| Method Detail |
public static java.lang.String[] getClassPath()
public static ClassInfo getClassInfo(java.io.File file)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public static ClassInfo getClassInfo(java.lang.String name)
throws java.lang.ClassNotFoundException
name - the name of the class (with or without '.class')
java.lang.ClassNotFoundException - if the class can't be found
public static ClassInfo getClassInfo(java.lang.String name,
boolean zip)
throws java.lang.ClassNotFoundException
name - the name of the class (with or without '.class')zip - specifies if zip files should be searched
java.lang.ClassNotFoundException - if the class can't be found
public static ClassInfo searchClass(java.lang.String classname,
boolean zip)
throws java.lang.ClassNotFoundException
classname - the name of the classzip - specifies if zip files should be searched
java.lang.ClassNotFoundException - if the file is not foundpublic void enableZipSearch(boolean enable)
enable - set true to enable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||