|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.io.DirectoryTreeTraversal
org.acm.seguin.metrics.LCTraversal
public class LCTraversal
Counts the number of lines in a file
Constructor Summary | |
---|---|
LCTraversal(java.lang.String init)
Traverses a directory tree structure |
Method Summary | |
---|---|
protected boolean |
isTarget(java.io.File currentFile)
Determines if this file should be handled by this traversal |
static void |
main(java.lang.String[] args)
Main program |
void |
run()
Starts the tree traversal |
protected void |
visit(java.io.File currentFile)
Visits the current file |
Methods inherited from class org.acm.seguin.io.DirectoryTreeTraversal |
---|
arriveAtDir, isAllowed, leaveDir, traverse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LCTraversal(java.lang.String init)
init
- the initial directoryMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class DirectoryTreeTraversal
protected boolean isTarget(java.io.File currentFile)
isTarget
in class DirectoryTreeTraversal
currentFile
- the current file
protected void visit(java.io.File currentFile)
visit
in class DirectoryTreeTraversal
currentFile
- the current filepublic static void main(java.lang.String[] args)
args
- Command line arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |