Skip navigation links
A B C D E F G H I J L M N P R S T U 

A

AbstractAncestor - Class in nz.ac.waikato.cms.locator.example
TODO: What class does.
AbstractAncestor() - Constructor for class nz.ac.waikato.cms.locator.example.AbstractAncestor
 
AbstractClassTraversal - Class in nz.ac.waikato.cms.locator
Ancestor for class traversal schemes.
AbstractClassTraversal() - Constructor for class nz.ac.waikato.cms.locator.AbstractClassTraversal
 
accept(File) - Method in class nz.ac.waikato.cms.locator.ClassPathTraversal.ClassFileFilter
Checks whether the file is a class.
accept(File) - Method in class nz.ac.waikato.cms.locator.ClassPathTraversal.DirectoryFilter
Checks whether the file is a directory.
addCache(Class, String, List<String>, List<Class>) - Method in class nz.ac.waikato.cms.locator.ClassLocator
adds the list of classnames to the cache.
addHierarchy(String, String[]) - Method in class nz.ac.waikato.cms.locator.ClassLister
Adds/appends a class hierarchy.
addHierarchy(Class, Class[]) - Method in class nz.ac.waikato.cms.locator.ClassLister
Adds/appends a class hierarchy.
arrayToString(Object, boolean) - Static method in class nz.ac.waikato.cms.locator.ClassUtils
Returns the given Array in a string representation.
arrayToString(Object) - Static method in class nz.ac.waikato.cms.locator.ClassUtils
Returns the given Array in a string representation.
atLeast9() - Static method in class nz.ac.waikato.cms.locator.JavaVersion
Checks whether the Java version is at least 9.

B

blacklist(String) - Method in class nz.ac.waikato.cms.locator.ClassLocator
Blacklists the given classname.

C

charGroup(char) - Method in class nz.ac.waikato.cms.locator.ClassCompare
returns the group of the character: 0=special char, 1=number, 2=letter.
charGroup(char) - Method in class nz.ac.waikato.cms.locator.StringCompare
returns the group of the character: 0=special char, 1=number, 2=letter.
ClassCache - Class in nz.ac.waikato.cms.locator
A class that stores all classes on the classpath.
ClassCache() - Constructor for class nz.ac.waikato.cms.locator.ClassCache
Initializes the cache.
ClassCache(ClassTraversal) - Constructor for class nz.ac.waikato.cms.locator.ClassCache
Initializes the cache.
ClassCache.Listener - Class in nz.ac.waikato.cms.locator
For listening to the class traversal and populating the caches.
ClassCompare - Class in nz.ac.waikato.cms.locator
Compares the names of two classes with the following order: case insensitive special chars < numbers < letters
ClassCompare() - Constructor for class nz.ac.waikato.cms.locator.ClassCompare
 
ClassFileFilter() - Constructor for class nz.ac.waikato.cms.locator.ClassPathTraversal.ClassFileFilter
 
ClassLister - Class in nz.ac.waikato.cms.locator
Determines the classnames of superclasses that are to be displayed in a GUI for instance.
ClassLister() - Constructor for class nz.ac.waikato.cms.locator.ClassLister
Initializes the classlister.
ClassLister(ClassTraversal) - Constructor for class nz.ac.waikato.cms.locator.ClassLister
Initializes the classlister.
ClassListerExample - Class in nz.ac.waikato.cms.locator.example
Demonstrates how to use the ClassLister.
ClassListerExample() - Constructor for class nz.ac.waikato.cms.locator.example.ClassListerExample
 
ClassListerExampleFixedClassList - Class in nz.ac.waikato.cms.locator.example
Demonstrates how to use the ClassLister with a fixed list of class names.
ClassListerExampleFixedClassList() - Constructor for class nz.ac.waikato.cms.locator.example.ClassListerExampleFixedClassList
 
ClassListerExamplePropertiesBasedClassList - Class in nz.ac.waikato.cms.locator.example
Demonstrates how to initializes the ClassLister with properties.
ClassListerExamplePropertiesBasedClassList() - Constructor for class nz.ac.waikato.cms.locator.example.ClassListerExamplePropertiesBasedClassList
 
