Utils
Class Debugger

java.lang.Object
  |
  +--Utils.Debugger

public class Debugger
extends java.lang.Object

Class that helps debugging, indenting all the output traces

Author:
Fabien Flacher (/08/01)

Field Summary
protected static java.util.Hashtable myHashtable
          Hashtable used by of the Debugger
protected static int myIndent
          Indentation value of the Debugger
 
Constructor Summary
Debugger(int myI)
          Construct the Debugger
 
Method Summary
static void addCall(java.lang.String packageName, java.lang.String className, java.lang.String methodName)
          f the Debugger
static void addIndent()
          Add 1 to the Indentation value of the Debugger
static java.util.Hashtable getHashtable()
          Get the Hashtable used by of the Debugger
static int getIndent()
          Get the Indentation value of the Debugger
static void init()
          Initialize the indentation value of the Debugger
static void main(java.lang.String[] args)
          A test routine
static java.lang.String newLine()
          Return a new line with the indentation value of the Debugger
static java.lang.String newTab()
          Return a String with the indentation value of the Debugger
static java.lang.String newTabFirst()
          Return a String with the indentation value of the Debugger
static java.lang.String printHashtableArrayVals(java.util.Hashtable[] hashtable)
          Return a String describing the object contained by the Hashtable
static java.lang.String printHashtableComponentNames(java.util.Hashtable hashtable)
          Return a String describing the object contained by the Hashtable
static java.lang.String printStringArray(java.lang.String[] stringA)
          Return a String describing String Array
static java.lang.String printVectorComponentNames(java.util.Vector vector)
          Return a String describing the object contained by the Hashtable
static void saveNumerosityCall()
          Debugger
private static void setHashtable(java.util.Hashtable hashtable)
          Set the Hashtable used by of the Debugger
private static void setIndent(int myI)
          Set the Indentation value of the Debugger
static void subIndent()
          Sub 1 the Indentation value of the Debugger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myHashtable

protected static java.util.Hashtable myHashtable
Hashtable used by of the Debugger


myIndent

protected static int myIndent
Indentation value of the Debugger

Constructor Detail

Debugger

public Debugger(int myI)
Construct the Debugger

Parameters:
myI - Indentation value of the Debugger
Method Detail

setHashtable

private static final void setHashtable(java.util.Hashtable hashtable)
Set the Hashtable used by of the Debugger


getHashtable

public static final java.util.Hashtable getHashtable()
Get the Hashtable used by of the Debugger


setIndent

private static final void setIndent(int myI)
Set the Indentation value of the Debugger


getIndent

public static final int getIndent()
Get the Indentation value of the Debugger


addIndent

public static final void addIndent()
Add 1 to the Indentation value of the Debugger


subIndent

public static final void subIndent()
Sub 1 the Indentation value of the Debugger


newLine

public static final java.lang.String newLine()
Return a new line with the indentation value of the Debugger


newTab

public static final java.lang.String newTab()
Return a String with the indentation value of the Debugger


newTabFirst

public static final java.lang.String newTabFirst()
Return a String with the indentation value of the Debugger


printHashtableComponentNames

public static final java.lang.String printHashtableComponentNames(java.util.Hashtable hashtable)
Return a String describing the object contained by the Hashtable


printHashtableArrayVals

public static final java.lang.String printHashtableArrayVals(java.util.Hashtable[] hashtable)
Return a String describing the object contained by the Hashtable


printVectorComponentNames

public static final java.lang.String printVectorComponentNames(java.util.Vector vector)
Return a String describing the object contained by the Hashtable


printStringArray

public static final java.lang.String printStringArray(java.lang.String[] stringA)
Return a String describing String Array


init

public static final void init()
Initialize the indentation value of the Debugger


addCall

public static final void addCall(java.lang.String packageName,
                                 java.lang.String className,
                                 java.lang.String methodName)
f the Debugger


saveNumerosityCall

public static void saveNumerosityCall()
Debugger


main

public static void main(java.lang.String[] args)
A test routine