CodeAnalysis
Class Stats

java.lang.Object
  extended by CodeAnalysis.Stats

public class Stats
extends java.lang.Object


Field Summary
static int CODE
           
static int COMMENTS
           
static int LINE_LENGTH
           
static int NUM_FILES
           
static int NUM_TYPES
           
static int TOTAL_LINES
           
static int WHITESPACE
           
 
Constructor Summary
Stats()
          Creates a new instance of Stats
 
Method Summary
 void add(int type, int val)
           
 void add(Stats stats)
           
 void clear()
           
 void display(javax.swing.JTextArea area)
           
 int get(int type)
           
static void writeCommaDelimHdrToFile(java.io.FileWriter file)
           
 void writeCommaDelimToFile(java.io.FileWriter file)
           
static void writeHTMLHdrToFile(java.io.FileWriter file, java.lang.String prefix)
           
 void writeHTMLToFile(java.io.FileWriter file, java.lang.String prefix)
           
static void writeTextHdrToFile(java.io.FileWriter file, boolean underline)
           
 void writeTextToFile(java.io.FileWriter file)
           
 void writeToFile(java.io.FileWriter file, java.lang.String fname)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINE_LENGTH

public static int LINE_LENGTH

TOTAL_LINES

public static int TOTAL_LINES

WHITESPACE

public static int WHITESPACE

CODE

public static int CODE

COMMENTS

public static int COMMENTS

NUM_FILES

public static int NUM_FILES

NUM_TYPES

public static int NUM_TYPES
Constructor Detail

Stats

public Stats()
Creates a new instance of Stats

Method Detail

clear

public void clear()

add

public void add(int type,
                int val)

add

public void add(Stats stats)

get

public int get(int type)

display

public void display(javax.swing.JTextArea area)

writeToFile

public void writeToFile(java.io.FileWriter file,
                        java.lang.String fname)
                 throws java.io.IOException
Throws:
java.io.IOException

writeTextHdrToFile

public static void writeTextHdrToFile(java.io.FileWriter file,
                                      boolean underline)
                               throws java.io.IOException
Throws:
java.io.IOException

writeTextToFile

public void writeTextToFile(java.io.FileWriter file)
                     throws java.io.IOException
Throws:
java.io.IOException

writeHTMLHdrToFile

public static void writeHTMLHdrToFile(java.io.FileWriter file,
                                      java.lang.String prefix)
                               throws java.io.IOException
Throws:
java.io.IOException

writeHTMLToFile

public void writeHTMLToFile(java.io.FileWriter file,
                            java.lang.String prefix)
                     throws java.io.IOException
Throws:
java.io.IOException

writeCommaDelimHdrToFile

public static void writeCommaDelimHdrToFile(java.io.FileWriter file)
                                     throws java.io.IOException
Throws:
java.io.IOException

writeCommaDelimToFile

public void writeCommaDelimToFile(java.io.FileWriter file)
                           throws java.io.IOException
Throws:
java.io.IOException