Package randoop.util
Class RunnerThread
- java.lang.Object
-
- java.lang.Thread
-
- randoop.util.RunnerThread
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
RunnerThread.NextCallMustBe
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description private ReflectionCode
code
(package private) boolean
runFinished
private RunnerThread.NextCallMustBe
state
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description RunnerThread(ThreadGroup threadGroup)
Create a new runner thread.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
executeReflectionCode()
ReflectionCode
getCode()
Return the ReflectionCode that is being, or was, run.void
run()
void
setup(ReflectionCode code)
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
code
private ReflectionCode code
-
runFinished
boolean runFinished
-
state
private RunnerThread.NextCallMustBe state
-
-
Constructor Detail
-
RunnerThread
RunnerThread(ThreadGroup threadGroup)
Create a new runner thread.- Parameters:
threadGroup
- the group for this thread
-
-
Method Detail
-
setup
public void setup(ReflectionCode code)
-
executeReflectionCode
private void executeReflectionCode() throws ReflectionCode.ReflectionCodeException
-
getCode
public ReflectionCode getCode()
Return the ReflectionCode that is being, or was, run.- Returns:
- the ReflectionCode that is being, or was, run
-
-