Class FileInfo
java.lang.Object
Info
FileInfo
public class FileInfo
- extends Info
Fields inherited from class Info |
f |
Constructor Summary |
FileInfo(java.io.File f,
int lineCountTotal,
int lineCountNoComments)
|
Method Summary |
int |
getLineCountNoComments()
returns the number of lines in this file excluding comment lines |
int |
getLineCountTotal()
returns the total number of lines in this file |
void |
printStatistics()
displays statistics about this file
format: Class: name_of_class Total Lines: total_lines Lines Excluding Comments: lines_without_comments |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lineCountTotal
private int lineCountTotal
lineCountNoComments
private int lineCountNoComments
FileInfo
public FileInfo(java.io.File f,
int lineCountTotal,
int lineCountNoComments)
getLineCountTotal
public int getLineCountTotal()
- returns the total number of lines in this file
- Returns:
getLineCountNoComments
public int getLineCountNoComments()
- returns the number of lines in this file excluding comment lines
- Returns:
printStatistics
public void printStatistics()
- displays statistics about this file
format: Class: name_of_class Total Lines: total_lines Lines Excluding Comments: lines_without_comments
- Specified by:
printStatistics
in class Info