KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > parsec > WordsData


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

13 package jfun.parsec;
14
15
16 /**
17  * @author Ben Yu
18  *
19  * Dec 19, 2004
20  */

21 final class WordsData implements java.io.Serializable JavaDoc{
22   private final Map<String JavaDoc, Object JavaDoc> toks;
23   private final Parser<Tok>[] lexers;
24   
25   /**
26    * @param parsers
27    * @param lexers
28    */

29   WordsData(final Map<String JavaDoc, Object JavaDoc> toks, final Parser<Tok>[] lexers) {
30     this.toks = toks;
31     this.lexers = lexers;
32   }
33   /**
34    * @return Returns the lexers.
35    */

36   Parser<Tok>[] getLexers() {
37     return lexers;
38   }
39   /**
40    * @return Returns the token objects.
41    */

42   Map<String JavaDoc, Object JavaDoc> getTokens() {
43     return toks;
44   }
45 }
46
Popular Tags