to.etc.lexer
Class SourceLocation

java.lang.Object
  extended by to.etc.lexer.SourceLocation

public class SourceLocation
extends java.lang.Object

This defines a source location for some parsed construct. It can be obtained for a token from the lexer if needed. Created on Sep 13, 2004

Author:
jal

Constructor Summary
SourceLocation(java.lang.Object src, int line, int col)
           
SourceLocation(ReaderScannerBase rt)
           
 
Method Summary
 int getCol()
           
 int getLine()
           
 java.lang.Object getSrc()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceLocation

public SourceLocation(java.lang.Object src,
                      int line,
                      int col)

SourceLocation

public SourceLocation(ReaderScannerBase rt)
Method Detail

getCol

public int getCol()
Returns:
Returns the col.

getLine

public int getLine()
Returns:
Returns the line.

getSrc

public java.lang.Object getSrc()
Returns:
Returns the src.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object