jfun.parsec
Interface PositionMap

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DefaultPositionMap

public interface PositionMap
extends java.io.Serializable

The interface to find the line number, column number of a certain position in the source.

Author:
Ben Yu Dec 12, 2004

Method Summary
 Pos getPos(int n)
          Get the line/column number of a position identified by an offset number.
 

Method Detail

getPos

Pos getPos(int n)
Get the line/column number of a position identified by an offset number.

Parameters:
n - the offset in the source, starting from 0.
Returns:
the Pos object.