coins
クラス Debug

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

public class Debug
extends java.lang.Object

Debug:

  Debug class for printing debug information.
  Debug-print can be controlled by command option
  -coins:trace=xx1.n1/xx2.n2 ... where
  xx1, xx2, .. are one of
    Control  -- What phases and (principal) modules are executed
    HIR      -- HIR information
    Sym      -- Sym and symbol table information
    Flow     -- Control flow and data flow information
    Alias    -- Alias analysis information //##31
    Parse    -- C Parser information
    ToHir    -- C-AST (abstract syntax tree of C) to HIR transformation inf
    Opt1     -- HIR optimizer information
    Para1    -- Loop parallelizer information
  and n1, n2, ... are debug level of corresponding debug-control.
    0: no output, 1: major, ... 9: very much detailed information.
  Example:
    -coins:trace=HIR.1/Sym.1/Flow.2
  Note:
   There are other debug-print control items that do not use
   this Debug class. See TRACE of Registry.java.


コンストラクタの概要
Debug(IoRoot pIoRoot)
          Debug: Constructor to initiate all Debug objects.
Debug(IoRoot pIoRoot, java.lang.String pHeader, int pDebugLevel)
          Debug: Constructor for each Debug class.
 
メソッドの概要
 int getLevel()
           
 void initiate()
          Initialize debug control information.
 void print(int pLevel, java.lang.String pMessage)
          print without at-parameter: Print debug message if pLevel <= fDebugLevel at the end of current line (without starting new line).
 void print(int pLevel, java.lang.String pAt, java.lang.String pMessage)
          print with at-parameter: Print debug message if pLevel <= fDebugLevel after starting new line.
 void println(int pLevel)
          println: Line feed if pLevel <= fDebugLevel.
 void printObject(int pLevel, java.lang.String pHeader, java.lang.Object pObject)
          printObject: Print pObject.toString() if pObject is not null after pHeader.
 void setLevel(int pLevel)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Debug

public Debug(IoRoot pIoRoot)
Debug: Constructor to initiate all Debug objects.


Debug

public Debug(IoRoot pIoRoot,
             java.lang.String pHeader,
             int pDebugLevel)
Debug: Constructor for each Debug class. Record the header and debug level.

メソッドの詳細

initiate

public void initiate()
Initialize debug control information.


print

public void print(int pLevel,
                  java.lang.String pAt,
                  java.lang.String pMessage)
print with at-parameter: Print debug message if pLevel <= fDebugLevel after starting new line.

パラメータ:
pAt - : Shows where the message is issued (method name, etc.)

print

public void print(int pLevel,
                  java.lang.String pMessage)
print without at-parameter: Print debug message if pLevel <= fDebugLevel at the end of current line (without starting new line).


println

public void println(int pLevel)
println: Line feed if pLevel <= fDebugLevel.


printObject

public void printObject(int pLevel,
                        java.lang.String pHeader,
                        java.lang.Object pObject)
printObject: Print pObject.toString() if pObject is not null after pHeader. If pObject is null, print null. This will be useful to print without testing a parameter is null or not. This does not change the parameter to String if debug level is lower than pLevel.


setLevel

public void setLevel(int pLevel)

getLevel

public int getLevel()