public final ObjectContext object() throws RecognitionException { ObjectContext _localctx = new ObjectContext(_ctx, getState()); enterRule(_localctx, 2, RULE_object); int _la; try { setState(27); switch (getInterpreter().adaptivePredict(_input, 2, _ctx)) { case 1: _localctx = new AnObjectContext(_localctx); enterOuterAlt(_localctx, 1); { setState(14); match(LCURLY); setState(15); pair(); setState(20); _errHandler.sync(this); _la = _input.LA(1); while (_la == T__0) { { { setState(16); match(T__0); setState(17); pair(); } } setState(22); _errHandler.sync(this); _la = _input.LA(1); } setState(23); match(T__1); } break; case 2: _localctx = new EmptyObjectContext(_localctx); enterOuterAlt(_localctx, 2); { setState(25); match(LCURLY); setState(26); match(T__1); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }