1 package persistence.antlr; 2 3 8 9 abstract class AlternativeElement extends GrammarElement { 10 AlternativeElement next; 11 protected int autoGenType = AUTO_GEN_NONE; 12 13 protected String 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 getLabel() { 37 return null; 38 } 39 40 public void setLabel(String label) { 41 } 42 } 43 | Popular Tags |