ClassLocator - Class in nz.ac.waikato.cms.locator
This class is used for discovering classes that implement a certain interface or a derived from a certain class.
ClassLocator() - Constructor for class nz.ac.waikato.cms.locator.ClassLocator
Initializes the class locator.
ClassLocator(ClassTraversal) - Constructor for class nz.ac.waikato.cms.locator.ClassLocator
Initializes the class locator.
classpathParts() - Method in class nz.ac.waikato.cms.locator.ClassCache
Returns all the stored classpath parts.
classpathParts(String) - Method in class nz.ac.waikato.cms.locator.ClassCache
Returns all the stored classpath parts that match the provided regular expression.
classpathPartsForClass(Class) - Method in class nz.ac.waikato.cms.locator.ClassCache
Returns the classpath parts that contain the specified class (eg to find duplicates).
classpathPartsForClass(String) - Method in class nz.ac.waikato.cms.locator.ClassCache
Returns the classpath parts that contain the specified class (eg to find duplicates).
classpathPartsForClass(Class) - Method in class nz.ac.waikato.cms.locator.ClassLocator
Returns the classpath parts that contain the specified class (eg to find duplicates).
classpathPartsForClass(String) - Method in class nz.ac.waikato.cms.locator.ClassLocator
Returns the classpath parts that contain the specified class (eg to find duplicates).
ClassPathTraversal - Class in nz.ac.waikato.cms.locator
For traversing the classpath.
ClassPathTraversal() - Constructor for class nz.ac.waikato.cms.locator.ClassPathTraversal
 
ClassPathTraversal.ClassFileFilter - Class in nz.ac.waikato.cms.locator
For filtering classes.
ClassPathTraversal.DirectoryFilter - Class in nz.ac.waikato.cms.locator
For filtering classes.
ClassPathTraversal.TraversalState - Class in nz.ac.waikato.cms.locator
Container class for maintaining the state while traversing.
ClassTraversal - Interface in nz.ac.waikato.cms.locator
Interface for class traversal schemes.
ClassUtils - Class in nz.ac.waikato.cms.locator
Helper class for class-related operations.
ClassUtils() - Constructor for class nz.ac.waikato.cms.locator.ClassUtils
 
cleanUp(String) - Static method in class nz.ac.waikato.cms.locator.AbstractClassTraversal
Fixes the classname, turns "/" and "\" into "." and removes ".class".
COMMENT - Static variable in class nz.ac.waikato.cms.locator.FixedClassListTraversal
line comment.
compare(Class, Class) - Method in class nz.ac.waikato.cms.locator.ClassCompare
Compares its two arguments for order.
compare(String, String) - Method in class nz.ac.waikato.cms.locator.StringCompare
Compares its two arguments for order.
ConcreteClassA - Class in nz.ac.waikato.cms.locator.example.pkgA
Example class.
ConcreteClassA() - Constructor for class nz.ac.waikato.cms.locator.example.pkgA.ConcreteClassA
 
ConcreteClassB - Class in nz.ac.waikato.cms.locator.example.pkgA
Example class.
ConcreteClassB() - Constructor for class nz.ac.waikato.cms.locator.example.pkgA.ConcreteClassB
 
ConcreteClassC - Class in nz.ac.waikato.cms.locator.example.pkgB
Example class.
ConcreteClassC() - Constructor for class nz.ac.waikato.cms.locator.example.pkgB.ConcreteClassC
 

D

DEFAULT_PACKAGE - Static variable in class nz.ac.waikato.cms.locator.AbstractClassTraversal
the key for the default package.
DirectoryFilter() - Constructor for class nz.ac.waikato.cms.locator.ClassPathTraversal.DirectoryFilter
 

E

