01: package antlr;
02:
03: /* ANTLR Translator Generator
04: * Project led by Terence Parr at http://www.cs.usfca.edu
05: * Software rights: http://www.antlr.org/license.html
06: */
07:
08: abstract class AlternativeElement extends GrammarElement {
09: AlternativeElement next;
10: protected int autoGenType = AUTO_GEN_NONE;
11:
12: protected String enclosingRuleName;
13:
14: public AlternativeElement(Grammar g) {
15: super (g);
16: }
17:
18: public AlternativeElement(Grammar g, Token start) {
19: super (g, start);
20: }
21:
22: public AlternativeElement(Grammar g, Token start, int autoGenType_) {
23: super (g, start);
24: autoGenType = autoGenType_;
25: }
26:
27: public int getAutoGenType() {
28: return autoGenType;
29: }
30:
31: public void setAutoGenType(int a) {
32: autoGenType = a;
33: }
34:
35: public String getLabel() {
36: return null;
37: }
38:
39: public void setLabel(String label) {
40: }
41: }
|