Simian - Similarity Analyser v2.3.33

com.harukizaemon.simian
Class SourceFile

java.lang.Object
  extended by com.harukizaemon.simian.SourceFile

public final class SourceFile
extends java.lang.Object

Represents a source file that was processed.

Version:
$Id: SourceFile.java 3165 2008-02-29 22:49:22Z haruki_zaemon $
Author:
Simon Harris

Constructor Summary
SourceFile(java.lang.String filename)
           
SourceFile(java.lang.String filename, java.lang.String language)
           
 
Method Summary
 java.lang.String getFilename()
          Obtains the name of the file.
 int getRawLineCount()
          Obtains the number of lines in the file including comments, ignored lines, etc.
 int getSignificantLineCount()
          Obtains the number of lines in the file excluding comments, ignored lines, etc.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceFile

public SourceFile(java.lang.String filename)

SourceFile

public SourceFile(java.lang.String filename,
                  java.lang.String language)
Method Detail

getFilename

public java.lang.String getFilename()
Obtains the name of the file.

Returns:
The file name.

getRawLineCount

public int getRawLineCount()
Obtains the number of lines in the file including comments, ignored lines, etc.

Returns:
The raw line count.

getSignificantLineCount

public int getSignificantLineCount()
Obtains the number of lines in the file excluding comments, ignored lines, etc.

Returns:
The significant line count.

Simian - Similarity Analyser v2.3.33

Copyright (c) 2003-2011 Simon Harris. All rights reserved.