equals(Object) - Method in class nz.ac.waikato.cms.locator.ClassCompare
Indicates whether some other object is "equal to" this Comparator.
equals(Object) - Method in class nz.ac.waikato.cms.locator.StringCompare
Indicates whether some other object is "equal to" this Comparator.
extractPackage(String) - Static method in class nz.ac.waikato.cms.locator.AbstractClassTraversal
Extracts the package name from the (clean) classname.

F

fillUp(String, int) - Method in class nz.ac.waikato.cms.locator.ClassCompare
appends blanks to the string if its shorter than len.
fillUp(String, int) - Method in class nz.ac.waikato.cms.locator.StringCompare
appends blanks to the string if its shorter than len.
findClasses(String, String[]) - Method in class nz.ac.waikato.cms.locator.ClassLocator
Checks the given packages for classes that inherited from the given class, in case it's a class, or implement this class, in case it's an interface.
findClasses(Class, String[]) - Method in class nz.ac.waikato.cms.locator.ClassLocator
Checks the given packages for classes that inherited from the given class, in case it's a class, or implement this class, in case it's an interface.
findClassesInPackage(String, String) - Method in class nz.ac.waikato.cms.locator.ClassLocator
Checks the given package for classes that inherited from the given class, in case it's a class, or implement this class, in case it's an interface.
findClassesInPackage(Class, String) - Method in class nz.ac.waikato.cms.locator.ClassLocator
Checks the given package for classes that inherited from the given class, in case it's a class, or implement this class, in case it's an interface.
findNames(String, String[]) - Method in class nz.ac.waikato.cms.locator.ClassLocator
Checks the given packages for classes that inherited from the given class, in case it's a class, or implement this class, in case it's an interface.
findNames(Class, String[]) - Method in class nz.ac.waikato.cms.locator.ClassLocator
Checks the given packages for classes that inherited from the given class, in case it's a class, or implement this class, in case it's an interface.
findNamesInPackage(String, String) - Method in class nz.ac.waikato.cms.locator.ClassLocator
Checks the given package for classes that inherited from the given class, in case it's a class, or implement this class, in case it's an interface.
findNamesInPackage(Class, String) - Method in class nz.ac.waikato.cms.locator.ClassLocator
Checks the given package for classes that inherited from the given class, in case it's a class, or implement this class, in case it's an interface.
findPackages() - Method in class nz.ac.waikato.cms.locator.ClassLocator
Lists all packages it can find in the classpath.
FixedClassListTraversal - Class in nz.ac.waikato.cms.locator
Simple class traversal scheme that uses a predefined list of classnames.
FixedClassListTraversal(List<String>) - Constructor for class nz.ac.waikato.cms.locator.FixedClassListTraversal
Initializes the traversal with the given list.
FixedClassListTraversal(InputStream) - Constructor for class nz.ac.waikato.cms.locator.FixedClassListTraversal
Initializes the traversal with the lines read from the given input stream (eg a resource stream).
flatten(List, String) - Static method in class nz.ac.waikato.cms.locator.ClassUtils
Flattens the list into a single, long string.
flatten(Object[], String) - Static method in class nz.ac.waikato.cms.locator.ClassUtils
Flattens the array into a single, long string.

G

