public abstract static class Script.ScriptThread
extends java.lang.Thread
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String[] |
m_Args
commandline arguments.
|
protected Script |
m_Owner
the owning script.
|
protected boolean |
m_Stopped
whether the thread was stopped.
|
| Constructor and Description |
|---|
ScriptThread(Script owner,
java.lang.String[] args)
Initializes the thread.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doRun()
Performs the actual run.
|
java.lang.String[] |
getArgs()
Returns the commandline args.
|
Script |
getOwner()
Returns the owner.
|
void |
run()
Executes the script.
|
void |
stopScript()
Stops the script execution.
|
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 Script m_Owner
protected java.lang.String[] m_Args
protected boolean m_Stopped
public ScriptThread(Script owner, java.lang.String[] args)
owner - the owning scriptargs - the commandline argumentspublic Script getOwner()
public java.lang.String[] getArgs()
protected abstract void doRun()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void stopScript()