sg.edu.nus.util
Class CodeCounter

java.lang.Object
  extended by sg.edu.nus.util.CodeCounter

public class CodeCounter
extends java.lang.Object

Statistics the total number of lines of the source code in a specified directory.

Version:
1.0 2006-2-6
Author:
Xu Linhao

Field Summary
static long codeLines
          The number of lines of the source code.
 
Constructor Summary
CodeCounter(java.lang.String dir)
          Statistics the total number of lines of the source code in a specified directory.
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

codeLines

public static long codeLines
The number of lines of the source code.

Constructor Detail

CodeCounter

public CodeCounter(java.lang.String dir)
Statistics the total number of lines of the source code in a specified directory.

Parameters:
dir - the directory where the source code lies in
Method Detail

main

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