getArrayClass(Class) - Static method in class nz.ac.waikato.cms.locator.ClassUtils
Returns the basic class of an array class (handles multi-dimensional arrays).
getArrayDimensions(Class) - Static method in class nz.ac.waikato.cms.locator.ClassUtils
Returns the dimensions of the given array.
getArrayDimensions(Object) - Static method in class nz.ac.waikato.cms.locator.ClassUtils
Returns the dimensions of the given array.
getCache() - Method in class nz.ac.waikato.cms.locator.ClassLocator
Returns the class cache.
getClassCache(Class, String) - Method in class nz.ac.waikato.cms.locator.ClassLocator
returns the list of classes associated with this class and package, if available, otherwise null.
getClasses(Class) - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns all the classs that were found for this superclass.
getClasses(String) - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns all the classes that were found for this superclass.
getClassLocator() - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns the ClassLocator instance to use.
getClassnames(String) - Method in class nz.ac.waikato.cms.locator.ClassCache
Returns all the classes for the given package.
getClassnames(String, boolean) - Method in class nz.ac.waikato.cms.locator.ClassCache
Returns all the classes for the given package.
getClassnames(URL) - Method in class nz.ac.waikato.cms.locator.ClassCache
Returns all the classes for the given classpath part.
getClassnames(URL, boolean) - Method in class nz.ac.waikato.cms.locator.ClassCache
Returns all the classes for the given classpath part.
getClassnames(Class) - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns all the classnames that were found for this superclass.
getClasspathPartCache() - Method in class nz.ac.waikato.cms.locator.ClassCache.Listener
Returns the classpath path cache.
getClassTraversal() - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns the underlying class traversal.
getLevel(Class) - Static method in class nz.ac.waikato.cms.locator.LoggingHelper
Returns the log level for the specified class.
getLevel(Class, Level) - Static method in class nz.ac.waikato.cms.locator.LoggingHelper
Returns the log level for the specified class.
getListener() - Method in class nz.ac.waikato.cms.locator.ClassPathTraversal.TraversalState
Returns the traversal listener.
getLogger() - Method in class nz.ac.waikato.cms.locator.AbstractClassTraversal
Returns the logger in use.
getLogger() - Method in class nz.ac.waikato.cms.locator.ClassCache
Returns the logger in use.
getLogger() - Method in class nz.ac.waikato.cms.locator.ClassCache.Listener
Returns the logger in use.
getLogger() - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns the logger in use.
getLogger() - Method in class nz.ac.waikato.cms.locator.ClassLocator
Returns the logger in use.
getManagedClasses() - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns the set of managed classes.
getManagedClassnames() - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns the set of managed class names.
getNameCache() - Method in class nz.ac.waikato.cms.locator.ClassCache.Listener
Returns the name cache.
getNameCache(Class, String) - Method in class nz.ac.waikato.cms.locator.ClassLocator
returns the list of classnames associated with this class and package, if available, otherwise null.
getPackages(Class) - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns all the packages that were found for this superclass.
getPackages(String) - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns all the packages that were found for this superclass.
getPackages() - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns the superclass-packages relation.
getSingleton() - Static method in class nz.ac.waikato.cms.locator.ClassLister
Returns the singleton instance of the class lister.
getSingleton(ClassTraversal) - Static method in class nz.ac.waikato.cms.locator.ClassLister
Returns the singleton instance of the class lister.
getSingleton() - Static method in class nz.ac.waikato.cms.locator.ClassLocator
Returns the singleton, instantiates it if necessary.
getSingleton(ClassTraversal) - Static method in class nz.ac.waikato.cms.locator.ClassLocator
Returns the singleton, instantiates it if necessary.
getSuperclasses(Class) - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns the superclasses that the specified classes was listed under.
getSuperclasses(String) - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns the superclasses that the specified classes was listed under.
getSuperclasses() - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns the all superclasses that define class hierarchies.
getURL() - Method in class nz.ac.waikato.cms.locator.ClassPathTraversal.TraversalState
Returns the current URL.
globalInfo() - Method in class nz.ac.waikato.cms.locator.ClassCompare
Returns a string describing the object.
globalInfo() - Method in class nz.ac.waikato.cms.locator.StringCompare
Returns a string describing the object.

H

hasInterface(String, String) - Static method in class nz.ac.waikato.cms.locator.ClassLocator
Checks whether the given class implements the given interface.
hasInterface(Class, Class) - Static method in class nz.ac.waikato.cms.locator.ClassLocator
Checks whether the given class implements the given interface.

I

initCache(ClassTraversal) - Method in class nz.ac.waikato.cms.locator.ClassLocator
initializes the cache for the classnames.
initialize(ClassTraversal) - Method in class nz.ac.waikato.cms.locator.ClassCache
Initializes the cache.
initialize() - Method in class nz.ac.waikato.cms.locator.ClassLister
loads the props file and interpretes it.
InterfaceImplA - Class in nz.ac.waikato.cms.locator.example.pkgA
Example class.
InterfaceImplA() - Constructor for class nz.ac.waikato.cms.locator.example.pkgA.InterfaceImplA
 
