sandmark.util.classloading
Class DirClassFinder
java.lang.Object
|
+--sandmark.util.classloading.DirClassFinder
- All Implemented Interfaces:
- IClassFinder
- class DirClassFinder
- extends java.lang.Object
- implements IClassFinder
Provides a list of classes, short descriptions of those classes, and
which of the classes specified in sandmark.util.classloading.IClassFinder the
classes derive from, based on the contents of the directory specified
in the system property "SMARK_ROOT"
- Author:
- Andrew Huntwork
- See Also:
IClassFinder
Fields inherited from interface sandmark.util.classloading.IClassFinder |
ALGORITHM, APP_OBFUSCATOR, CLASS_COUNT, CLASS_IDS, CLASS_NAMES, CLASS_OBFUSCATOR, DYN_WATERMARKER, GEN_OBFUSCATOR, GEN_WATERMARKER, GRAPH_CODEC, METHOD_OBFUSCATOR, STAT_WATERMARKER |
Method Summary |
java.util.Collection |
getClassesWithAncestor(int ancestor)
Get a Collection of String's containing names
of classes that derive from the type specified by
ancestor. |
java.lang.String |
getClassShortname(java.lang.String className)
Get a string suitable for display to the user that describes className |
static java.lang.Class[] |
loadClassFiles(java.lang.String path,
java.lang.String extendsfile)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirClassFinder
public DirClassFinder()
throws java.lang.Exception
getClassesWithAncestor
public java.util.Collection getClassesWithAncestor(int ancestor)
- Description copied from interface:
IClassFinder
- Get a Collection of String's containing names
of classes that derive from the type specified by
ancestor.
- Specified by:
getClassesWithAncestor
in interface IClassFinder
- Parameters:
ancestor
- one of the constants above
- Returns:
- Collection of String's containing names of classes derived from class specified by ancestor
getClassShortname
public java.lang.String getClassShortname(java.lang.String className)
- Description copied from interface:
IClassFinder
- Get a string suitable for display to the user that describes className
- Specified by:
getClassShortname
in interface IClassFinder
- Parameters:
className
- A String returned as a member of a Collection by getClassesWithAncestor
- Returns:
- A short String description of className
loadClassFiles
public static java.lang.Class[] loadClassFiles(java.lang.String path,
java.lang.String extendsfile)