public static class SimpleCLIPanel.ClassRunner
extends java.lang.Thread
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_classIsRun
True if the class to be executed is weka.Run
|
protected java.lang.reflect.Method |
m_MainMethod
Stores the main method to call.
|
protected SimpleCLIPanel |
m_Owner
the owner.
|
| Constructor and Description |
|---|
ClassRunner(SimpleCLIPanel owner,
java.lang.Class<?> theClass,
java.lang.String[] commandArgs)
Sets up the class runner thread.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Starts running the main method.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected SimpleCLIPanel m_Owner
protected java.lang.reflect.Method m_MainMethod
protected boolean m_classIsRun
public ClassRunner(SimpleCLIPanel owner, java.lang.Class<?> theClass, java.lang.String[] commandArgs) throws java.lang.Exception
theClass - the Class to call the main method ofcommandArgs - an array of Strings to use as command line argsjava.lang.Exception - if an error occurs