com.atlassian.jira.webtests.util
Class ClassLocator<T>

java.lang.Object
  extended by com.atlassian.jira.webtests.util.ClassLocator<T>

public final class ClassLocator<T>
extends Object

Class that can be used to find other classes in a particular package.

Since:
v4.0

Constructor Summary
ClassLocator(Class<T> klazz)
           
 
Method Summary
 List<Class<? extends T>> findClasses()
          List all the classes inside a package
static ClassLocator<Object> forAnyClass()
           
 FileFilter getFilenameFilter()
           
 int getLevel()
           
 String getPackage()
           
 Predicate<Class<? extends T>> getPredicate()
           
 boolean isAllowInner()
           
 ClassLocator<T> setAllowInner(boolean allowInner)
           
 ClassLocator<T> setFilenameFilter(FileFilter filenameFilter)
           
 ClassLocator<T> setLevel(int level)
           
 ClassLocator<T> setPackage(String pkg)
           
 ClassLocator<T> setPredicate(Predicate<Class<? extends T>> predicate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLocator

public ClassLocator(Class<T> klazz)
Method Detail

forAnyClass

public static ClassLocator<Object> forAnyClass()

getLevel

public int getLevel()

setLevel

public ClassLocator<T> setLevel(int level)

isAllowInner

public boolean isAllowInner()

setAllowInner

public ClassLocator<T> setAllowInner(boolean allowInner)

getPredicate

public Predicate<Class<? extends T>> getPredicate()

setPredicate

public ClassLocator<T> setPredicate(Predicate<Class<? extends T>> predicate)

getFilenameFilter

public FileFilter getFilenameFilter()

setFilenameFilter

public ClassLocator<T> setFilenameFilter(FileFilter filenameFilter)

setPackage

public ClassLocator<T> setPackage(String pkg)

getPackage

public String getPackage()

findClasses

public List<Class<? extends T>> findClasses()
List all the classes inside a package

Returns:
the list of classes in the package.


Copyright © 2002-2012 Atlassian. All Rights Reserved.