jfun.parsec
Class Pos

java.lang.Object
  extended by jfun.parsec.Pos
All Implemented Interfaces:
java.io.Serializable

public final class Pos
extends java.lang.Object
implements java.io.Serializable

Pos represents a position in the source.

Author:
Ben Yu Dec 12, 2004
See Also:
Serialized Form

Constructor Summary
Pos(int lno, int cno)
          Create a Pos object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getColumnNo()
          Get the column number.
 int getLineNo()
          Get the line number.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pos

public Pos(int lno,
           int cno)
Create a Pos object.

Parameters:
lno -
cno -
Method Detail

getColumnNo

public int getColumnNo()
Get the column number.

Returns:
Returns the cno.

getLineNo

public int getLineNo()
Get the line number.

Returns:
Returns the lno.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

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