public final EnumDeclarationContext enumDeclaration() throws RecognitionException {
		EnumDeclarationContext _localctx = new EnumDeclarationContext(_ctx, getState());
		enterRule(_localctx, 22, RULE_enumDeclaration);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(326); match(ENUM);
			setState(327); match(Identifier);
			setState(330);
			_la = _input.LA(1);
			if (_la==IMPLEMENTS) {
				{
				setState(328); match(IMPLEMENTS);
				setState(329); typeList();
				}
			}

			setState(332); match(LBRACE);
			setState(334);
			_la = _input.LA(1);
			if (_la==Identifier || _la==AT) {
				{
				setState(333); enumConstants();
				}
			}

			setState(337);
			_la = _input.LA(1);
			if (_la==COMMA) {
				{
				setState(336); match(COMMA);
				}
			}

			setState(340);
			_la = _input.LA(1);
			if (_la==SEMI) {
				{
				setState(339); enumBodyDeclarations();
				}
			}

			setState(342); match(RBRACE);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}