common
Class LocationInFile

java.lang.Object
  extended by common.LocationInFile

public class LocationInFile
extends java.lang.Object

Represents a file name and a line number in that file.


Constructor Summary
LocationInFile(java.lang.String filename, int lineNum)
          Creates a new LocationInFile object with the given file name and line number.
 
Method Summary
 java.lang.String getFilename()
           
 int getLineNum()
           
 java.lang.String toString()
          Returns a string consisting of the file name, followed by a colon, followed by the line number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocationInFile

public LocationInFile(java.lang.String filename,
                      int lineNum)
Creates a new LocationInFile object with the given file name and line number. Line numbers are one-based.

Method Detail

getFilename

public java.lang.String getFilename()

getLineNum

public int getLineNum()

toString

public java.lang.String toString()
Returns a string consisting of the file name, followed by a colon, followed by the line number.

Overrides:
toString in class java.lang.Object