to.etc.lexer
Class SourceLocation
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SourceLocation
public SourceLocation(java.lang.Object src,
int line,
int col)
SourceLocation
public SourceLocation(ReaderScannerBase rt)
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