com.harukizaemon.simian

## Class SourceFile

- java.lang.Object
- - 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

    Constructors
    Constructor and Description
    `SourceFile(java.lang.String filename)`
    `SourceFile(java.lang.String filename, java.lang.String language)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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.

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