|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--coins.IoRoot
IoRoot:
Abstraction of Input/Output context. IoRoot class is used to invoke methods related to input/output and to access information related to them. For example, information of source file, object file, and methods for error message output, debug information output can be accessed via IoRoot object. Objects of other Root classes (SymRoot, HirRoot, LirRoot, FlowRoot, etc.) include a reference to the instance of IoRoot in order to enable input/output operations. All Sym objects include a reference to SymRoot object, all HIR objects include a reference to HirRoot, and so on. In this way, almost all classes has a link to the IoRoot directly or indirectly so that input/output operations can be issued in their methods. Input/output file: public final PrintStream printOut, // Print out file. objectFile, // Object file. msgOut; // Message output file. Message control object: public Message // (See Message class) msgNote, // Note for user. msgWarning, // Obsolete msgRecovered, // Recovered error that may cause other error. msgError, // Compile error that discards some parts. msgFatal; // Fatal error that terminates compiler process. Debug control object: public Debug dbgControl, // For Root and compiler control dbgHir, // For HIR dbgLir, // For LIR dbgSym, // For Sym dbgFlow, // For Flow dbgAlias, // For Alias analysis dbgParse, // For Parser dbgToHir, // For AstToHir dbgToLir, // For HirToLir dbgOpt1, // For Optimization 1 dbgPara1, // For Parallelization 1 dbgReg, // For Register allocation dbgCodeGen; // For Code generation
フィールドの概要 | |
Debug |
dbgAlias
Debug control object. |
Debug |
dbgControl
Debug control object. |
Debug |
dbgFlow
Debug control object. |
Debug |
dbgHir
Debug control object. |
Debug |
dbgOpt1
Debug control object. |
Debug |
dbgPara1
Debug control object. |
Debug |
dbgParse
Debug control object. |
Debug |
dbgSym
Debug control object. |
Debug |
dbgToHir
Debug control object. |
Debug |
dbgToLir
Debug control object. |
protected java.lang.String |
languageName
|
protected java.lang.String |
machineName
|
MachineParam |
machineParam
Reference to MachineParam |
Message |
msgError
Message control object. |
Message |
msgFatal
Message control object. |
Message |
msgNote
Message control object. |
java.io.PrintStream |
msgOut
Input/output file |
Message |
msgRecovered
Message control object. |
Message |
msgWarning
Message control object. |
java.io.PrintStream |
objectFile
Input/output file |
java.io.PrintStream |
printOut
Input/output file |
SymRoot |
symRoot
Reference to the SymRoot object used to access Sym information and to invoke Sym methods. |
コンストラクタの概要 | |
IoRoot(java.io.File pSourceFile,
java.io.PrintStream pPrintOut,
java.io.PrintStream pObjectFile,
java.io.PrintStream pMsgOut,
CompileSpecification pSpec)
|
|
IoRoot(java.io.File pSourceFile,
java.io.PrintStream pPrintOut,
java.io.PrintStream pObjectFile,
java.io.PrintStream pMsgOut,
CompileSpecification pSpec,
java.lang.String pMachineName,
java.lang.String pLanguageName)
|
メソッドの概要 | |
int |
addToTotalErrorCount(int pCount)
Add pCount to the total-message-counter. |
CompileSpecification |
getCompileSpecification()
Get the CompilerSpecification currently active. |
java.lang.String |
getLanguageName()
|
java.lang.String |
getMachineName()
|
int |
getMessageCount()
Get the value of the message counter. |
java.io.File |
getSourceFile()
Get the source file |
java.lang.String |
getSourceFilePath()
Get absolute path of the source file |
void |
incrementMessageCount()
Increment the message counter. |
void |
resetMessageCount()
Reset the message counter. |
static java.lang.String |
toStringObject(java.lang.Object pItem)
toStringObject: Get the string image of given object pItem. |
static java.lang.String |
toStringObjectShort(java.lang.Object pItem)
toStringObjectShort: Get the short string image of given object pItem. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
public final java.io.PrintStream printOut
public final java.io.PrintStream objectFile
public final java.io.PrintStream msgOut
public Message msgNote
public Message msgWarning
public Message msgRecovered
public Message msgError
public Message msgFatal
public Debug dbgControl
public Debug dbgHir
public Debug dbgSym
public Debug dbgFlow
public Debug dbgAlias
public Debug dbgParse
public Debug dbgToHir
public Debug dbgToLir
public Debug dbgOpt1
public Debug dbgPara1
public final MachineParam machineParam
public SymRoot symRoot
protected java.lang.String machineName
protected java.lang.String languageName
コンストラクタの詳細 |
public IoRoot(java.io.File pSourceFile, java.io.PrintStream pPrintOut, java.io.PrintStream pObjectFile, java.io.PrintStream pMsgOut, CompileSpecification pSpec)
public IoRoot(java.io.File pSourceFile, java.io.PrintStream pPrintOut, java.io.PrintStream pObjectFile, java.io.PrintStream pMsgOut, CompileSpecification pSpec, java.lang.String pMachineName, java.lang.String pLanguageName)
メソッドの詳細 |
public CompileSpecification getCompileSpecification()
public java.io.File getSourceFile()
public java.lang.String getSourceFilePath()
public java.lang.String getLanguageName()
public java.lang.String getMachineName()
public void incrementMessageCount()
public int getMessageCount()
public void resetMessageCount()
public int addToTotalErrorCount(int pCount)
public static java.lang.String toStringObject(java.lang.Object pItem)
public static java.lang.String toStringObjectShort(java.lang.Object pItem)
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |