KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > parsec > PositionMap


1 /*****************************************************************************
2  * Copyright (C) Zephyr Business Solutions Corp. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  *****************************************************************************/

8 /*
9  * Created on Dec 12, 2004
10  *
11  * Author Ben Yu
12  */

13 package jfun.parsec;
14
15
16 /**
17  * The interface to find the line number,
18  * column number of a certain position in the source.
19  *
20  * @author Ben Yu
21  *
22  * Dec 12, 2004
23  */

24 public interface PositionMap extends java.io.Serializable JavaDoc{
25   /**
26    * Get the line/column number of a position identified by an offset number.
27    * @param n the offset in the source, starting from 0.
28    * @return the Pos object.
29    */

30   Pos getPos(int n);
31 }
32
Popular Tags