jfun.parsec

Class Pos

public final class Pos extends Object implements Serializable

Pos represents a position in the source.

Author: Ben Yu Dec 12, 2004

Constructor Summary
Pos(int lno, int cno)
Create a Pos object.
Method Summary
booleanequals(Object obj)
intgetColumnNo()
Get the column number.
intgetLineNo()
Get the line number.
inthashCode()
StringtoString()

Constructor Detail

Pos

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

Parameters: lno cno

Method Detail

equals

public boolean equals(Object obj)

getColumnNo

public int getColumnNo()
Get the column number.

Returns: Returns the cno.

getLineNo

public int getLineNo()
Get the line number.

Returns: Returns the lno.

hashCode

public int hashCode()

toString

public String toString()