KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > javacc > jjtree > JJTreeGlobals


1 /*
2  * Copyright © 2002 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
3  * California 95054, U.S.A. All rights reserved. Sun Microsystems, Inc. has
4  * intellectual property rights relating to technology embodied in the product
5  * that is described in this document. In particular, and without limitation,
6  * these intellectual property rights may include one or more of the U.S.
7  * patents listed at http://www.sun.com/patents and one or more additional
8  * patents or pending patent applications in the U.S. and in other countries.
9  * U.S. Government Rights - Commercial software. Government users are subject
10  * to the Sun Microsystems, Inc. standard license agreement and applicable
11  * provisions of the FAR and its supplements. Use is subject to license terms.
12  * Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered
13  * trademarks of Sun Microsystems, Inc. in the U.S. and other countries. This
14  * product is covered and controlled by U.S. Export Control laws and may be
15  * subject to the export or import laws in other countries. Nuclear, missile,
16  * chemical biological weapons or nuclear maritime end uses or end users,
17  * whether direct or indirect, are strictly prohibited. Export or reexport
18  * to countries subject to U.S. embargo or to entities identified on U.S.
19  * export exclusion lists, including, but not limited to, the denied persons
20  * and specially designated nationals lists is strictly prohibited.
21  */

22
23 package org.javacc.jjtree;
24
25 import java.util.Hashtable JavaDoc;
26 import java.util.Vector JavaDoc;
27
28 class JJTreeGlobals
29 {
30
31   /**
32    * This hashtable stores the JJTree options to distinguish them
33    * from JavaCC options. The values are not important, only the
34    * keys.
35    */

36   static Hashtable JavaDoc jjtreeOptions = new Hashtable JavaDoc();
37
38   static Vector JavaDoc toolList = new Vector JavaDoc();
39
40   /**
41    * Use this like className.
42    **/

43   public static String JavaDoc parserName;
44
45   /**
46    * The package that the parser lives in. If the grammar doesn't
47    * specify a package it is the empty string.
48    **/

49   public static String JavaDoc packageName = "";
50
51   /** The <code>implements</code> token of the parser class. If the
52    * parser doesn't have one then it is the first "{" of the parser
53    * class body.
54    **/

55   public static Token parserImplements;
56
57   /** The first token of the parser class body (the <code>{</code>).
58    * The JJTree state is inserted after this token.
59    **/

60   public static Token parserClassBodyStart;
61
62   /**
63    * This is mapping from production names to ASTProduction objects.
64    **/

65   static Hashtable JavaDoc productions = new Hashtable JavaDoc();
66
67 }
68
69 /*end*/
70
Popular Tags