agg.attribute.impl
Class AttrSession

java.lang.Object
  extended by agg.attribute.impl.VerboseControl
      extended by agg.attribute.impl.AttrSession

public class AttrSession
extends VerboseControl

Output to a log window and other session-global methods.


Field Summary
protected static java.lang.String osArch
          System architecture.
protected static java.lang.String osName
          Operating system name.
protected static java.io.ByteArrayOutputStream redirectStream
          Redirection stream to use instead of System.out
protected static java.io.PrintStream stdout
          Temporary storage of the "System.out" stream, for the time of redirection.
protected static boolean stdoutBeginOfLine
          Flag indicating if caret at the beginning of stdout line.
protected static byte stdoutIndentCount
          Stdout indentation count.
 
Fields inherited from class agg.attribute.impl.VerboseControl
logCond, logContext, logContextOfInstances, logCreation, logEvent, logFileIO, logJexParser, logMapping, logParseTree, logRemoveValue, logSetValue, logShowContextView, logShowLogWindow, logTrace, logVar, logWarning
 
Constructor Summary
AttrSession()
          Initializing static state.
 
Method Summary
static void errPrintln(boolean logTopic, java.lang.String msg)
          Prints the specified message to the error view if the boolean value is true.
static void errPrintln(java.lang.String msg)
          Prints the specified message to the error view.
protected static void grabStdOutput()
          Beginning redirection of standard output.
static boolean isWin32()
          System queries.
static void logAttrContext(AttrContext context, java.lang.String msg)
          prints detailed information about an AttrContext.
static void logAttrContext(boolean topic, AttrContext context, java.lang.String msg)
          prints detailed information about an AttrContext.
static void logAttrInstance(AttrInstance instance, java.lang.String msg)
          prints detailed information about an AttrInstance.
static void logAttrInstance(boolean topic, AttrInstance instance, java.lang.String msg)
          prints detailed information about an AttrInstance.
static void logPrintln(boolean logTopic, java.lang.String msg)
          Prints the specified message to the log view if the boolean value is true.
static void logPrintln(java.lang.String msg)
          Prints the specified message to the log view.
protected static void releaseStdOutput()
          Ending redirection of standard output and flushing the data to the logging window.
static void stdoutPrint(boolean debugTopic, java.lang.String msg)
          Prints the specified message to stdout if the boolean value is true.
static void stdoutPrintIndented(boolean debugTopic, java.lang.String msg)
          Prints the specified message indented to stdout if the boolean value is true.
protected static void stdoutPrintIndented(java.lang.String msg)
          Prints an indented line with the specified message.
static void stdoutPrintln(boolean debugTopic, java.lang.String msg)
          Prints a line with the specified message to stdout if the boolean value is true.
static void stdoutPrintOnEnter(boolean debugTopic, java.lang.String msg)
          Prints the specified message to stdout if the boolean value is true; indentation is incremented.
static void stdoutPrintOnExit(boolean debugTopic, java.lang.String msg)
          Prints the specified message to stdout if the boolean value is true; indentation is decremented.
static void warn(java.lang.Object sender, java.lang.String msg)
           
static void warn(java.lang.Object sender, java.lang.String msg, boolean showStack)
           
static void warn(java.lang.Object sender, java.lang.String msg, java.lang.Exception ex)
           
static void warn(java.lang.Object sender, java.lang.String msg, java.lang.Exception ex, boolean showStack)
           
 
Methods inherited from class agg.attribute.impl.VerboseControl
setDebug, setDebugContext, setDebugEvent, setDebugExpr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

osName

protected static java.lang.String osName
Operating system name.


osArch

protected static java.lang.String osArch
System architecture.


stdoutIndentCount

protected static byte stdoutIndentCount
Stdout indentation count.


stdoutBeginOfLine

protected static boolean stdoutBeginOfLine
Flag indicating if caret at the beginning of stdout line.


redirectStream

protected static java.io.ByteArrayOutputStream redirectStream
Redirection stream to use instead of System.out


stdout

protected static java.io.PrintStream stdout
Temporary storage of the "System.out" stream, for the time of redirection.

Constructor Detail

AttrSession

public AttrSession()
Initializing static state.

Method Detail

isWin32

public static boolean isWin32()
System queries.


logPrintln

public static void logPrintln(java.lang.String msg)
Prints the specified message to the log view.


errPrintln

public static void errPrintln(java.lang.String msg)
Prints the specified message to the error view.


logPrintln

public static void logPrintln(boolean logTopic,
                              java.lang.String msg)
Prints the specified message to the log view if the boolean value is true.


errPrintln

public static void errPrintln(boolean logTopic,
                              java.lang.String msg)
Prints the specified message to the error view if the boolean value is true.


warn

public static void warn(java.lang.Object sender,
                        java.lang.String msg)

warn

public static void warn(java.lang.Object sender,
                        java.lang.String msg,
                        boolean showStack)

warn

public static void warn(java.lang.Object sender,
                        java.lang.String msg,
                        java.lang.Exception ex)

warn

public static void warn(java.lang.Object sender,
                        java.lang.String msg,
                        java.lang.Exception ex,
                        boolean showStack)

stdoutPrint

public static void stdoutPrint(boolean debugTopic,
                               java.lang.String msg)
Prints the specified message to stdout if the boolean value is true.


stdoutPrintln

public static void stdoutPrintln(boolean debugTopic,
                                 java.lang.String msg)
Prints a line with the specified message to stdout if the boolean value is true.


stdoutPrintOnEnter

public static void stdoutPrintOnEnter(boolean debugTopic,
                                      java.lang.String msg)
Prints the specified message to stdout if the boolean value is true; indentation is incremented.


stdoutPrintOnExit

public static void stdoutPrintOnExit(boolean debugTopic,
                                     java.lang.String msg)
Prints the specified message to stdout if the boolean value is true; indentation is decremented.


stdoutPrintIndented

public static void stdoutPrintIndented(boolean debugTopic,
                                       java.lang.String msg)
Prints the specified message indented to stdout if the boolean value is true.


stdoutPrintIndented

protected static void stdoutPrintIndented(java.lang.String msg)
Prints an indented line with the specified message.


grabStdOutput

protected static void grabStdOutput()
Beginning redirection of standard output.


releaseStdOutput

protected static void releaseStdOutput()
Ending redirection of standard output and flushing the data to the logging window.


logAttrInstance

public static void logAttrInstance(AttrInstance instance,
                                   java.lang.String msg)
prints detailed information about an AttrInstance. Additionally with a short message.


logAttrInstance

public static void logAttrInstance(boolean topic,
                                   AttrInstance instance,
                                   java.lang.String msg)
prints detailed information about an AttrInstance. Additionally with a short message. If the boolean value is true.


logAttrContext

public static void logAttrContext(AttrContext context,
                                  java.lang.String msg)
prints detailed information about an AttrContext. Additionally with a short message.


logAttrContext

public static void logAttrContext(boolean topic,
                                  AttrContext context,
                                  java.lang.String msg)
prints detailed information about an AttrContext. Additionally with a short message. If the boolean value is true.