weka.gui
Class SimpleCLI.ClassRunner

java.lang.Object
  extended byjava.lang.Thread
      extended byweka.gui.SimpleCLI.ClassRunner
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
SimpleCLI

class SimpleCLI.ClassRunner
extends java.lang.Thread


Field Summary
(package private)  java.lang.String[] m_CommandArgs
          Stores the command line arguments to pass to the main method
protected  java.lang.reflect.Method m_MainMethod
          Stores the main method to call
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SimpleCLI.ClassRunner(java.lang.Class theClass, java.lang.String[] commandArgs)
          Sets up the class runner thread.
 
Method Summary
 void run()
          Starts running the main method.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_MainMethod

protected java.lang.reflect.Method m_MainMethod
Stores the main method to call


m_CommandArgs

java.lang.String[] m_CommandArgs
Stores the command line arguments to pass to the main method

Constructor Detail

SimpleCLI.ClassRunner

public SimpleCLI.ClassRunner(java.lang.Class theClass,
                             java.lang.String[] commandArgs)
                      throws java.lang.Exception
Sets up the class runner thread.

Parameters:
theClass - the Class to call the main method of
commandArgs - an array of Strings to use as command line args
Throws:
java.lang.Exception - if an error occurs
Method Detail

run

public void run()
Starts running the main method.