KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > persistence > antlr > AlternativeElement


1 package persistence.antlr;
2
3 /* ANTLR Translator Generator
4  * Project led by Terence Parr at http://www.jGuru.com
5  * Software rights: http://www.antlr.org/license.html
6  *
7  */

8
9 abstract class AlternativeElement extends GrammarElement {
10     AlternativeElement next;
11     protected int autoGenType = AUTO_GEN_NONE;
12
13     protected String JavaDoc enclosingRuleName;
14
15     public AlternativeElement(Grammar g) {
16         super(g);
17     }
18
19     public AlternativeElement(Grammar g, Token start) {
20         super(g, start);
21     }
22
23     public AlternativeElement(Grammar g, Token start, int autoGenType_) {
24         super(g, start);
25         autoGenType = autoGenType_;
26     }
27
28     public int getAutoGenType() {
29         return autoGenType;
30     }
31
32     public void setAutoGenType(int a) {
33         autoGenType = a;
34     }
35
36     public String JavaDoc getLabel() {
37         return null;
38     }
39
40     public void setLabel(String JavaDoc label) {
41     }
42 }
43
Popular Tags