InterfaceImplB - Class in nz.ac.waikato.cms.locator.example.pkgB
Example class.
InterfaceImplB() - Constructor for class nz.ac.waikato.cms.locator.example.pkgB.InterfaceImplB
 
InterfaceImplC - Class in nz.ac.waikato.cms.locator.example.pkgB
Example class.
InterfaceImplC() - Constructor for class nz.ac.waikato.cms.locator.example.pkgB.InterfaceImplC
 
InterfaceImplInternal - Class in nz.ac.waikato.cms.locator.example.pkgB
Example class.
InterfaceImplInternal() - Constructor for class nz.ac.waikato.cms.locator.example.pkgB.InterfaceImplInternal
 
isAbstract(String) - Method in class nz.ac.waikato.cms.locator.ClassCache
Returns whether the class has been flagged as abstract.
isAnonymous(String) - Method in class nz.ac.waikato.cms.locator.ClassCache
Returns whether the class is an anonymous one ("...$X" with X being a number).
isBlacklisted(String) - Method in class nz.ac.waikato.cms.locator.ClassLocator
Returns whether this classname has been blacklisted.
isEmpty() - Method in class nz.ac.waikato.cms.locator.ClassCache
Returns whether the cache is empty.
isLoggingEnabled() - Method in class nz.ac.waikato.cms.locator.AbstractClassTraversal
Returns whether logging is enabled.
isLoggingEnabled() - Method in class nz.ac.waikato.cms.locator.ClassCache
Returns whether logging is enabled.
isLoggingEnabled() - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns whether logging is enabled.
isLoggingEnabled() - Method in class nz.ac.waikato.cms.locator.ClassLocator
Returns whether logging is enabled.
isManaged(Class) - Method in class nz.ac.waikato.cms.locator.ClassLister
Checks whether the class is listed in one of the hierarchies.
isManaged(String) - Method in class nz.ac.waikato.cms.locator.ClassLister
Checks whether the classname is listed in one of the hierarchies.
isOnlyDefaultConstructor() - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns whether to allow only classes with default constructor.
isOnlyDefaultConstructor() - Method in class nz.ac.waikato.cms.locator.ClassLocator
Returns whether to allow only classes with default constructor.
isOnlySerializable() - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns whether to allow only serializable classes.
isOnlySerializable() - Method in class nz.ac.waikato.cms.locator.ClassLocator
Returns whether to allow only serializable classes.
isSubclass(String, String) - Static method in class nz.ac.waikato.cms.locator.ClassLocator
Checks whether the "otherclass" is a subclass of the given "superclass".
isSubclass(Class, Class) - Static method in class nz.ac.waikato.cms.locator.ClassLocator
Checks whether the "otherclass" is a subclass of the given "superclass".

J

JavaVersion - Class in nz.ac.waikato.cms.locator
Helper class for the Java versions.
JavaVersion() - Constructor for class nz.ac.waikato.cms.locator.JavaVersion
 

L

Listener() - Constructor for class nz.ac.waikato.cms.locator.ClassCache.Listener
Initializes the listener.
load(String) - Static method in class nz.ac.waikato.cms.locator.ClassLister
Loads the properties from the classpath.
load(String, Properties) - Static method in class nz.ac.waikato.cms.locator.ClassLister
Loads the properties from the classpath.
LoggingHelper - Class in nz.ac.waikato.cms.locator
Helper class for logging related stuff.
LoggingHelper() - Constructor for class nz.ac.waikato.cms.locator.LoggingHelper
 
LOGLEVEL_SUFFIX - Static variable in class nz.ac.waikato.cms.locator.LoggingHelper
the environment variable suffix of the log level to look for.

M

m_AbstractClasses - Variable in class nz.ac.waikato.cms.locator.ClassCache
cache for abstract classes.
m_AnonymousCheck - Variable in class nz.ac.waikato.cms.locator.ClassCache
for checking whether an anonymous class.
m_Blacklist - Variable in class nz.ac.waikato.cms.locator.ClassLister
the properties with the blacklisted classes.
m_BlackListed - Variable in class nz.ac.waikato.cms.locator.ClassLocator
for caching failed instantiations (classnames).
m_Cache - Variable in class nz.ac.waikato.cms.locator.ClassLocator
the overall class cache.
m_CacheClasses - Variable in class nz.ac.waikato.cms.locator.ClassLister
the cache (superclass/classes).
m_CacheClasses - Variable in class nz.ac.waikato.cms.locator.ClassLocator
for caching queries (classname-packagename <-> List with classes).
m_CacheNames - Variable in class nz.ac.waikato.cms.locator.ClassLister
the cache (superclass/classnames).
m_CacheNames - Variable in class nz.ac.waikato.cms.locator.ClassLocator
for caching queries (classname-packagename <-> List with classnames).
m_CheckInterface - Static variable in class nz.ac.waikato.cms.locator.ClassLocator
the cache for interface checks.
m_CheckSubClass - Static variable in class nz.ac.waikato.cms.locator.ClassLocator
the cache for subclass checks.
m_Classnames - Variable in class nz.ac.waikato.cms.locator.FixedClassListTraversal
the list of classes to traverse.
m_Classnames - Variable in class nz.ac.waikato.cms.locator.PropertiesBasedClassListTraversal
the list of classes to traverse.
m_ClasspathPartCache - Variable in class nz.ac.waikato.cms.locator.ClassCache.Listener
caches the classnames per classpath part (path <-> Set with classnames).
m_ClasspathPartCache - Variable in class nz.ac.waikato.cms.locator.ClassCache
the classpath path part cache (classpath part <-> set with classnames).
m_ClassTraversal - Variable in class nz.ac.waikato.cms.locator.ClassLister
the class traversal to use.
m_ListClasses - Variable in class nz.ac.waikato.cms.locator.ClassLister
the list (superclass/classes).
m_Listener - Variable in class nz.ac.waikato.cms.locator.ClassPathTraversal.TraversalState
the traversal listener.
m_ListNames - Variable in class nz.ac.waikato.cms.locator.ClassLister
the list (superclass/classnames).
m_Logger - Variable in class nz.ac.waikato.cms.locator.AbstractClassTraversal
the logger in use.
m_Logger - Variable in class nz.ac.waikato.cms.locator.ClassCache.Listener
the logger in use.
m_Logger - Variable in class nz.ac.waikato.cms.locator.ClassCache
the logger in use.
m_Logger - Variable in class nz.ac.waikato.cms.locator.ClassLister
the logger in use.
m_Logger - Variable in class nz.ac.waikato.cms.locator.ClassLocator
the logger in use.
m_ManagedClasses - Variable in class nz.ac.waikato.cms.locator.ClassLister
cache for all managed classs.
m_ManagedClassnames - Variable in class nz.ac.waikato.cms.locator.ClassLister
cache for all managed classnames.
m_NameCache - Variable in class nz.ac.waikato.cms.locator.ClassCache.Listener
for caching all classes on the class path (package-name <-> Set with classnames).
m_NameCache - Variable in class nz.ac.waikato.cms.locator.ClassCache
for caching all classes on the class path (package-name <-> Set with classnames).
m_OnlyDefaultConstructor - Variable in class nz.ac.waikato.cms.locator.ClassLister
whether to allow only classes with the default constructor.
m_OnlyDefaultConstructor - Variable in class nz.ac.waikato.cms.locator.ClassLocator
whether to allow only classes with the default constructor.
m_OnlySerializable - Variable in class nz.ac.waikato.cms.locator.ClassLister
whether to allow only serializable classes.
m_OnlySerializable - Variable in class nz.ac.waikato.cms.locator.ClassLocator
whether to allow only serializable classes.
m_Packages - Variable in class nz.ac.waikato.cms.locator.ClassLister
the properties (superclass/packages).
m_Singleton - Static variable in class nz.ac.waikato.cms.locator.ClassLister
the singleton.
m_Singleton - Static variable in class nz.ac.waikato.cms.locator.ClassLocator
the singleton.
m_URL - Variable in class nz.ac.waikato.cms.locator.ClassPathTraversal.TraversalState
the current URL.
main(String[]) - Static method in class nz.ac.waikato.cms.locator.ClassCache
For testing only.
main(String[]) - Static method in class nz.ac.waikato.cms.locator.ClassLocator
Possible calls: adams.core.ClassLocator <packages>
Prints all the packages in the current classpath adams.core.ClassLocator <classname> <packagename(s)>
Prints the classes it found.
main(String[]) - Static method in class nz.ac.waikato.cms.locator.example.ClassListerExample
 
main(String[]) - Static method in class nz.ac.waikato.cms.locator.example.ClassListerExampleFixedClassList
 
main(String[]) - Static method in class nz.ac.waikato.cms.locator.example.ClassListerExamplePropertiesBasedClassList
 
matches(String, String) - Static method in class nz.ac.waikato.cms.locator.ClassLocator
Checks whether the "otherclass" is a subclass of the given "superclassOrIntf" or whether it implements "superclassOrIntf".
matches(Class, Class) - Static method in class nz.ac.waikato.cms.locator.ClassLocator
Checks whether the "otherclass" is a subclass of the given "superclassOrIntf" or whether it implements "superclassOrIntf".

N

newClassCache(ClassTraversal) - Method in class nz.ac.waikato.cms.locator.ClassLocator
Returns a new instance of the ClassCache.
nz.ac.waikato.cms.locator - package nz.ac.waikato.cms.locator
 
nz.ac.waikato.cms.locator.example - package nz.ac.waikato.cms.locator.example
 
nz.ac.waikato.cms.locator.example.pkgA - package nz.ac.waikato.cms.locator.example.pkgA
 
nz.ac.waikato.cms.locator.example.pkgB - package nz.ac.waikato.cms.locator.example.pkgB
 

P

packages() - Method in class nz.ac.waikato.cms.locator.ClassCache
Returns all the stored packages.
packages(String) - Method in class nz.ac.waikato.cms.locator.ClassCache
Returns all the stored packages that match the provided regular expression.
PATTERN_ANONYMOUS - Static variable in class nz.ac.waikato.cms.locator.ClassCache
the regexp pattern for identifying anonymous classes.
PropertiesBasedClassListTraversal - Class in nz.ac.waikato.cms.locator
Initializes from a properties file.
PropertiesBasedClassListTraversal(Properties) - Constructor for class nz.ac.waikato.cms.locator.PropertiesBasedClassListTraversal
Initializes the traversal with the classname lists (comma-separated lists) stored in each property.

R

remove(String) - Method in class nz.ac.waikato.cms.locator.ClassCache
Removes the classname from the cache.

S

setAbstract(String, boolean) - Method in class nz.ac.waikato.cms.locator.ClassCache
Flags or clears a class as being abstract.
setBlacklist(Properties) - Method in class nz.ac.waikato.cms.locator.ClassLister
Sets the properties with the blacklisted classes.
setOnlyDefaultConstructor(boolean) - Method in class nz.ac.waikato.cms.locator.ClassLister
Sets whether to allow only classes with default constructor.
setOnlyDefaultConstructor(boolean) - Method in class nz.ac.waikato.cms.locator.ClassLocator
Sets whether to allow only classes with default constructor.
setOnlySerializable(boolean) - Method in class nz.ac.waikato.cms.locator.ClassLister
Sets whether to allow only serializable classes.
setOnlySerializable(boolean) - Method in class nz.ac.waikato.cms.locator.ClassLocator
Sets whether to allow only serializable classes.
setPackages(Properties) - Method in class nz.ac.waikato.cms.locator.ClassLister
Sets the properties with the superclass/packages relation.
setURL(URL) - Method in class nz.ac.waikato.cms.locator.ClassPathTraversal.TraversalState
Sets the current URL.
SomeInterface - Interface in nz.ac.waikato.cms.locator.example
TODO: What class does.
StringCompare - Class in nz.ac.waikato.cms.locator
Compares two strings with the following order: case insensitive german umlauts (ä , ö etc.) or other non-ASCII letters are treated as special chars special chars < numbers < letters
StringCompare() - Constructor for class nz.ac.waikato.cms.locator.StringCompare
 

