|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjist.minisim.prime
public class prime
Pulls in all the classes that it find below a given classpath in order to get rewriter statistics.
Nested Class Summary | |
---|---|
static class |
prime.ClassFileFilter
A filename filter to return only directories. |
private static class |
prime.CmdlineOpts
Parsed command-line options. |
static class |
prime.DirFileFilter
A filename filter to return only class files. |
Field Summary | |
---|---|
static prime.ClassFileFilter |
classFileFilter
class file list filter. |
private static int |
count
number of classes loaded. |
static prime.DirFileFilter |
dirFileFilter
directory file list filter. |
private static prime.CmdlineOpts |
options
parsed command-line options. |
static java.lang.String |
VERSION
benchmark version. |
Constructor Summary | |
---|---|
prime()
|
Method Summary | |
---|---|
static void |
loadDir(java.io.File dir,
java.lang.String base)
Process a directory of class files. |
static void |
main(java.lang.String[] args)
Benchmark entry point: recursively load and rewrite classes. |
private static prime.CmdlineOpts |
parseCommandLineOptions(java.lang.String[] args)
Parse command-line options. |
private static void |
showUsage()
Print benchmark command-line syntax. |
private static void |
showVersion()
Print benchmark version information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VERSION
private static prime.CmdlineOpts options
private static int count
public static final prime.ClassFileFilter classFileFilter
public static final prime.DirFileFilter dirFileFilter
Constructor Detail |
---|
public prime()
Method Detail |
---|
private static void showVersion()
private static void showUsage()
private static prime.CmdlineOpts parseCommandLineOptions(java.lang.String[] args) throws jargs.gnu.CmdLineParser.OptionException
args
- command-line parameters
CmdLineParser.OptionException
- invalid option encounteredpublic static void loadDir(java.io.File dir, java.lang.String base)
dir
- directory pathbase
- relative path from package root directorypublic static void main(java.lang.String[] args)
args
- command-line parameters
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |