coins
クラス IoRoot

java.lang.Object
  |
  +--coins.IoRoot

public class IoRoot
extends java.lang.Object

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
 

フィールドの詳細

printOut

public final java.io.PrintStream printOut
Input/output file


objectFile

public final java.io.PrintStream objectFile
Input/output file


msgOut

public final java.io.PrintStream msgOut
Input/output file


msgNote

public Message msgNote
Message control object.


msgWarning

public Message msgWarning
Message control object.


msgRecovered

public Message msgRecovered
Message control object.


msgError

public Message msgError
Message control object.


msgFatal

public Message msgFatal
Message control object.


dbgControl

public Debug dbgControl
Debug control object.


dbgHir

public Debug dbgHir
Debug control object.


dbgSym

public Debug dbgSym
Debug control object.


dbgFlow

public Debug dbgFlow
Debug control object.


dbgAlias

public Debug dbgAlias
Debug control object.


dbgParse

public Debug dbgParse
Debug control object.


dbgToHir

public Debug dbgToHir
Debug control object.


dbgToLir

public Debug dbgToLir
Debug control object.


dbgOpt1

public Debug dbgOpt1
Debug control object.


dbgPara1

public Debug dbgPara1
Debug control object.


machineParam

public final MachineParam machineParam
Reference to MachineParam


symRoot

public SymRoot symRoot
Reference to the SymRoot object used to access Sym information and to invoke Sym methods.


machineName

protected java.lang.String machineName

languageName

protected java.lang.String languageName
コンストラクタの詳細

IoRoot

public IoRoot(java.io.File pSourceFile,
              java.io.PrintStream pPrintOut,
              java.io.PrintStream pObjectFile,
              java.io.PrintStream pMsgOut,
              CompileSpecification pSpec)

IoRoot

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)
メソッドの詳細

getCompileSpecification

public CompileSpecification getCompileSpecification()
Get the CompilerSpecification currently active.


getSourceFile

public java.io.File getSourceFile()
Get the source file


getSourceFilePath

public java.lang.String getSourceFilePath()
Get absolute path of the source file


getLanguageName

public java.lang.String getLanguageName()

getMachineName

public java.lang.String getMachineName()

incrementMessageCount

public void incrementMessageCount()
Increment the message counter.


getMessageCount

public int getMessageCount()
Get the value of the message counter.


resetMessageCount

public void resetMessageCount()
Reset the message counter.


addToTotalErrorCount

public int addToTotalErrorCount(int pCount)
Add pCount to the total-message-counter.


toStringObject

public static java.lang.String toStringObject(java.lang.Object pItem)
toStringObject: Get the string image of given object pItem. If pItem is null, give "null". This method may be usefull to get string image of objects that might be null.

戻り値:
the string image of the object or "null" if the object is null.

toStringObjectShort

public static java.lang.String toStringObjectShort(java.lang.Object pItem)
toStringObjectShort: Get the short string image of given object pItem.

戻り値:
the short string image of the object or "null" if the object is null.