KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > parsec > FromMyText


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 8, 2004
10  *
11  * Author Ben Yu
12  */

13 package jfun.parsec;
14
15 /**
16  * Used by class Terms to identify a MyToken object.
17  * @author Ben Yu
18  *
19  * Dec 8, 2004
20  */

21 public interface FromMyText<R> extends java.io.Serializable JavaDoc{
22   /**
23    * transform a text and a kind to an Object.
24    * @param from the starting index of this character token.
25    * @param len the length of this token.
26    * @param text the text string.
27    * @param kind the kind identifier.
28    * @return the object.
29    */

30   R fromMyText(int from, int len, String JavaDoc text, int kind);
31 }
32
Popular Tags