|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Facemorph.psychomorph.ClasspathInspector
public class ClasspathInspector
Find classes in the classpath (reads JARs and classpath folders).
Constructor Summary | |
---|---|
ClasspathInspector()
|
Method Summary | |
---|---|
static java.util.List<java.lang.Class> |
getAllKnownClasses()
List all the classes known by the system |
static java.util.List<java.io.File> |
getClassLocationsForCurrentClasspath()
Gets the class locations for the current classpath |
static java.util.List<java.lang.Class> |
getMatchingClasses(java.lang.Class interfaceOrSuperclass)
Get classes matching the interface or super class |
static java.util.List<java.lang.Class> |
getMatchingClasses(java.lang.Class interfaceOrSuperclass,
java.io.File file)
Get classes matching the interface or super class |
static java.net.URL |
normalize(java.net.URL url)
Try to normalise a URL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClasspathInspector()
Method Detail |
---|
public static java.util.List<java.lang.Class> getAllKnownClasses() throws java.net.MalformedURLException
java.net.MalformedURLException
public static java.util.List<java.lang.Class> getMatchingClasses(java.lang.Class interfaceOrSuperclass) throws java.net.MalformedURLException
interfaceOrSuperclass
- the class / interface to match to
java.net.MalformedURLException
public static java.util.List<java.lang.Class> getMatchingClasses(java.lang.Class interfaceOrSuperclass, java.io.File file) throws java.net.MalformedURLException
interfaceOrSuperclass
- the class / interface to match tofile
- file or jar file to search for matching classes in
java.net.MalformedURLException
public static java.util.List<java.io.File> getClassLocationsForCurrentClasspath()
public static java.net.URL normalize(java.net.URL url) throws java.net.MalformedURLException
url
- the URL to normalise
java.net.MalformedURLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |