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
 
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.
arrayToString(Object) - Static method in class nz.ac.waikato.cms.locator.ClassUtils
Returns the given Array in a string representation.
arrayToString(Object, boolean) - 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.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.
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
 
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.
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.TraversalListener - Interface in nz.ac.waikato.cms.locator
Interface for classes that listen to the traversal of the classpath.
ClassPathTraversal.TraversalState - Class in nz.ac.waikato.cms.locator
Container class for maintaining the state while traversing.
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.ClassPathTraversal
Fixes the classname, turns "/" and "\" into "." and removes ".class".
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.ClassPathTraversal
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.ClassPathTraversal
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(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.
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.
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.
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.
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.
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.
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.
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.
findPackages() - Method in class nz.ac.waikato.cms.locator.ClassLocator
Lists all packages it can find in the classpath.
flatten(Object[], String) - Static method in class nz.ac.waikato.cms.locator.ClassUtils
Flattens the array into a single, long string.
flatten(List, String) - Static method in class nz.ac.waikato.cms.locator.ClassUtils
Flattens the list 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(Class) - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns all the classnames that were found for this superclass.
getClassnames(String) - Method in class nz.ac.waikato.cms.locator.ClassCache
Returns all the classes for the given package.
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.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.
getLogger() - Method in class nz.ac.waikato.cms.locator.ClassPathTraversal
Returns the logger in use.
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() - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns the superclass-packages relation.
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.
getSingleton() - 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.
getSuperclasses() - Method in class nz.ac.waikato.cms.locator.ClassLister
Returns the all superclasses that define class hierarchies.
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.
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(Class, Class) - Static method in class nz.ac.waikato.cms.locator.ClassLocator
Checks whether the given class implements the given interface.
hasInterface(String, String) - Static method in class nz.ac.waikato.cms.locator.ClassLocator
Checks whether the given class implements the given interface.

I

initCache() - Method in class nz.ac.waikato.cms.locator.ClassLocator
initializes the cache for the classnames.
initialize() - 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
 
isBlacklisted(String) - Method in class nz.ac.waikato.cms.locator.ClassLocator
Returns whether this classname has been blacklisted.
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.
isLoggingEnabled() - Method in class nz.ac.waikato.cms.locator.ClassPathTraversal
Returns whether logging is enabled.
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(Class, Class) - Static method in class nz.ac.waikato.cms.locator.ClassLocator
Checks whether the "otherclass" is a subclass of the given "superclass".
isSubclass(String, String) - 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_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_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.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_Logger - Variable in class nz.ac.waikato.cms.locator.ClassPathTraversal
the logger in use.
m_NameCache - Variable in class nz.ac.waikato.cms.locator.ClassCache.Listener
for caching all classes on the class path (package-name <-> HashSet with classnames).
m_NameCache - Variable in class nz.ac.waikato.cms.locator.ClassCache
for caching all classes on the class path (package-name <-> HashSet 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
 
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".
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".

N

newClassCache() - 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.

R

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

S

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

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.
TraversalState(ClassPathTraversal.TraversalListener) - Constructor for class nz.ac.waikato.cms.locator.ClassPathTraversal.TraversalState
Initializes the state with the listener.
traverse(String, ClassPathTraversal.TraversalState) - Method in class nz.ac.waikato.cms.locator.ClassPathTraversal
Traverses the class, calls the listener available through the state.
traverse(ClassPathTraversal.TraversalListener) - Method in class nz.ac.waikato.cms.locator.ClassPathTraversal
Traverses the classpath.
traverseClasspathPart(String, ClassPathTraversal.TraversalState) - Method in class nz.ac.waikato.cms.locator.ClassPathTraversal
Analyzes a part of the classpath.
traverseDir(File, ClassPathTraversal.TraversalState) - Method in class nz.ac.waikato.cms.locator.ClassPathTraversal
Fills the class cache with classes in the specified directory.
traverseDir(String, 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.ClassPathTraversal.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 © 2018 University of Waikato, Hamilton, NZ. All Rights Reserved.