1 package persistence.antlr; 2 3 8 9 14 class BlockContext { 15 AlternativeBlock block; int altNum; BlockEndElement blockEnd; 19 20 public void addAlternativeElement(AlternativeElement e) { 21 currentAlt().addElement(e); 22 } 23 24 public Alternative currentAlt() { 25 return (Alternative)block.alternatives.elementAt(altNum); 26 } 27 28 public AlternativeElement currentElement() { 29 return currentAlt().tail; 30 } 31 } 32 | Popular Tags |