Пример #1
0
 protected String _localVar(final EnumLiteralDeclaration it) {
   EnumRule _containingEnumRule = GrammarUtil.containingEnumRule(it);
   AbstractElement _alternatives = _containingEnumRule.getAlternatives();
   List<AbstractElement> _contentsAsList = this.contentsAsList(_alternatives);
   int _indexOf = _contentsAsList.indexOf(it);
   return ("enumLiteral_" + Integer.valueOf(_indexOf));
 }
Пример #2
0
 @Override
 public Boolean caseEnumRule(EnumRule object) {
   return doSwitch(object.getAlternatives());
 }