|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.lightest.core.GroovyClassFinder
public class GroovyClassFinder
Capable of finding Groovy classes by package.
| Constructor Summary | |
|---|---|
GroovyClassFinder()
|
|
GroovyClassFinder(ClassLoader classLoader,
String testClassPath)
|
|
| Method Summary | |
|---|---|
List |
findByPackage(String packageName,
List included,
List excluded)
Looks for Groovy classes using the currently set classpath that live in the specified package or package hierarchy, and returns their names in a List. |
List |
findByPackage(XmlPackage xmlPackage)
Wraps the 3-argument form of findByPackage(). |
protected void |
findClassesInDirPackage(String packageName,
List included,
List excluded,
String packagePath,
boolean recursive,
List classes)
|
ClassLoader |
getClassLoader()
|
groovy.lang.MetaClass |
getMetaClass()
|
Object |
getProperty(String name)
|
Object |
invokeMethod(String name,
Object args)
|
protected boolean |
isIncluded(String name,
List included,
List excluded)
|
static void |
main(Object args)
|
boolean |
matchesTestClasspath(URL url,
String lastFragment,
boolean recursive)
Whether a given URL for a file in a package matches or "is covered by" one of the classpaths set as the test classpath. |
void |
setClassLoader(ClassLoader value)
|
void |
setMetaClass(groovy.lang.MetaClass metaClass)
|
void |
setProperty(String name,
Object value)
|
void |
setTestClasspath(String testClassPath)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroovyClassFinder()
public GroovyClassFinder(ClassLoader classLoader,
String testClassPath)
| Method Detail |
|---|
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader value)
public List findByPackage(XmlPackage xmlPackage)
public List findByPackage(String packageName,
List included,
List excluded)
packageName - included - excluded - public void setTestClasspath(String testClassPath)
public boolean matchesTestClasspath(URL url,
String lastFragment,
boolean recursive)
url - the URL of the resource to testlastFragment - the package name to consider as an offset from
each test classpathrecursive - whether resources contained in subpackages are
considered matches
protected void findClassesInDirPackage(String packageName,
List included,
List excluded,
String packagePath,
boolean recursive,
List classes)
protected boolean isIncluded(String name,
List included,
List excluded)
public static void main(Object args)
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass metaClass)
setMetaClass in interface groovy.lang.GroovyObject
public Object invokeMethod(String name,
Object args)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String name)
getProperty in interface groovy.lang.GroovyObject
public void setProperty(String name,
Object value)
setProperty in interface groovy.lang.GroovyObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||