|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--java.lang.Thread | +--coins.driver.CompileThread
A compiler thread.
COINS Compiler Driver API executes compile steps of one compile unit by one
thread. If the option -conis:compile-paralle is specified, all the threads
are concurrently executed.
The compiler modules executed in the thread can get the thread object by a
method Thread.currentThread(), whose return value can be narrowed to this
class.
Some services are provided by the thread object:
入れ子クラスの概要 | |
(パッケージプライベート) class |
CompileThread.Assembler
|
(パッケージプライベート) class |
CompileThread.Compiler
|
(パッケージプライベート) class |
CompileThread.Linker
|
(パッケージプライベート) class |
CompileThread.PassGroup
|
(パッケージプライベート) class |
CompileThread.Preprocessor
|
フィールドの概要 | |
(パッケージプライベート) StopWatch |
fClock
|
(パッケージプライベート) CompilerImplementation |
fImplementation
|
(パッケージプライベート) IoRoot |
fIoRoot
|
(パッケージプライベート) boolean |
fIsLinkerThread
|
(パッケージプライベート) java.lang.String |
fSourceFileName
|
(パッケージプライベート) CompileSpecification |
fSpec
|
(パッケージプライベート) CompileStatus |
fStatus
|
(パッケージプライベート) TemporaryFileManager |
fTemporaryFileManager
|
(パッケージプライベート) java.util.Map |
fThreadLocalVariables
|
クラス java.lang.Thread から継承したフィールド |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
コンストラクタの概要 | |
(パッケージプライベート) |
CompileThread(java.lang.String pSourceFileName,
CompileSpecification pSpec,
TemporaryFileManager pTemporaryFileManager,
CompilerImplementation pImplementation,
CompileStatus pStatus,
boolean pIsLinkerThread)
|
メソッドの概要 | |
java.io.File |
createTemporaryFile()
Returns a File object representing a newly created temporary file. |
long |
elapsedTime()
Returns an elapsed mili-seconds since this thread was started. |
int |
getExitStatus()
Gets the current value of the exit status. |
IoRoot |
getIoRoot()
Gets an IoRoot object. |
java.lang.Object |
getThreadLocalVariableValue(java.lang.String varName)
Gets the value of a thread local variable. |
boolean |
isDefinedThreadLocalVariable(java.lang.String varName)
Tests if a thread local variable is defined or not. |
java.lang.Object |
removeThreadLocalVariable(java.lang.String varName)
Removes a thread local variable. |
void |
run()
|
void |
setABEND()
Sets a value representing `abnormal end' to the exit status. |
void |
setExitStatus(int s)
Sets a value to the exit status of this compilation. |
java.lang.Object |
setThreadLocalVariableValue(java.lang.String varName,
java.lang.Object value)
Sets a value to a thread local variable. |
void |
storeToFile(java.io.InputStream in,
java.io.File dest)
Reads data from an InputStream and stores them to a file. |
クラス 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 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
java.lang.String fSourceFileName
boolean fIsLinkerThread
TemporaryFileManager fTemporaryFileManager
CompilerImplementation fImplementation
CompileSpecification fSpec
IoRoot fIoRoot
CompileStatus fStatus
java.util.Map fThreadLocalVariables
StopWatch fClock
コンストラクタの詳細 |
CompileThread(java.lang.String pSourceFileName, CompileSpecification pSpec, TemporaryFileManager pTemporaryFileManager, CompilerImplementation pImplementation, CompileStatus pStatus, boolean pIsLinkerThread)
メソッドの詳細 |
public IoRoot getIoRoot()
public int getExitStatus()
public void setABEND()
public void setExitStatus(int s)
s
- the status valuepublic boolean isDefinedThreadLocalVariable(java.lang.String varName)
varName
- the name of the variable
public java.lang.Object getThreadLocalVariableValue(java.lang.String varName)
varName
- the name of the variable.
public java.lang.Object setThreadLocalVariableValue(java.lang.String varName, java.lang.Object value)
varName
- the name of the variable
public java.lang.Object removeThreadLocalVariable(java.lang.String varName)
varName
- the name of the variable
public long elapsedTime()
public java.io.File createTemporaryFile() throws java.io.IOException
java.io.IOException
- if temporary file creation fails.public void storeToFile(java.io.InputStream in, java.io.File dest) throws java.io.IOException
in
- the source InputStreamdest
- the destination File
java.io.IOException
- if storing data to a file failspublic void run()
java.lang.Runnable
内の run
java.lang.Thread
内の run
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |