at.dms.kjc.sir.statespace
Class LinearPrinter

java.lang.Object
  extended by at.dms.kjc.sir.statespace.LinearPrinter

public class LinearPrinter
extends Object

Control point for printing messages generated by the LinearAnalysis pass. The purpose of this class is to have an easy way to leave in statements that generate verbose output but be able to disable the output from appearing if not requested (via the --debug compiler flag).


Constructor Summary
LinearPrinter()
           
 
Method Summary
static boolean getOutput()
          Return flag status.
static void print(String message)
          Prints message to stderr if flag is set to true.
static void println(String message)
          Prints message to stderr if flag is set to true.
static void setOutput(boolean outFlag)
          Set output flag status.
static void warn(String message)
          Prints message with WARNING: prefix to stderr if flag is set to true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearPrinter

public LinearPrinter()
Method Detail

getOutput

public static boolean getOutput()
Return flag status.


setOutput

public static void setOutput(boolean outFlag)
Set output flag status.


println

public static void println(String message)
Prints message to stderr if flag is set to true.


print

public static void print(String message)
Prints message to stderr if flag is set to true.


warn

public static void warn(String message)
Prints message with WARNING: prefix to stderr if flag is set to true.