T

toPackages() - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns the class hierarchies as properties object, with the superclasses as keys and the values representing comma-separated lists of packages.
toProperties() - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns the class hierarchies as properties object, with the superclasses as keys and the values representing comma-separated lists of classnames.
toString() - Method in class nz.ac.waikato.cms.locator.ClassLister
Only prints the generated props file with all the classnames, based on the package names for the individual packages.
TraversalListener - Interface in nz.ac.waikato.cms.locator
Interface for classes that listen to the traversal of the classes.
TraversalState(TraversalListener) - Constructor for class nz.ac.waikato.cms.locator.ClassPathTraversal.TraversalState
Initializes the state with the listener.
traverse(TraversalListener) - Method in class nz.ac.waikato.cms.locator.AbstractClassTraversal
Traverses the classpath.
traverse(String, ClassPathTraversal.TraversalState) - Method in class nz.ac.waikato.cms.locator.ClassPathTraversal
Traverses the class, calls the listener available through the state.
traverse(TraversalListener) - Method in class nz.ac.waikato.cms.locator.ClassPathTraversal
Traverses the classpath.
traverse(TraversalListener) - Method in interface nz.ac.waikato.cms.locator.ClassTraversal
Traverses the classpath.
traverse(TraversalListener) - Method in class nz.ac.waikato.cms.locator.FixedClassListTraversal
Traverses the classpath.
traverse(TraversalListener) - Method in class nz.ac.waikato.cms.locator.PropertiesBasedClassListTraversal
Traverses the classpath.
traverseClasspathPart(String, ClassPathTraversal.TraversalState) - Method in class nz.ac.waikato.cms.locator.ClassPathTraversal
Analyzes a part of the classpath.
traverseDir(String, File, ClassPathTraversal.TraversalState) - Method in class nz.ac.waikato.cms.locator.ClassPathTraversal
Fills the class cache with classes in the specified directory.
traverseDir(File, ClassPathTraversal.TraversalState) - Method in class nz.ac.waikato.cms.locator.ClassPathTraversal
Fills the class cache with classes in the specified directory.
traverseJar(File, ClassPathTraversal.TraversalState) - Method in class nz.ac.waikato.cms.locator.ClassPathTraversal
Fills the class cache with classes from the specified jar.
traverseManifest(Manifest, ClassPathTraversal.TraversalState) - Method in class nz.ac.waikato.cms.locator.ClassPathTraversal
Analyzes the MANIFEST.MF file of a jar whether additional jars are listed in the "Class-Path" key.
traversing(String, URL) - Method in class nz.ac.waikato.cms.locator.ClassCache.Listener
Gets called when a class is being traversed.
traversing(String, URL) - Method in interface nz.ac.waikato.cms.locator.TraversalListener
Gets called when a class is being traversed.

U

updateClasses(HashMap<String, HashSet<Class>>, String, HashSet<Class>) - Method in class nz.ac.waikato.cms.locator.ClassLister
Updates cache for the superclass.
updateClasses(HashMap<String, List<Class>>, String, List<Class>) - Method in class nz.ac.waikato.cms.locator.ClassLister
Updates list for the superclass.
updateClassnames(HashMap<String, HashSet<String>>, String, HashSet<String>) - Method in class nz.ac.waikato.cms.locator.ClassLister
Updates cache for the superclass.
updateClassnames(HashMap<String, List<String>>, String, List<String>) - Method in class nz.ac.waikato.cms.locator.ClassLister
Updates list for the superclass.
A B C D E F G H I J L M N P R S T U 
Skip navigation links

Copyright © 2021 University of Waikato, Hamilton, NZ. All Rights Reserved.