- 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
-
- 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
-
- 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.
- 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
-
- 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.
- 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".