public abstract static class Script.ScriptThread
extends java.lang.Thread
| Constructor and Description |
|---|
ScriptThread(Script owner,
java.lang.String[] args)
Initializes the thread.
|
| Modifier and Type | Method and Description |
|---|---|
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, 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, yieldpublic ScriptThread(Script owner, java.lang.String[] args)
owner - the owning scriptargs - the commandline argumentspublic Script getOwner()
public java.lang.String[] getArgs()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void stopScript()