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