public final TypeDeclarationContext typeDeclaration() throws RecognitionException {
		TypeDeclarationContext _localctx = new TypeDeclarationContext(_ctx, getState());
		enterRule(_localctx, 6, RULE_typeDeclaration);
		try {
			setState(234);
			switch (_input.LA(1)) {
			case 1:
			case 11:
			case 16:
			case 24:
			case 30:
			case 33:
			case 39:
			case 41:
			case 50:
			case 58:
			case 62:
			case 66:
			case 73:
			case 76:
			case ENUM:
				enterOuterAlt(_localctx, 1);
				{
				setState(232); classOrInterfaceDeclaration();
				}
				break;
			case 77:
				enterOuterAlt(_localctx, 2);
				{
				setState(233); match(77);
				}
				break;
			default:
				throw new NoViableAltException(this);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}