JsonReader.smali 96 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755
  1. .class public Lcom/google/gson/stream/JsonReader;
  2. .super Ljava/lang/Object;
  3. .source ""
  4. # interfaces
  5. .implements Ljava/io/Closeable;
  6. # static fields
  7. .field private static final MIN_INCOMPLETE_INTEGER:J = -0xcccccccccccccccL
  8. .field private static final NON_EXECUTE_PREFIX:[C
  9. .field private static final NUMBER_CHAR_DECIMAL:I = 0x3
  10. .field private static final NUMBER_CHAR_DIGIT:I = 0x2
  11. .field private static final NUMBER_CHAR_EXP_DIGIT:I = 0x7
  12. .field private static final NUMBER_CHAR_EXP_E:I = 0x5
  13. .field private static final NUMBER_CHAR_EXP_SIGN:I = 0x6
  14. .field private static final NUMBER_CHAR_FRACTION_DIGIT:I = 0x4
  15. .field private static final NUMBER_CHAR_NONE:I = 0x0
  16. .field private static final NUMBER_CHAR_SIGN:I = 0x1
  17. .field private static final PEEKED_BEGIN_ARRAY:I = 0x3
  18. .field private static final PEEKED_BEGIN_OBJECT:I = 0x1
  19. .field private static final PEEKED_BUFFERED:I = 0xb
  20. .field private static final PEEKED_DOUBLE_QUOTED:I = 0x9
  21. .field private static final PEEKED_DOUBLE_QUOTED_NAME:I = 0xd
  22. .field private static final PEEKED_END_ARRAY:I = 0x4
  23. .field private static final PEEKED_END_OBJECT:I = 0x2
  24. .field private static final PEEKED_EOF:I = 0x11
  25. .field private static final PEEKED_FALSE:I = 0x6
  26. .field private static final PEEKED_LONG:I = 0xf
  27. .field private static final PEEKED_NONE:I = 0x0
  28. .field private static final PEEKED_NULL:I = 0x7
  29. .field private static final PEEKED_NUMBER:I = 0x10
  30. .field private static final PEEKED_SINGLE_QUOTED:I = 0x8
  31. .field private static final PEEKED_SINGLE_QUOTED_NAME:I = 0xc
  32. .field private static final PEEKED_TRUE:I = 0x5
  33. .field private static final PEEKED_UNQUOTED:I = 0xa
  34. .field private static final PEEKED_UNQUOTED_NAME:I = 0xe
  35. # instance fields
  36. .field private final buffer:[C
  37. .field private final in:Ljava/io/Reader;
  38. .field private lenient:Z
  39. .field private limit:I
  40. .field private lineNumber:I
  41. .field private lineStart:I
  42. .field private pathIndices:[I
  43. .field private pathNames:[Ljava/lang/String;
  44. .field peeked:I
  45. .field private peekedLong:J
  46. .field private peekedNumberLength:I
  47. .field private peekedString:Ljava/lang/String;
  48. .field private pos:I
  49. .field private stack:[I
  50. .field private stackSize:I
  51. # direct methods
  52. .method static constructor <clinit>()V
  53. .locals 1
  54. const-string v0, ")]}\'\n"
  55. invoke-virtual {v0}, Ljava/lang/String;->toCharArray()[C
  56. move-result-object v0
  57. sput-object v0, Lcom/google/gson/stream/JsonReader;->NON_EXECUTE_PREFIX:[C
  58. new-instance v0, Lcom/google/gson/stream/JsonReader$1;
  59. invoke-direct {v0}, Lcom/google/gson/stream/JsonReader$1;-><init>()V
  60. sput-object v0, Lcom/google/gson/internal/JsonReaderInternalAccess;->INSTANCE:Lcom/google/gson/internal/JsonReaderInternalAccess;
  61. return-void
  62. .end method
  63. .method public constructor <init>(Ljava/io/Reader;)V
  64. .locals 4
  65. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  66. const/4 v0, 0x0
  67. iput-boolean v0, p0, Lcom/google/gson/stream/JsonReader;->lenient:Z
  68. const/16 v1, 0x400
  69. new-array v1, v1, [C
  70. iput-object v1, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  71. iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  72. iput v0, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  73. iput v0, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
  74. iput v0, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
  75. iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  76. const/16 v1, 0x20
  77. new-array v2, v1, [I
  78. iput-object v2, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
  79. iput v0, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  80. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
  81. iget v2, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  82. add-int/lit8 v3, v2, 0x1
  83. iput v3, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  84. const/4 v3, 0x6
  85. aput v3, v0, v2
  86. new-array v0, v1, [Ljava/lang/String;
  87. iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathNames:[Ljava/lang/String;
  88. new-array v0, v1, [I
  89. iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  90. if-eqz p1, :cond_0
  91. iput-object p1, p0, Lcom/google/gson/stream/JsonReader;->in:Ljava/io/Reader;
  92. return-void
  93. :cond_0
  94. new-instance p1, Ljava/lang/NullPointerException;
  95. const-string v0, "in == null"
  96. invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
  97. throw p1
  98. .end method
  99. .method private checkLenient()V
  100. .locals 1
  101. .annotation system Ldalvik/annotation/Throws;
  102. value = {
  103. Ljava/io/IOException;
  104. }
  105. .end annotation
  106. iget-boolean v0, p0, Lcom/google/gson/stream/JsonReader;->lenient:Z
  107. if-eqz v0, :cond_0
  108. return-void
  109. :cond_0
  110. const-string v0, "Use JsonReader.setLenient(true) to accept malformed JSON"
  111. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
  112. move-result-object v0
  113. throw v0
  114. .end method
  115. .method private consumeNonExecutePrefix()V
  116. .locals 4
  117. .annotation system Ldalvik/annotation/Throws;
  118. value = {
  119. Ljava/io/IOException;
  120. }
  121. .end annotation
  122. const/4 v0, 0x1
  123. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->nextNonWhitespace(Z)I
  124. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  125. sub-int/2addr v1, v0
  126. iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  127. iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  128. sget-object v1, Lcom/google/gson/stream/JsonReader;->NON_EXECUTE_PREFIX:[C
  129. array-length v2, v1
  130. add-int/2addr v0, v2
  131. iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  132. if-le v0, v2, :cond_0
  133. array-length v0, v1
  134. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
  135. move-result v0
  136. if-nez v0, :cond_0
  137. return-void
  138. :cond_0
  139. const/4 v0, 0x0
  140. :goto_0
  141. sget-object v1, Lcom/google/gson/stream/JsonReader;->NON_EXECUTE_PREFIX:[C
  142. array-length v2, v1
  143. if-ge v0, v2, :cond_2
  144. iget-object v2, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  145. iget v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  146. add-int/2addr v3, v0
  147. aget-char v2, v2, v3
  148. aget-char v1, v1, v0
  149. if-eq v2, v1, :cond_1
  150. return-void
  151. :cond_1
  152. add-int/lit8 v0, v0, 0x1
  153. goto :goto_0
  154. :cond_2
  155. iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  156. array-length v1, v1
  157. add-int/2addr v0, v1
  158. iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  159. return-void
  160. .end method
  161. .method private fillBuffer(I)Z
  162. .locals 6
  163. .annotation system Ldalvik/annotation/Throws;
  164. value = {
  165. Ljava/io/IOException;
  166. }
  167. .end annotation
  168. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  169. iget v1, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
  170. iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  171. sub-int/2addr v1, v2
  172. iput v1, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
  173. iget v1, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  174. const/4 v3, 0x0
  175. if-eq v1, v2, :cond_0
  176. sub-int/2addr v1, v2
  177. iput v1, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  178. iget v1, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  179. invoke-static {v0, v2, v0, v3, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
  180. goto :goto_0
  181. :cond_0
  182. iput v3, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  183. :goto_0
  184. iput v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  185. :cond_1
  186. iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->in:Ljava/io/Reader;
  187. iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  188. array-length v4, v0
  189. sub-int/2addr v4, v2
  190. invoke-virtual {v1, v0, v2, v4}, Ljava/io/Reader;->read([CII)I
  191. move-result v1
  192. const/4 v2, -0x1
  193. if-eq v1, v2, :cond_3
  194. iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  195. add-int/2addr v2, v1
  196. iput v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  197. iget v1, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
  198. const/4 v2, 0x1
  199. if-nez v1, :cond_2
  200. iget v1, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
  201. if-nez v1, :cond_2
  202. iget v4, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  203. if-lez v4, :cond_2
  204. aget-char v4, v0, v3
  205. const v5, 0xfeff
  206. if-ne v4, v5, :cond_2
  207. iget v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  208. add-int/2addr v4, v2
  209. iput v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  210. add-int/lit8 v1, v1, 0x1
  211. iput v1, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
  212. add-int/lit8 p1, p1, 0x1
  213. :cond_2
  214. iget v1, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  215. if-lt v1, p1, :cond_1
  216. return v2
  217. :cond_3
  218. return v3
  219. .end method
  220. .method private isLiteral(C)Z
  221. .locals 1
  222. .annotation system Ldalvik/annotation/Throws;
  223. value = {
  224. Ljava/io/IOException;
  225. }
  226. .end annotation
  227. const/16 v0, 0x9
  228. if-eq p1, v0, :cond_1
  229. const/16 v0, 0xa
  230. if-eq p1, v0, :cond_1
  231. const/16 v0, 0xc
  232. if-eq p1, v0, :cond_1
  233. const/16 v0, 0xd
  234. if-eq p1, v0, :cond_1
  235. const/16 v0, 0x20
  236. if-eq p1, v0, :cond_1
  237. const/16 v0, 0x23
  238. if-eq p1, v0, :cond_0
  239. const/16 v0, 0x2c
  240. if-eq p1, v0, :cond_1
  241. const/16 v0, 0x2f
  242. if-eq p1, v0, :cond_0
  243. const/16 v0, 0x3d
  244. if-eq p1, v0, :cond_0
  245. const/16 v0, 0x7b
  246. if-eq p1, v0, :cond_1
  247. const/16 v0, 0x7d
  248. if-eq p1, v0, :cond_1
  249. const/16 v0, 0x3a
  250. if-eq p1, v0, :cond_1
  251. const/16 v0, 0x3b
  252. if-eq p1, v0, :cond_0
  253. packed-switch p1, :pswitch_data_0
  254. const/4 p1, 0x1
  255. return p1
  256. :cond_0
  257. :pswitch_0
  258. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
  259. :cond_1
  260. :pswitch_1
  261. const/4 p1, 0x0
  262. return p1
  263. :pswitch_data_0
  264. .packed-switch 0x5b
  265. :pswitch_1
  266. :pswitch_0
  267. :pswitch_1
  268. .end packed-switch
  269. .end method
  270. .method private nextNonWhitespace(Z)I
  271. .locals 7
  272. .annotation system Ldalvik/annotation/Throws;
  273. value = {
  274. Ljava/io/IOException;
  275. }
  276. .end annotation
  277. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  278. :goto_0
  279. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  280. :goto_1
  281. iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  282. :goto_2
  283. const/4 v3, 0x1
  284. if-ne v1, v2, :cond_2
  285. iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  286. invoke-direct {p0, v3}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
  287. move-result v1
  288. if-nez v1, :cond_1
  289. if-nez p1, :cond_0
  290. const/4 p1, -0x1
  291. return p1
  292. :cond_0
  293. new-instance p1, Ljava/io/EOFException;
  294. new-instance v0, Ljava/lang/StringBuilder;
  295. invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
  296. const-string v1, "End of input"
  297. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  298. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
  299. move-result-object v1
  300. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  301. invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  302. move-result-object v0
  303. invoke-direct {p1, v0}, Ljava/io/EOFException;-><init>(Ljava/lang/String;)V
  304. throw p1
  305. :cond_1
  306. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  307. iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  308. :cond_2
  309. add-int/lit8 v4, v1, 0x1
  310. aget-char v1, v0, v1
  311. const/16 v5, 0xa
  312. if-ne v1, v5, :cond_3
  313. iget v1, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
  314. add-int/2addr v1, v3
  315. iput v1, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
  316. iput v4, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
  317. goto :goto_4
  318. :cond_3
  319. const/16 v5, 0x20
  320. if-eq v1, v5, :cond_b
  321. const/16 v5, 0xd
  322. if-eq v1, v5, :cond_b
  323. const/16 v5, 0x9
  324. if-ne v1, v5, :cond_4
  325. goto :goto_4
  326. :cond_4
  327. const/16 v5, 0x2f
  328. if-ne v1, v5, :cond_9
  329. iput v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  330. const/4 v6, 0x2
  331. if-ne v4, v2, :cond_5
  332. iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  333. sub-int/2addr v2, v3
  334. iput v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  335. invoke-direct {p0, v6}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
  336. move-result v2
  337. iget v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  338. add-int/2addr v4, v3
  339. iput v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  340. if-nez v2, :cond_5
  341. return v1
  342. :cond_5
  343. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
  344. iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  345. aget-char v3, v0, v2
  346. const/16 v4, 0x2a
  347. if-eq v3, v4, :cond_7
  348. if-eq v3, v5, :cond_6
  349. return v1
  350. :cond_6
  351. add-int/lit8 v2, v2, 0x1
  352. iput v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  353. :goto_3
  354. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->skipToEndOfLine()V
  355. goto :goto_0
  356. :cond_7
  357. add-int/lit8 v2, v2, 0x1
  358. iput v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  359. const-string v1, "*/"
  360. invoke-direct {p0, v1}, Lcom/google/gson/stream/JsonReader;->skipTo(Ljava/lang/String;)Z
  361. move-result v1
  362. if-eqz v1, :cond_8
  363. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  364. add-int/2addr v1, v6
  365. goto/16 :goto_1
  366. :cond_8
  367. const-string p1, "Unterminated comment"
  368. invoke-direct {p0, p1}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
  369. move-result-object p1
  370. throw p1
  371. :cond_9
  372. const/16 v2, 0x23
  373. iput v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  374. if-ne v1, v2, :cond_a
  375. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
  376. goto :goto_3
  377. :cond_a
  378. return v1
  379. :cond_b
  380. :goto_4
  381. move v1, v4
  382. goto/16 :goto_2
  383. .end method
  384. .method private nextQuotedValue(C)Ljava/lang/String;
  385. .locals 9
  386. .annotation system Ldalvik/annotation/Throws;
  387. value = {
  388. Ljava/io/IOException;
  389. }
  390. .end annotation
  391. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  392. const/4 v1, 0x0
  393. :goto_0
  394. iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  395. iget v3, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  396. move v4, v2
  397. :goto_1
  398. const/16 v5, 0x10
  399. const/4 v6, 0x1
  400. if-ge v2, v3, :cond_5
  401. add-int/lit8 v7, v2, 0x1
  402. aget-char v2, v0, v2
  403. if-ne v2, p1, :cond_1
  404. iput v7, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  405. sub-int/2addr v7, v4
  406. sub-int/2addr v7, v6
  407. if-nez v1, :cond_0
  408. new-instance p1, Ljava/lang/String;
  409. invoke-direct {p1, v0, v4, v7}, Ljava/lang/String;-><init>([CII)V
  410. return-object p1
  411. :cond_0
  412. invoke-virtual {v1, v0, v4, v7}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;
  413. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  414. move-result-object p1
  415. return-object p1
  416. :cond_1
  417. const/16 v8, 0x5c
  418. if-ne v2, v8, :cond_3
  419. iput v7, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  420. sub-int/2addr v7, v4
  421. sub-int/2addr v7, v6
  422. if-nez v1, :cond_2
  423. add-int/lit8 v1, v7, 0x1
  424. mul-int/lit8 v1, v1, 0x2
  425. new-instance v2, Ljava/lang/StringBuilder;
  426. invoke-static {v1, v5}, Ljava/lang/Math;->max(II)I
  427. move-result v1
  428. invoke-direct {v2, v1}, Ljava/lang/StringBuilder;-><init>(I)V
  429. move-object v1, v2
  430. :cond_2
  431. invoke-virtual {v1, v0, v4, v7}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;
  432. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->readEscapeCharacter()C
  433. move-result v2
  434. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
  435. goto :goto_0
  436. :cond_3
  437. const/16 v5, 0xa
  438. if-ne v2, v5, :cond_4
  439. iget v2, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
  440. add-int/2addr v2, v6
  441. iput v2, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
  442. iput v7, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
  443. :cond_4
  444. move v2, v7
  445. goto :goto_1
  446. :cond_5
  447. if-nez v1, :cond_6
  448. sub-int v1, v2, v4
  449. mul-int/lit8 v1, v1, 0x2
  450. new-instance v3, Ljava/lang/StringBuilder;
  451. invoke-static {v1, v5}, Ljava/lang/Math;->max(II)I
  452. move-result v1
  453. invoke-direct {v3, v1}, Ljava/lang/StringBuilder;-><init>(I)V
  454. move-object v1, v3
  455. :cond_6
  456. sub-int v3, v2, v4
  457. invoke-virtual {v1, v0, v4, v3}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;
  458. iput v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  459. invoke-direct {p0, v6}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
  460. move-result v2
  461. if-eqz v2, :cond_7
  462. goto :goto_0
  463. :cond_7
  464. const-string p1, "Unterminated string"
  465. invoke-direct {p0, p1}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
  466. move-result-object p1
  467. goto :goto_3
  468. :goto_2
  469. throw p1
  470. :goto_3
  471. goto :goto_2
  472. .end method
  473. .method private nextUnquotedValue()Ljava/lang/String;
  474. .locals 6
  475. .annotation system Ldalvik/annotation/Throws;
  476. value = {
  477. Ljava/io/IOException;
  478. }
  479. .end annotation
  480. const/4 v0, 0x0
  481. const/4 v1, 0x0
  482. move-object v2, v1
  483. :cond_0
  484. const/4 v1, 0x0
  485. :goto_0
  486. iget v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  487. add-int v4, v3, v1
  488. iget v5, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  489. if-ge v4, v5, :cond_2
  490. iget-object v4, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  491. add-int/2addr v3, v1
  492. aget-char v3, v4, v3
  493. const/16 v4, 0x9
  494. if-eq v3, v4, :cond_3
  495. const/16 v4, 0xa
  496. if-eq v3, v4, :cond_3
  497. const/16 v4, 0xc
  498. if-eq v3, v4, :cond_3
  499. const/16 v4, 0xd
  500. if-eq v3, v4, :cond_3
  501. const/16 v4, 0x20
  502. if-eq v3, v4, :cond_3
  503. const/16 v4, 0x23
  504. if-eq v3, v4, :cond_1
  505. const/16 v4, 0x2c
  506. if-eq v3, v4, :cond_3
  507. const/16 v4, 0x2f
  508. if-eq v3, v4, :cond_1
  509. const/16 v4, 0x3d
  510. if-eq v3, v4, :cond_1
  511. const/16 v4, 0x7b
  512. if-eq v3, v4, :cond_3
  513. const/16 v4, 0x7d
  514. if-eq v3, v4, :cond_3
  515. const/16 v4, 0x3a
  516. if-eq v3, v4, :cond_3
  517. const/16 v4, 0x3b
  518. if-eq v3, v4, :cond_1
  519. packed-switch v3, :pswitch_data_0
  520. add-int/lit8 v1, v1, 0x1
  521. goto :goto_0
  522. :cond_1
  523. :pswitch_0
  524. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
  525. goto :goto_1
  526. :cond_2
  527. iget-object v3, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  528. array-length v3, v3
  529. if-ge v1, v3, :cond_4
  530. add-int/lit8 v3, v1, 0x1
  531. invoke-direct {p0, v3}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
  532. move-result v3
  533. if-eqz v3, :cond_3
  534. goto :goto_0
  535. :cond_3
  536. :goto_1
  537. :pswitch_1
  538. move v0, v1
  539. goto :goto_2
  540. :cond_4
  541. if-nez v2, :cond_5
  542. new-instance v2, Ljava/lang/StringBuilder;
  543. const/16 v3, 0x10
  544. invoke-static {v1, v3}, Ljava/lang/Math;->max(II)I
  545. move-result v3
  546. invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(I)V
  547. :cond_5
  548. iget-object v3, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  549. iget v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  550. invoke-virtual {v2, v3, v4, v1}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;
  551. iget v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  552. add-int/2addr v3, v1
  553. iput v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  554. const/4 v1, 0x1
  555. invoke-direct {p0, v1}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
  556. move-result v1
  557. if-nez v1, :cond_0
  558. :goto_2
  559. if-nez v2, :cond_6
  560. new-instance v1, Ljava/lang/String;
  561. iget-object v2, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  562. iget v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  563. invoke-direct {v1, v2, v3, v0}, Ljava/lang/String;-><init>([CII)V
  564. goto :goto_3
  565. :cond_6
  566. iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  567. iget v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  568. invoke-virtual {v2, v1, v3, v0}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;
  569. invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  570. move-result-object v1
  571. :goto_3
  572. iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  573. add-int/2addr v2, v0
  574. iput v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  575. return-object v1
  576. :pswitch_data_0
  577. .packed-switch 0x5b
  578. :pswitch_1
  579. :pswitch_0
  580. :pswitch_1
  581. .end packed-switch
  582. .end method
  583. .method private peekKeyword()I
  584. .locals 8
  585. .annotation system Ldalvik/annotation/Throws;
  586. value = {
  587. Ljava/io/IOException;
  588. }
  589. .end annotation
  590. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  591. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  592. aget-char v0, v0, v1
  593. const/4 v1, 0x0
  594. const/16 v2, 0x74
  595. if-eq v0, v2, :cond_5
  596. const/16 v2, 0x54
  597. if-ne v0, v2, :cond_0
  598. goto :goto_2
  599. :cond_0
  600. const/16 v2, 0x66
  601. if-eq v0, v2, :cond_4
  602. const/16 v2, 0x46
  603. if-ne v0, v2, :cond_1
  604. goto :goto_1
  605. :cond_1
  606. const/16 v2, 0x6e
  607. if-eq v0, v2, :cond_3
  608. const/16 v2, 0x4e
  609. if-ne v0, v2, :cond_2
  610. goto :goto_0
  611. :cond_2
  612. return v1
  613. :cond_3
  614. :goto_0
  615. const/4 v0, 0x7
  616. const-string v2, "null"
  617. const-string v3, "NULL"
  618. goto :goto_3
  619. :cond_4
  620. :goto_1
  621. const/4 v0, 0x6
  622. const-string v2, "false"
  623. const-string v3, "FALSE"
  624. goto :goto_3
  625. :cond_5
  626. :goto_2
  627. const/4 v0, 0x5
  628. const-string v2, "true"
  629. const-string v3, "TRUE"
  630. :goto_3
  631. invoke-virtual {v2}, Ljava/lang/String;->length()I
  632. move-result v4
  633. const/4 v5, 0x1
  634. :goto_4
  635. if-ge v5, v4, :cond_8
  636. iget v6, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  637. add-int/2addr v6, v5
  638. iget v7, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  639. if-lt v6, v7, :cond_6
  640. add-int/lit8 v6, v5, 0x1
  641. invoke-direct {p0, v6}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
  642. move-result v6
  643. if-nez v6, :cond_6
  644. return v1
  645. :cond_6
  646. iget-object v6, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  647. iget v7, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  648. add-int/2addr v7, v5
  649. aget-char v6, v6, v7
  650. invoke-virtual {v2, v5}, Ljava/lang/String;->charAt(I)C
  651. move-result v7
  652. if-eq v6, v7, :cond_7
  653. invoke-virtual {v3, v5}, Ljava/lang/String;->charAt(I)C
  654. move-result v7
  655. if-eq v6, v7, :cond_7
  656. return v1
  657. :cond_7
  658. add-int/lit8 v5, v5, 0x1
  659. goto :goto_4
  660. :cond_8
  661. iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  662. add-int/2addr v2, v4
  663. iget v3, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  664. if-lt v2, v3, :cond_9
  665. add-int/lit8 v2, v4, 0x1
  666. invoke-direct {p0, v2}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
  667. move-result v2
  668. if-eqz v2, :cond_a
  669. :cond_9
  670. iget-object v2, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  671. iget v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  672. add-int/2addr v3, v4
  673. aget-char v2, v2, v3
  674. invoke-direct {p0, v2}, Lcom/google/gson/stream/JsonReader;->isLiteral(C)Z
  675. move-result v2
  676. if-eqz v2, :cond_a
  677. return v1
  678. :cond_a
  679. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  680. add-int/2addr v1, v4
  681. iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  682. iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  683. return v0
  684. .end method
  685. .method private peekNumber()I
  686. .locals 18
  687. .annotation system Ldalvik/annotation/Throws;
  688. value = {
  689. Ljava/io/IOException;
  690. }
  691. .end annotation
  692. move-object/from16 v0, p0
  693. iget-object v1, v0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  694. iget v2, v0, Lcom/google/gson/stream/JsonReader;->pos:I
  695. iget v3, v0, Lcom/google/gson/stream/JsonReader;->limit:I
  696. const/4 v6, 0x1
  697. const/4 v7, 0x0
  698. move v8, v3
  699. const/4 v3, 0x0
  700. const/4 v9, 0x0
  701. const/4 v10, 0x1
  702. const-wide/16 v11, 0x0
  703. const/4 v13, 0x0
  704. :goto_0
  705. add-int v14, v2, v3
  706. const/4 v15, 0x2
  707. if-ne v14, v8, :cond_2
  708. array-length v2, v1
  709. if-ne v3, v2, :cond_0
  710. return v7
  711. :cond_0
  712. add-int/lit8 v2, v3, 0x1
  713. invoke-direct {v0, v2}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
  714. move-result v2
  715. if-nez v2, :cond_1
  716. goto/16 :goto_8
  717. :cond_1
  718. iget v2, v0, Lcom/google/gson/stream/JsonReader;->pos:I
  719. iget v8, v0, Lcom/google/gson/stream/JsonReader;->limit:I
  720. :cond_2
  721. add-int v14, v2, v3
  722. aget-char v14, v1, v14
  723. const/16 v7, 0x2b
  724. const/4 v4, 0x3
  725. const/4 v5, 0x5
  726. if-eq v14, v7, :cond_1d
  727. const/16 v7, 0x45
  728. if-eq v14, v7, :cond_1a
  729. const/16 v7, 0x65
  730. if-eq v14, v7, :cond_1a
  731. const/16 v7, 0x2d
  732. if-eq v14, v7, :cond_17
  733. const/16 v7, 0x2e
  734. if-eq v14, v7, :cond_15
  735. const/16 v7, 0x30
  736. if-lt v14, v7, :cond_d
  737. const/16 v7, 0x39
  738. if-le v14, v7, :cond_3
  739. goto :goto_7
  740. :cond_3
  741. if-eq v9, v6, :cond_c
  742. if-nez v9, :cond_4
  743. goto :goto_5
  744. :cond_4
  745. if-ne v9, v15, :cond_8
  746. const-wide/16 v16, 0x0
  747. cmp-long v4, v11, v16
  748. if-nez v4, :cond_5
  749. const/4 v4, 0x0
  750. return v4
  751. :cond_5
  752. const-wide/16 v4, 0xa
  753. mul-long v4, v4, v11
  754. add-int/lit8 v14, v14, -0x30
  755. int-to-long v14, v14
  756. sub-long/2addr v4, v14
  757. const-wide v14, -0xcccccccccccccccL
  758. cmp-long v7, v11, v14
  759. if-gtz v7, :cond_7
  760. cmp-long v7, v11, v14
  761. if-nez v7, :cond_6
  762. cmp-long v7, v4, v11
  763. if-gez v7, :cond_6
  764. goto :goto_1
  765. :cond_6
  766. const/4 v7, 0x0
  767. goto :goto_2
  768. :cond_7
  769. :goto_1
  770. const/4 v7, 0x1
  771. :goto_2
  772. and-int/2addr v7, v10
  773. move-wide v11, v4
  774. move v10, v7
  775. goto :goto_3
  776. :cond_8
  777. if-ne v9, v4, :cond_9
  778. const/4 v7, 0x0
  779. const/4 v9, 0x4
  780. goto :goto_6
  781. :cond_9
  782. if-eq v9, v5, :cond_b
  783. const/4 v4, 0x6
  784. if-ne v9, v4, :cond_a
  785. goto :goto_4
  786. :cond_a
  787. :goto_3
  788. const/4 v7, 0x0
  789. goto :goto_6
  790. :cond_b
  791. :goto_4
  792. const/4 v7, 0x0
  793. const/4 v9, 0x7
  794. goto :goto_6
  795. :cond_c
  796. :goto_5
  797. add-int/lit8 v14, v14, -0x30
  798. neg-int v4, v14
  799. int-to-long v4, v4
  800. move-wide v11, v4
  801. const/4 v7, 0x0
  802. const/4 v9, 0x2
  803. :goto_6
  804. const-wide/16 v16, 0x0
  805. goto/16 :goto_e
  806. :cond_d
  807. :goto_7
  808. invoke-direct {v0, v14}, Lcom/google/gson/stream/JsonReader;->isLiteral(C)Z
  809. move-result v1
  810. if-nez v1, :cond_14
  811. :goto_8
  812. if-ne v9, v15, :cond_11
  813. if-eqz v10, :cond_11
  814. const-wide/high16 v1, -0x8000000000000000L
  815. cmp-long v4, v11, v1
  816. if-nez v4, :cond_e
  817. if-eqz v13, :cond_11
  818. :cond_e
  819. const-wide/16 v16, 0x0
  820. cmp-long v1, v11, v16
  821. if-nez v1, :cond_f
  822. if-nez v13, :cond_11
  823. :cond_f
  824. if-eqz v13, :cond_10
  825. goto :goto_9
  826. :cond_10
  827. neg-long v11, v11
  828. :goto_9
  829. iput-wide v11, v0, Lcom/google/gson/stream/JsonReader;->peekedLong:J
  830. iget v1, v0, Lcom/google/gson/stream/JsonReader;->pos:I
  831. add-int/2addr v1, v3
  832. iput v1, v0, Lcom/google/gson/stream/JsonReader;->pos:I
  833. const/16 v1, 0xf
  834. :goto_a
  835. iput v1, v0, Lcom/google/gson/stream/JsonReader;->peeked:I
  836. return v1
  837. :cond_11
  838. if-eq v9, v15, :cond_13
  839. const/4 v1, 0x4
  840. if-eq v9, v1, :cond_13
  841. const/4 v1, 0x7
  842. if-ne v9, v1, :cond_12
  843. goto :goto_b
  844. :cond_12
  845. const/4 v7, 0x0
  846. return v7
  847. :cond_13
  848. :goto_b
  849. iput v3, v0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
  850. const/16 v1, 0x10
  851. goto :goto_a
  852. :cond_14
  853. const/4 v7, 0x0
  854. return v7
  855. :cond_15
  856. const/4 v7, 0x0
  857. const-wide/16 v16, 0x0
  858. if-ne v9, v15, :cond_16
  859. const/4 v9, 0x3
  860. goto :goto_e
  861. :cond_16
  862. return v7
  863. :cond_17
  864. const/4 v4, 0x6
  865. const/4 v7, 0x0
  866. const-wide/16 v16, 0x0
  867. if-nez v9, :cond_18
  868. const/4 v9, 0x1
  869. const/4 v13, 0x1
  870. goto :goto_e
  871. :cond_18
  872. if-ne v9, v5, :cond_19
  873. goto :goto_d
  874. :cond_19
  875. return v7
  876. :cond_1a
  877. const/4 v7, 0x0
  878. const-wide/16 v16, 0x0
  879. if-eq v9, v15, :cond_1c
  880. const/4 v4, 0x4
  881. if-ne v9, v4, :cond_1b
  882. goto :goto_c
  883. :cond_1b
  884. return v7
  885. :cond_1c
  886. :goto_c
  887. const/4 v9, 0x5
  888. goto :goto_e
  889. :cond_1d
  890. const/4 v4, 0x6
  891. const/4 v7, 0x0
  892. const-wide/16 v16, 0x0
  893. if-ne v9, v5, :cond_1e
  894. :goto_d
  895. const/4 v9, 0x6
  896. :goto_e
  897. add-int/lit8 v3, v3, 0x1
  898. goto/16 :goto_0
  899. :cond_1e
  900. return v7
  901. .end method
  902. .method private push(I)V
  903. .locals 6
  904. iget v0, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  905. iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
  906. array-length v2, v1
  907. if-ne v0, v2, :cond_0
  908. mul-int/lit8 v2, v0, 0x2
  909. new-array v2, v2, [I
  910. mul-int/lit8 v3, v0, 0x2
  911. new-array v3, v3, [I
  912. mul-int/lit8 v4, v0, 0x2
  913. new-array v4, v4, [Ljava/lang/String;
  914. const/4 v5, 0x0
  915. invoke-static {v1, v5, v2, v5, v0}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
  916. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  917. iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  918. invoke-static {v0, v5, v3, v5, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
  919. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathNames:[Ljava/lang/String;
  920. iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  921. invoke-static {v0, v5, v4, v5, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
  922. iput-object v2, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
  923. iput-object v3, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  924. iput-object v4, p0, Lcom/google/gson/stream/JsonReader;->pathNames:[Ljava/lang/String;
  925. :cond_0
  926. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
  927. iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  928. add-int/lit8 v2, v1, 0x1
  929. iput v2, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  930. aput p1, v0, v1
  931. return-void
  932. .end method
  933. .method private readEscapeCharacter()C
  934. .locals 8
  935. .annotation system Ldalvik/annotation/Throws;
  936. value = {
  937. Ljava/io/IOException;
  938. }
  939. .end annotation
  940. iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  941. iget v1, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  942. const-string v2, "Unterminated escape sequence"
  943. const/4 v3, 0x1
  944. if-ne v0, v1, :cond_1
  945. invoke-direct {p0, v3}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
  946. move-result v0
  947. if-eqz v0, :cond_0
  948. goto :goto_0
  949. :cond_0
  950. invoke-direct {p0, v2}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
  951. move-result-object v0
  952. throw v0
  953. :cond_1
  954. :goto_0
  955. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  956. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  957. add-int/lit8 v4, v1, 0x1
  958. iput v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  959. aget-char v0, v0, v1
  960. const/16 v1, 0xa
  961. if-eq v0, v1, :cond_e
  962. const/16 v3, 0x22
  963. if-eq v0, v3, :cond_f
  964. const/16 v3, 0x27
  965. if-eq v0, v3, :cond_f
  966. const/16 v3, 0x2f
  967. if-eq v0, v3, :cond_f
  968. const/16 v3, 0x5c
  969. if-eq v0, v3, :cond_f
  970. const/16 v3, 0x62
  971. if-eq v0, v3, :cond_d
  972. const/16 v3, 0x66
  973. if-eq v0, v3, :cond_c
  974. const/16 v4, 0x6e
  975. if-eq v0, v4, :cond_b
  976. const/16 v4, 0x72
  977. if-eq v0, v4, :cond_a
  978. const/16 v4, 0x74
  979. if-eq v0, v4, :cond_9
  980. const/16 v4, 0x75
  981. if-ne v0, v4, :cond_8
  982. iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  983. const/4 v4, 0x4
  984. add-int/2addr v0, v4
  985. iget v5, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  986. if-le v0, v5, :cond_3
  987. invoke-direct {p0, v4}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
  988. move-result v0
  989. if-eqz v0, :cond_2
  990. goto :goto_1
  991. :cond_2
  992. invoke-direct {p0, v2}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
  993. move-result-object v0
  994. throw v0
  995. :cond_3
  996. :goto_1
  997. const/4 v0, 0x0
  998. iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  999. add-int/lit8 v5, v2, 0x4
  1000. :goto_2
  1001. if-ge v2, v5, :cond_7
  1002. iget-object v6, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  1003. aget-char v6, v6, v2
  1004. shl-int/lit8 v0, v0, 0x4
  1005. int-to-char v0, v0
  1006. const/16 v7, 0x30
  1007. if-lt v6, v7, :cond_4
  1008. const/16 v7, 0x39
  1009. if-gt v6, v7, :cond_4
  1010. add-int/lit8 v6, v6, -0x30
  1011. :goto_3
  1012. add-int/2addr v0, v6
  1013. int-to-char v0, v0
  1014. goto :goto_5
  1015. :cond_4
  1016. const/16 v7, 0x61
  1017. if-lt v6, v7, :cond_5
  1018. if-gt v6, v3, :cond_5
  1019. add-int/lit8 v6, v6, -0x61
  1020. :goto_4
  1021. add-int/2addr v6, v1
  1022. goto :goto_3
  1023. :cond_5
  1024. const/16 v7, 0x41
  1025. if-lt v6, v7, :cond_6
  1026. const/16 v7, 0x46
  1027. if-gt v6, v7, :cond_6
  1028. add-int/lit8 v6, v6, -0x41
  1029. goto :goto_4
  1030. :goto_5
  1031. add-int/lit8 v2, v2, 0x1
  1032. goto :goto_2
  1033. :cond_6
  1034. new-instance v0, Ljava/lang/NumberFormatException;
  1035. new-instance v1, Ljava/lang/StringBuilder;
  1036. invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
  1037. const-string v2, "\\u"
  1038. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1039. new-instance v2, Ljava/lang/String;
  1040. iget-object v3, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  1041. iget v5, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1042. invoke-direct {v2, v3, v5, v4}, Ljava/lang/String;-><init>([CII)V
  1043. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1044. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  1045. move-result-object v1
  1046. invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
  1047. throw v0
  1048. :cond_7
  1049. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1050. add-int/2addr v1, v4
  1051. iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1052. return v0
  1053. :cond_8
  1054. const-string v0, "Invalid escape sequence"
  1055. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
  1056. move-result-object v0
  1057. throw v0
  1058. :cond_9
  1059. const/16 v0, 0x9
  1060. return v0
  1061. :cond_a
  1062. const/16 v0, 0xd
  1063. return v0
  1064. :cond_b
  1065. return v1
  1066. :cond_c
  1067. const/16 v0, 0xc
  1068. return v0
  1069. :cond_d
  1070. const/16 v0, 0x8
  1071. return v0
  1072. :cond_e
  1073. iget v1, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
  1074. add-int/2addr v1, v3
  1075. iput v1, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
  1076. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1077. iput v1, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
  1078. :cond_f
  1079. return v0
  1080. .end method
  1081. .method private skipQuotedValue(C)V
  1082. .locals 6
  1083. .annotation system Ldalvik/annotation/Throws;
  1084. value = {
  1085. Ljava/io/IOException;
  1086. }
  1087. .end annotation
  1088. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  1089. :goto_0
  1090. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1091. iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  1092. :goto_1
  1093. const/4 v3, 0x1
  1094. if-ge v1, v2, :cond_3
  1095. add-int/lit8 v4, v1, 0x1
  1096. aget-char v1, v0, v1
  1097. if-ne v1, p1, :cond_0
  1098. iput v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1099. return-void
  1100. :cond_0
  1101. const/16 v5, 0x5c
  1102. if-ne v1, v5, :cond_1
  1103. iput v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1104. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->readEscapeCharacter()C
  1105. goto :goto_0
  1106. :cond_1
  1107. const/16 v5, 0xa
  1108. if-ne v1, v5, :cond_2
  1109. iget v1, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
  1110. add-int/2addr v1, v3
  1111. iput v1, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
  1112. iput v4, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
  1113. :cond_2
  1114. move v1, v4
  1115. goto :goto_1
  1116. :cond_3
  1117. iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1118. invoke-direct {p0, v3}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
  1119. move-result v1
  1120. if-eqz v1, :cond_4
  1121. goto :goto_0
  1122. :cond_4
  1123. const-string p1, "Unterminated string"
  1124. invoke-direct {p0, p1}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
  1125. move-result-object p1
  1126. goto :goto_3
  1127. :goto_2
  1128. throw p1
  1129. :goto_3
  1130. goto :goto_2
  1131. .end method
  1132. .method private skipTo(Ljava/lang/String;)Z
  1133. .locals 6
  1134. .annotation system Ldalvik/annotation/Throws;
  1135. value = {
  1136. Ljava/io/IOException;
  1137. }
  1138. .end annotation
  1139. invoke-virtual {p1}, Ljava/lang/String;->length()I
  1140. move-result v0
  1141. :goto_0
  1142. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1143. add-int/2addr v1, v0
  1144. iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  1145. const/4 v3, 0x0
  1146. if-le v1, v2, :cond_1
  1147. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
  1148. move-result v1
  1149. if-eqz v1, :cond_0
  1150. goto :goto_1
  1151. :cond_0
  1152. return v3
  1153. :cond_1
  1154. :goto_1
  1155. iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  1156. iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1157. aget-char v1, v1, v2
  1158. const/16 v4, 0xa
  1159. const/4 v5, 0x1
  1160. if-ne v1, v4, :cond_2
  1161. iget v1, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
  1162. add-int/2addr v1, v5
  1163. iput v1, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
  1164. add-int/lit8 v2, v2, 0x1
  1165. iput v2, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
  1166. goto :goto_3
  1167. :cond_2
  1168. :goto_2
  1169. if-ge v3, v0, :cond_4
  1170. iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  1171. iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1172. add-int/2addr v2, v3
  1173. aget-char v1, v1, v2
  1174. invoke-virtual {p1, v3}, Ljava/lang/String;->charAt(I)C
  1175. move-result v2
  1176. if-eq v1, v2, :cond_3
  1177. :goto_3
  1178. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1179. add-int/2addr v1, v5
  1180. iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1181. goto :goto_0
  1182. :cond_3
  1183. add-int/lit8 v3, v3, 0x1
  1184. goto :goto_2
  1185. :cond_4
  1186. return v5
  1187. .end method
  1188. .method private skipToEndOfLine()V
  1189. .locals 4
  1190. .annotation system Ldalvik/annotation/Throws;
  1191. value = {
  1192. Ljava/io/IOException;
  1193. }
  1194. .end annotation
  1195. :cond_0
  1196. iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1197. iget v1, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  1198. const/4 v2, 0x1
  1199. if-lt v0, v1, :cond_1
  1200. invoke-direct {p0, v2}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
  1201. move-result v0
  1202. if-eqz v0, :cond_3
  1203. :cond_1
  1204. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  1205. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1206. add-int/lit8 v3, v1, 0x1
  1207. iput v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1208. aget-char v0, v0, v1
  1209. const/16 v1, 0xa
  1210. if-ne v0, v1, :cond_2
  1211. iget v0, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
  1212. add-int/2addr v0, v2
  1213. iput v0, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
  1214. iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1215. iput v0, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
  1216. goto :goto_0
  1217. :cond_2
  1218. const/16 v1, 0xd
  1219. if-ne v0, v1, :cond_0
  1220. :cond_3
  1221. :goto_0
  1222. return-void
  1223. .end method
  1224. .method private skipUnquotedValue()V
  1225. .locals 4
  1226. .annotation system Ldalvik/annotation/Throws;
  1227. value = {
  1228. Ljava/io/IOException;
  1229. }
  1230. .end annotation
  1231. :cond_0
  1232. const/4 v0, 0x0
  1233. :goto_0
  1234. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1235. add-int v2, v1, v0
  1236. iget v3, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  1237. if-ge v2, v3, :cond_3
  1238. iget-object v2, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  1239. add-int/2addr v1, v0
  1240. aget-char v1, v2, v1
  1241. const/16 v2, 0x9
  1242. if-eq v1, v2, :cond_2
  1243. const/16 v2, 0xa
  1244. if-eq v1, v2, :cond_2
  1245. const/16 v2, 0xc
  1246. if-eq v1, v2, :cond_2
  1247. const/16 v2, 0xd
  1248. if-eq v1, v2, :cond_2
  1249. const/16 v2, 0x20
  1250. if-eq v1, v2, :cond_2
  1251. const/16 v2, 0x23
  1252. if-eq v1, v2, :cond_1
  1253. const/16 v2, 0x2c
  1254. if-eq v1, v2, :cond_2
  1255. const/16 v2, 0x2f
  1256. if-eq v1, v2, :cond_1
  1257. const/16 v2, 0x3d
  1258. if-eq v1, v2, :cond_1
  1259. const/16 v2, 0x7b
  1260. if-eq v1, v2, :cond_2
  1261. const/16 v2, 0x7d
  1262. if-eq v1, v2, :cond_2
  1263. const/16 v2, 0x3a
  1264. if-eq v1, v2, :cond_2
  1265. const/16 v2, 0x3b
  1266. if-eq v1, v2, :cond_1
  1267. packed-switch v1, :pswitch_data_0
  1268. add-int/lit8 v0, v0, 0x1
  1269. goto :goto_0
  1270. :cond_1
  1271. :pswitch_0
  1272. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
  1273. :cond_2
  1274. :pswitch_1
  1275. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1276. add-int/2addr v1, v0
  1277. iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1278. return-void
  1279. :cond_3
  1280. add-int/2addr v1, v0
  1281. iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1282. const/4 v0, 0x1
  1283. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
  1284. move-result v0
  1285. if-nez v0, :cond_0
  1286. return-void
  1287. :pswitch_data_0
  1288. .packed-switch 0x5b
  1289. :pswitch_1
  1290. :pswitch_0
  1291. :pswitch_1
  1292. .end packed-switch
  1293. .end method
  1294. .method private syntaxError(Ljava/lang/String;)Ljava/io/IOException;
  1295. .locals 2
  1296. .annotation system Ldalvik/annotation/Throws;
  1297. value = {
  1298. Ljava/io/IOException;
  1299. }
  1300. .end annotation
  1301. new-instance v0, Lcom/google/gson/stream/MalformedJsonException;
  1302. new-instance v1, Ljava/lang/StringBuilder;
  1303. invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
  1304. invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1305. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
  1306. move-result-object p1
  1307. invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1308. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  1309. move-result-object p1
  1310. invoke-direct {v0, p1}, Lcom/google/gson/stream/MalformedJsonException;-><init>(Ljava/lang/String;)V
  1311. throw v0
  1312. .end method
  1313. # virtual methods
  1314. .method public beginArray()V
  1315. .locals 3
  1316. .annotation system Ldalvik/annotation/Throws;
  1317. value = {
  1318. Ljava/io/IOException;
  1319. }
  1320. .end annotation
  1321. iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1322. if-nez v0, :cond_0
  1323. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
  1324. move-result v0
  1325. :cond_0
  1326. const/4 v1, 0x3
  1327. if-ne v0, v1, :cond_1
  1328. const/4 v0, 0x1
  1329. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->push(I)V
  1330. iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  1331. iget v2, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  1332. sub-int/2addr v2, v0
  1333. const/4 v0, 0x0
  1334. aput v0, v1, v2
  1335. iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1336. return-void
  1337. :cond_1
  1338. new-instance v0, Ljava/lang/IllegalStateException;
  1339. new-instance v1, Ljava/lang/StringBuilder;
  1340. invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
  1341. const-string v2, "Expected BEGIN_ARRAY but was "
  1342. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1343. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
  1344. move-result-object v2
  1345. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
  1346. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
  1347. move-result-object v2
  1348. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1349. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  1350. move-result-object v1
  1351. invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
  1352. throw v0
  1353. .end method
  1354. .method public beginObject()V
  1355. .locals 3
  1356. .annotation system Ldalvik/annotation/Throws;
  1357. value = {
  1358. Ljava/io/IOException;
  1359. }
  1360. .end annotation
  1361. iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1362. if-nez v0, :cond_0
  1363. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
  1364. move-result v0
  1365. :cond_0
  1366. const/4 v1, 0x1
  1367. if-ne v0, v1, :cond_1
  1368. const/4 v0, 0x3
  1369. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->push(I)V
  1370. const/4 v0, 0x0
  1371. iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1372. return-void
  1373. :cond_1
  1374. new-instance v0, Ljava/lang/IllegalStateException;
  1375. new-instance v1, Ljava/lang/StringBuilder;
  1376. invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
  1377. const-string v2, "Expected BEGIN_OBJECT but was "
  1378. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1379. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
  1380. move-result-object v2
  1381. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
  1382. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
  1383. move-result-object v2
  1384. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1385. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  1386. move-result-object v1
  1387. invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
  1388. throw v0
  1389. .end method
  1390. .method public close()V
  1391. .locals 3
  1392. .annotation system Ldalvik/annotation/Throws;
  1393. value = {
  1394. Ljava/io/IOException;
  1395. }
  1396. .end annotation
  1397. const/4 v0, 0x0
  1398. iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1399. iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
  1400. const/16 v2, 0x8
  1401. aput v2, v1, v0
  1402. const/4 v0, 0x1
  1403. iput v0, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  1404. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->in:Ljava/io/Reader;
  1405. invoke-virtual {v0}, Ljava/io/Reader;->close()V
  1406. return-void
  1407. .end method
  1408. .method doPeek()I
  1409. .locals 15
  1410. .annotation system Ldalvik/annotation/Throws;
  1411. value = {
  1412. Ljava/io/IOException;
  1413. }
  1414. .end annotation
  1415. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
  1416. iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  1417. add-int/lit8 v2, v1, -0x1
  1418. aget v2, v0, v2
  1419. const/16 v3, 0x8
  1420. const/16 v4, 0x27
  1421. const/16 v5, 0x22
  1422. const/16 v6, 0x5d
  1423. const/4 v7, 0x3
  1424. const/4 v8, 0x7
  1425. const/16 v9, 0x3b
  1426. const/16 v10, 0x2c
  1427. const/4 v11, 0x4
  1428. const/4 v12, 0x2
  1429. const/4 v13, 0x1
  1430. if-ne v2, v13, :cond_0
  1431. sub-int/2addr v1, v13
  1432. aput v12, v0, v1
  1433. goto/16 :goto_1
  1434. :cond_0
  1435. if-ne v2, v12, :cond_3
  1436. invoke-direct {p0, v13}, Lcom/google/gson/stream/JsonReader;->nextNonWhitespace(Z)I
  1437. move-result v0
  1438. if-eq v0, v10, :cond_c
  1439. if-eq v0, v9, :cond_2
  1440. if-ne v0, v6, :cond_1
  1441. iput v11, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1442. return v11
  1443. :cond_1
  1444. const-string v0, "Unterminated array"
  1445. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
  1446. move-result-object v0
  1447. throw v0
  1448. :cond_2
  1449. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
  1450. goto :goto_1
  1451. :cond_3
  1452. const/4 v14, 0x5
  1453. if-eq v2, v7, :cond_19
  1454. if-ne v2, v14, :cond_4
  1455. goto/16 :goto_3
  1456. :cond_4
  1457. if-ne v2, v11, :cond_7
  1458. sub-int/2addr v1, v13
  1459. aput v14, v0, v1
  1460. invoke-direct {p0, v13}, Lcom/google/gson/stream/JsonReader;->nextNonWhitespace(Z)I
  1461. move-result v0
  1462. const/16 v1, 0x3a
  1463. if-eq v0, v1, :cond_c
  1464. const/16 v1, 0x3d
  1465. if-ne v0, v1, :cond_6
  1466. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
  1467. iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1468. iget v1, p0, Lcom/google/gson/stream/JsonReader;->limit:I
  1469. if-lt v0, v1, :cond_5
  1470. invoke-direct {p0, v13}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
  1471. move-result v0
  1472. if-eqz v0, :cond_c
  1473. :cond_5
  1474. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  1475. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1476. aget-char v0, v0, v1
  1477. const/16 v14, 0x3e
  1478. if-ne v0, v14, :cond_c
  1479. add-int/2addr v1, v13
  1480. iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1481. goto :goto_1
  1482. :cond_6
  1483. const-string v0, "Expected \':\'"
  1484. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
  1485. move-result-object v0
  1486. throw v0
  1487. :cond_7
  1488. const/4 v0, 0x6
  1489. if-ne v2, v0, :cond_9
  1490. iget-boolean v0, p0, Lcom/google/gson/stream/JsonReader;->lenient:Z
  1491. if-eqz v0, :cond_8
  1492. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->consumeNonExecutePrefix()V
  1493. :cond_8
  1494. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
  1495. iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  1496. sub-int/2addr v1, v13
  1497. aput v8, v0, v1
  1498. goto :goto_1
  1499. :cond_9
  1500. if-ne v2, v8, :cond_b
  1501. const/4 v0, 0x0
  1502. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->nextNonWhitespace(Z)I
  1503. move-result v0
  1504. const/4 v1, -0x1
  1505. if-ne v0, v1, :cond_a
  1506. const/16 v0, 0x11
  1507. :goto_0
  1508. iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1509. return v0
  1510. :cond_a
  1511. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
  1512. iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1513. sub-int/2addr v0, v13
  1514. iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1515. goto :goto_1
  1516. :cond_b
  1517. if-eq v2, v3, :cond_18
  1518. :cond_c
  1519. :goto_1
  1520. invoke-direct {p0, v13}, Lcom/google/gson/stream/JsonReader;->nextNonWhitespace(Z)I
  1521. move-result v0
  1522. if-eq v0, v5, :cond_17
  1523. if-eq v0, v4, :cond_16
  1524. if-eq v0, v10, :cond_13
  1525. if-eq v0, v9, :cond_13
  1526. const/16 v1, 0x5b
  1527. if-eq v0, v1, :cond_12
  1528. if-eq v0, v6, :cond_11
  1529. const/16 v1, 0x7b
  1530. if-eq v0, v1, :cond_10
  1531. iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1532. sub-int/2addr v0, v13
  1533. iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1534. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->peekKeyword()I
  1535. move-result v0
  1536. if-eqz v0, :cond_d
  1537. return v0
  1538. :cond_d
  1539. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->peekNumber()I
  1540. move-result v0
  1541. if-eqz v0, :cond_e
  1542. return v0
  1543. :cond_e
  1544. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  1545. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1546. aget-char v0, v0, v1
  1547. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->isLiteral(C)Z
  1548. move-result v0
  1549. if-eqz v0, :cond_f
  1550. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
  1551. const/16 v0, 0xa
  1552. goto :goto_0
  1553. :cond_f
  1554. const-string v0, "Expected value"
  1555. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
  1556. move-result-object v0
  1557. throw v0
  1558. :cond_10
  1559. iput v13, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1560. return v13
  1561. :cond_11
  1562. if-ne v2, v13, :cond_13
  1563. iput v11, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1564. return v11
  1565. :cond_12
  1566. iput v7, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1567. return v7
  1568. :cond_13
  1569. if-eq v2, v13, :cond_15
  1570. if-ne v2, v12, :cond_14
  1571. goto :goto_2
  1572. :cond_14
  1573. const-string v0, "Unexpected value"
  1574. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
  1575. move-result-object v0
  1576. throw v0
  1577. :cond_15
  1578. :goto_2
  1579. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
  1580. iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1581. sub-int/2addr v0, v13
  1582. iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1583. iput v8, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1584. return v8
  1585. :cond_16
  1586. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
  1587. iput v3, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1588. return v3
  1589. :cond_17
  1590. const/16 v0, 0x9
  1591. goto :goto_0
  1592. :cond_18
  1593. new-instance v0, Ljava/lang/IllegalStateException;
  1594. const-string v1, "JsonReader is closed"
  1595. invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
  1596. throw v0
  1597. :cond_19
  1598. :goto_3
  1599. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
  1600. iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  1601. sub-int/2addr v1, v13
  1602. aput v11, v0, v1
  1603. const/16 v0, 0x7d
  1604. if-ne v2, v14, :cond_1c
  1605. invoke-direct {p0, v13}, Lcom/google/gson/stream/JsonReader;->nextNonWhitespace(Z)I
  1606. move-result v1
  1607. if-eq v1, v10, :cond_1c
  1608. if-eq v1, v9, :cond_1b
  1609. if-ne v1, v0, :cond_1a
  1610. iput v12, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1611. return v12
  1612. :cond_1a
  1613. const-string v0, "Unterminated object"
  1614. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
  1615. move-result-object v0
  1616. throw v0
  1617. :cond_1b
  1618. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
  1619. :cond_1c
  1620. invoke-direct {p0, v13}, Lcom/google/gson/stream/JsonReader;->nextNonWhitespace(Z)I
  1621. move-result v1
  1622. if-eq v1, v5, :cond_21
  1623. if-eq v1, v4, :cond_20
  1624. const-string v3, "Expected name"
  1625. if-eq v1, v0, :cond_1e
  1626. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
  1627. iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1628. sub-int/2addr v0, v13
  1629. iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1630. int-to-char v0, v1
  1631. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->isLiteral(C)Z
  1632. move-result v0
  1633. if-eqz v0, :cond_1d
  1634. const/16 v0, 0xe
  1635. goto/16 :goto_0
  1636. :cond_1d
  1637. invoke-direct {p0, v3}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
  1638. move-result-object v0
  1639. throw v0
  1640. :cond_1e
  1641. if-eq v2, v14, :cond_1f
  1642. iput v12, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1643. return v12
  1644. :cond_1f
  1645. invoke-direct {p0, v3}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
  1646. move-result-object v0
  1647. throw v0
  1648. :cond_20
  1649. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
  1650. const/16 v0, 0xc
  1651. goto/16 :goto_0
  1652. :cond_21
  1653. const/16 v0, 0xd
  1654. goto/16 :goto_0
  1655. .end method
  1656. .method public endArray()V
  1657. .locals 3
  1658. .annotation system Ldalvik/annotation/Throws;
  1659. value = {
  1660. Ljava/io/IOException;
  1661. }
  1662. .end annotation
  1663. iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1664. if-nez v0, :cond_0
  1665. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
  1666. move-result v0
  1667. :cond_0
  1668. const/4 v1, 0x4
  1669. if-ne v0, v1, :cond_1
  1670. iget v0, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  1671. add-int/lit8 v0, v0, -0x1
  1672. iput v0, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  1673. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  1674. iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  1675. add-int/lit8 v1, v1, -0x1
  1676. aget v2, v0, v1
  1677. add-int/lit8 v2, v2, 0x1
  1678. aput v2, v0, v1
  1679. const/4 v0, 0x0
  1680. iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1681. return-void
  1682. :cond_1
  1683. new-instance v0, Ljava/lang/IllegalStateException;
  1684. new-instance v1, Ljava/lang/StringBuilder;
  1685. invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
  1686. const-string v2, "Expected END_ARRAY but was "
  1687. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1688. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
  1689. move-result-object v2
  1690. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
  1691. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
  1692. move-result-object v2
  1693. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1694. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  1695. move-result-object v1
  1696. invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
  1697. throw v0
  1698. .end method
  1699. .method public endObject()V
  1700. .locals 3
  1701. .annotation system Ldalvik/annotation/Throws;
  1702. value = {
  1703. Ljava/io/IOException;
  1704. }
  1705. .end annotation
  1706. iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1707. if-nez v0, :cond_0
  1708. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
  1709. move-result v0
  1710. :cond_0
  1711. const/4 v1, 0x2
  1712. if-ne v0, v1, :cond_1
  1713. iget v0, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  1714. add-int/lit8 v0, v0, -0x1
  1715. iput v0, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  1716. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathNames:[Ljava/lang/String;
  1717. iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  1718. const/4 v2, 0x0
  1719. aput-object v2, v0, v1
  1720. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  1721. add-int/lit8 v1, v1, -0x1
  1722. aget v2, v0, v1
  1723. add-int/lit8 v2, v2, 0x1
  1724. aput v2, v0, v1
  1725. const/4 v0, 0x0
  1726. iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1727. return-void
  1728. :cond_1
  1729. new-instance v0, Ljava/lang/IllegalStateException;
  1730. new-instance v1, Ljava/lang/StringBuilder;
  1731. invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
  1732. const-string v2, "Expected END_OBJECT but was "
  1733. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1734. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
  1735. move-result-object v2
  1736. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
  1737. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
  1738. move-result-object v2
  1739. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1740. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  1741. move-result-object v1
  1742. invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
  1743. throw v0
  1744. .end method
  1745. .method public getPath()Ljava/lang/String;
  1746. .locals 5
  1747. new-instance v0, Ljava/lang/StringBuilder;
  1748. invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
  1749. const/16 v1, 0x24
  1750. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
  1751. iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  1752. const/4 v2, 0x0
  1753. :goto_0
  1754. if-ge v2, v1, :cond_3
  1755. iget-object v3, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
  1756. aget v3, v3, v2
  1757. const/4 v4, 0x1
  1758. if-eq v3, v4, :cond_1
  1759. const/4 v4, 0x2
  1760. if-eq v3, v4, :cond_1
  1761. const/4 v4, 0x3
  1762. if-eq v3, v4, :cond_0
  1763. const/4 v4, 0x4
  1764. if-eq v3, v4, :cond_0
  1765. const/4 v4, 0x5
  1766. if-eq v3, v4, :cond_0
  1767. goto :goto_1
  1768. :cond_0
  1769. const/16 v3, 0x2e
  1770. invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
  1771. iget-object v3, p0, Lcom/google/gson/stream/JsonReader;->pathNames:[Ljava/lang/String;
  1772. aget-object v4, v3, v2
  1773. if-eqz v4, :cond_2
  1774. aget-object v3, v3, v2
  1775. invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1776. goto :goto_1
  1777. :cond_1
  1778. const/16 v3, 0x5b
  1779. invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
  1780. iget-object v3, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  1781. aget v3, v3, v2
  1782. invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
  1783. const/16 v3, 0x5d
  1784. invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
  1785. :cond_2
  1786. :goto_1
  1787. add-int/lit8 v2, v2, 0x1
  1788. goto :goto_0
  1789. :cond_3
  1790. invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  1791. move-result-object v0
  1792. return-object v0
  1793. .end method
  1794. .method public hasNext()Z
  1795. .locals 2
  1796. .annotation system Ldalvik/annotation/Throws;
  1797. value = {
  1798. Ljava/io/IOException;
  1799. }
  1800. .end annotation
  1801. iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1802. if-nez v0, :cond_0
  1803. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
  1804. move-result v0
  1805. :cond_0
  1806. const/4 v1, 0x2
  1807. if-eq v0, v1, :cond_1
  1808. const/4 v1, 0x4
  1809. if-eq v0, v1, :cond_1
  1810. const/4 v0, 0x1
  1811. goto :goto_0
  1812. :cond_1
  1813. const/4 v0, 0x0
  1814. :goto_0
  1815. return v0
  1816. .end method
  1817. .method public final isLenient()Z
  1818. .locals 1
  1819. iget-boolean v0, p0, Lcom/google/gson/stream/JsonReader;->lenient:Z
  1820. return v0
  1821. .end method
  1822. .method locationString()Ljava/lang/String;
  1823. .locals 4
  1824. iget v0, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
  1825. add-int/lit8 v0, v0, 0x1
  1826. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1827. iget v2, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
  1828. sub-int/2addr v1, v2
  1829. add-int/lit8 v1, v1, 0x1
  1830. new-instance v2, Ljava/lang/StringBuilder;
  1831. invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
  1832. const-string v3, " at line "
  1833. invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1834. invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
  1835. const-string v0, " column "
  1836. invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1837. invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
  1838. const-string v0, " path "
  1839. invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1840. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->getPath()Ljava/lang/String;
  1841. move-result-object v0
  1842. invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1843. invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  1844. move-result-object v0
  1845. return-object v0
  1846. .end method
  1847. .method public nextBoolean()Z
  1848. .locals 5
  1849. .annotation system Ldalvik/annotation/Throws;
  1850. value = {
  1851. Ljava/io/IOException;
  1852. }
  1853. .end annotation
  1854. iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1855. if-nez v0, :cond_0
  1856. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
  1857. move-result v0
  1858. :cond_0
  1859. const/4 v1, 0x5
  1860. const/4 v2, 0x0
  1861. const/4 v3, 0x1
  1862. if-ne v0, v1, :cond_1
  1863. iput v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1864. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  1865. iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  1866. sub-int/2addr v1, v3
  1867. aget v2, v0, v1
  1868. add-int/2addr v2, v3
  1869. aput v2, v0, v1
  1870. return v3
  1871. :cond_1
  1872. const/4 v1, 0x6
  1873. if-ne v0, v1, :cond_2
  1874. iput v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1875. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  1876. iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  1877. sub-int/2addr v1, v3
  1878. aget v4, v0, v1
  1879. add-int/2addr v4, v3
  1880. aput v4, v0, v1
  1881. return v2
  1882. :cond_2
  1883. new-instance v0, Ljava/lang/IllegalStateException;
  1884. new-instance v1, Ljava/lang/StringBuilder;
  1885. invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
  1886. const-string v2, "Expected a boolean but was "
  1887. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1888. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
  1889. move-result-object v2
  1890. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
  1891. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
  1892. move-result-object v2
  1893. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1894. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  1895. move-result-object v1
  1896. invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
  1897. throw v0
  1898. .end method
  1899. .method public nextDouble()D
  1900. .locals 6
  1901. .annotation system Ldalvik/annotation/Throws;
  1902. value = {
  1903. Ljava/io/IOException;
  1904. }
  1905. .end annotation
  1906. iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1907. if-nez v0, :cond_0
  1908. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
  1909. move-result v0
  1910. :cond_0
  1911. const/16 v1, 0xf
  1912. const/4 v2, 0x0
  1913. if-ne v0, v1, :cond_1
  1914. iput v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1915. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  1916. iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  1917. add-int/lit8 v1, v1, -0x1
  1918. aget v2, v0, v1
  1919. add-int/lit8 v2, v2, 0x1
  1920. aput v2, v0, v1
  1921. iget-wide v0, p0, Lcom/google/gson/stream/JsonReader;->peekedLong:J
  1922. long-to-double v0, v0
  1923. return-wide v0
  1924. :cond_1
  1925. const/16 v1, 0x10
  1926. const/16 v3, 0xb
  1927. if-ne v0, v1, :cond_2
  1928. new-instance v0, Ljava/lang/String;
  1929. iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  1930. iget v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1931. iget v5, p0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
  1932. invoke-direct {v0, v1, v4, v5}, Ljava/lang/String;-><init>([CII)V
  1933. iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
  1934. iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1935. iget v1, p0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
  1936. add-int/2addr v0, v1
  1937. iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  1938. goto :goto_3
  1939. :cond_2
  1940. const/16 v1, 0x8
  1941. if-eq v0, v1, :cond_6
  1942. const/16 v4, 0x9
  1943. if-ne v0, v4, :cond_3
  1944. goto :goto_0
  1945. :cond_3
  1946. const/16 v1, 0xa
  1947. if-ne v0, v1, :cond_4
  1948. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->nextUnquotedValue()Ljava/lang/String;
  1949. move-result-object v0
  1950. goto :goto_2
  1951. :cond_4
  1952. if-ne v0, v3, :cond_5
  1953. goto :goto_3
  1954. :cond_5
  1955. new-instance v0, Ljava/lang/IllegalStateException;
  1956. new-instance v1, Ljava/lang/StringBuilder;
  1957. invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
  1958. const-string v2, "Expected a double but was "
  1959. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1960. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
  1961. move-result-object v2
  1962. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
  1963. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
  1964. move-result-object v2
  1965. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  1966. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  1967. move-result-object v1
  1968. invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
  1969. throw v0
  1970. :cond_6
  1971. :goto_0
  1972. if-ne v0, v1, :cond_7
  1973. const/16 v0, 0x27
  1974. goto :goto_1
  1975. :cond_7
  1976. const/16 v0, 0x22
  1977. :goto_1
  1978. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->nextQuotedValue(C)Ljava/lang/String;
  1979. move-result-object v0
  1980. :goto_2
  1981. iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
  1982. :goto_3
  1983. iput v3, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  1984. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
  1985. invoke-static {v0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D
  1986. move-result-wide v0
  1987. iget-boolean v3, p0, Lcom/google/gson/stream/JsonReader;->lenient:Z
  1988. if-nez v3, :cond_9
  1989. invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z
  1990. move-result v3
  1991. if-nez v3, :cond_8
  1992. invoke-static {v0, v1}, Ljava/lang/Double;->isInfinite(D)Z
  1993. move-result v3
  1994. if-nez v3, :cond_8
  1995. goto :goto_4
  1996. :cond_8
  1997. new-instance v2, Lcom/google/gson/stream/MalformedJsonException;
  1998. new-instance v3, Ljava/lang/StringBuilder;
  1999. invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
  2000. const-string v4, "JSON forbids NaN and infinities: "
  2001. invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2002. invoke-virtual {v3, v0, v1}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
  2003. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
  2004. move-result-object v0
  2005. invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2006. invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  2007. move-result-object v0
  2008. invoke-direct {v2, v0}, Lcom/google/gson/stream/MalformedJsonException;-><init>(Ljava/lang/String;)V
  2009. throw v2
  2010. :cond_9
  2011. :goto_4
  2012. const/4 v3, 0x0
  2013. iput-object v3, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
  2014. iput v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2015. iget-object v2, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  2016. iget v3, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  2017. add-int/lit8 v3, v3, -0x1
  2018. aget v4, v2, v3
  2019. add-int/lit8 v4, v4, 0x1
  2020. aput v4, v2, v3
  2021. return-wide v0
  2022. .end method
  2023. .method public nextInt()I
  2024. .locals 8
  2025. .annotation system Ldalvik/annotation/Throws;
  2026. value = {
  2027. Ljava/io/IOException;
  2028. }
  2029. .end annotation
  2030. iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2031. if-nez v0, :cond_0
  2032. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
  2033. move-result v0
  2034. :cond_0
  2035. const/16 v1, 0xf
  2036. const-string v2, "Expected an int but was "
  2037. const/4 v3, 0x0
  2038. if-ne v0, v1, :cond_2
  2039. iget-wide v0, p0, Lcom/google/gson/stream/JsonReader;->peekedLong:J
  2040. long-to-int v4, v0
  2041. int-to-long v5, v4
  2042. cmp-long v7, v0, v5
  2043. if-nez v7, :cond_1
  2044. iput v3, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2045. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  2046. iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  2047. add-int/lit8 v1, v1, -0x1
  2048. aget v2, v0, v1
  2049. add-int/lit8 v2, v2, 0x1
  2050. aput v2, v0, v1
  2051. return v4
  2052. :cond_1
  2053. new-instance v0, Ljava/lang/NumberFormatException;
  2054. new-instance v1, Ljava/lang/StringBuilder;
  2055. invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
  2056. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2057. iget-wide v2, p0, Lcom/google/gson/stream/JsonReader;->peekedLong:J
  2058. invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
  2059. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
  2060. move-result-object v2
  2061. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2062. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  2063. move-result-object v1
  2064. invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
  2065. throw v0
  2066. :cond_2
  2067. const/16 v1, 0x10
  2068. if-ne v0, v1, :cond_3
  2069. new-instance v0, Ljava/lang/String;
  2070. iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  2071. iget v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  2072. iget v5, p0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
  2073. invoke-direct {v0, v1, v4, v5}, Ljava/lang/String;-><init>([CII)V
  2074. iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
  2075. iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  2076. iget v1, p0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
  2077. add-int/2addr v0, v1
  2078. iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  2079. goto :goto_4
  2080. :cond_3
  2081. const/16 v1, 0xa
  2082. const/16 v4, 0x8
  2083. if-eq v0, v4, :cond_5
  2084. const/16 v5, 0x9
  2085. if-eq v0, v5, :cond_5
  2086. if-ne v0, v1, :cond_4
  2087. goto :goto_0
  2088. :cond_4
  2089. new-instance v0, Ljava/lang/IllegalStateException;
  2090. new-instance v1, Ljava/lang/StringBuilder;
  2091. invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
  2092. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2093. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
  2094. move-result-object v2
  2095. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
  2096. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
  2097. move-result-object v2
  2098. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2099. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  2100. move-result-object v1
  2101. invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
  2102. throw v0
  2103. :cond_5
  2104. :goto_0
  2105. if-ne v0, v1, :cond_6
  2106. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->nextUnquotedValue()Ljava/lang/String;
  2107. move-result-object v0
  2108. :goto_1
  2109. iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
  2110. goto :goto_3
  2111. :cond_6
  2112. if-ne v0, v4, :cond_7
  2113. const/16 v0, 0x27
  2114. goto :goto_2
  2115. :cond_7
  2116. const/16 v0, 0x22
  2117. :goto_2
  2118. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->nextQuotedValue(C)Ljava/lang/String;
  2119. move-result-object v0
  2120. goto :goto_1
  2121. :goto_3
  2122. :try_start_0
  2123. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
  2124. invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
  2125. move-result v0
  2126. iput v3, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2127. iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  2128. iget v4, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  2129. add-int/lit8 v4, v4, -0x1
  2130. aget v5, v1, v4
  2131. add-int/lit8 v5, v5, 0x1
  2132. aput v5, v1, v4
  2133. :try_end_0
  2134. .catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
  2135. return v0
  2136. :catch_0
  2137. nop
  2138. :goto_4
  2139. const/16 v0, 0xb
  2140. iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2141. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
  2142. invoke-static {v0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D
  2143. move-result-wide v0
  2144. double-to-int v4, v0
  2145. int-to-double v5, v4
  2146. cmpl-double v7, v5, v0
  2147. if-nez v7, :cond_8
  2148. const/4 v0, 0x0
  2149. iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
  2150. iput v3, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2151. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  2152. iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  2153. add-int/lit8 v1, v1, -0x1
  2154. aget v2, v0, v1
  2155. add-int/lit8 v2, v2, 0x1
  2156. aput v2, v0, v1
  2157. return v4
  2158. :cond_8
  2159. new-instance v0, Ljava/lang/NumberFormatException;
  2160. new-instance v1, Ljava/lang/StringBuilder;
  2161. invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
  2162. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2163. iget-object v2, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
  2164. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2165. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
  2166. move-result-object v2
  2167. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2168. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  2169. move-result-object v1
  2170. invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
  2171. goto :goto_6
  2172. :goto_5
  2173. throw v0
  2174. :goto_6
  2175. goto :goto_5
  2176. .end method
  2177. .method public nextLong()J
  2178. .locals 9
  2179. .annotation system Ldalvik/annotation/Throws;
  2180. value = {
  2181. Ljava/io/IOException;
  2182. }
  2183. .end annotation
  2184. iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2185. if-nez v0, :cond_0
  2186. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
  2187. move-result v0
  2188. :cond_0
  2189. const/16 v1, 0xf
  2190. const/4 v2, 0x0
  2191. if-ne v0, v1, :cond_1
  2192. iput v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2193. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  2194. iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  2195. add-int/lit8 v1, v1, -0x1
  2196. aget v2, v0, v1
  2197. add-int/lit8 v2, v2, 0x1
  2198. aput v2, v0, v1
  2199. iget-wide v0, p0, Lcom/google/gson/stream/JsonReader;->peekedLong:J
  2200. return-wide v0
  2201. :cond_1
  2202. const/16 v1, 0x10
  2203. const-string v3, "Expected a long but was "
  2204. if-ne v0, v1, :cond_2
  2205. new-instance v0, Ljava/lang/String;
  2206. iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  2207. iget v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  2208. iget v5, p0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
  2209. invoke-direct {v0, v1, v4, v5}, Ljava/lang/String;-><init>([CII)V
  2210. iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
  2211. iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  2212. iget v1, p0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
  2213. add-int/2addr v0, v1
  2214. iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  2215. goto :goto_4
  2216. :cond_2
  2217. const/16 v1, 0xa
  2218. const/16 v4, 0x8
  2219. if-eq v0, v4, :cond_4
  2220. const/16 v5, 0x9
  2221. if-eq v0, v5, :cond_4
  2222. if-ne v0, v1, :cond_3
  2223. goto :goto_0
  2224. :cond_3
  2225. new-instance v0, Ljava/lang/IllegalStateException;
  2226. new-instance v1, Ljava/lang/StringBuilder;
  2227. invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
  2228. invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2229. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
  2230. move-result-object v2
  2231. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
  2232. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
  2233. move-result-object v2
  2234. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2235. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  2236. move-result-object v1
  2237. invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
  2238. throw v0
  2239. :cond_4
  2240. :goto_0
  2241. if-ne v0, v1, :cond_5
  2242. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->nextUnquotedValue()Ljava/lang/String;
  2243. move-result-object v0
  2244. :goto_1
  2245. iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
  2246. goto :goto_3
  2247. :cond_5
  2248. if-ne v0, v4, :cond_6
  2249. const/16 v0, 0x27
  2250. goto :goto_2
  2251. :cond_6
  2252. const/16 v0, 0x22
  2253. :goto_2
  2254. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->nextQuotedValue(C)Ljava/lang/String;
  2255. move-result-object v0
  2256. goto :goto_1
  2257. :goto_3
  2258. :try_start_0
  2259. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
  2260. invoke-static {v0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
  2261. move-result-wide v0
  2262. iput v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2263. iget-object v4, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  2264. iget v5, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  2265. add-int/lit8 v5, v5, -0x1
  2266. aget v6, v4, v5
  2267. add-int/lit8 v6, v6, 0x1
  2268. aput v6, v4, v5
  2269. :try_end_0
  2270. .catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
  2271. return-wide v0
  2272. :catch_0
  2273. nop
  2274. :goto_4
  2275. const/16 v0, 0xb
  2276. iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2277. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
  2278. invoke-static {v0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D
  2279. move-result-wide v0
  2280. double-to-long v4, v0
  2281. long-to-double v6, v4
  2282. cmpl-double v8, v6, v0
  2283. if-nez v8, :cond_7
  2284. const/4 v0, 0x0
  2285. iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
  2286. iput v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2287. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  2288. iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  2289. add-int/lit8 v1, v1, -0x1
  2290. aget v2, v0, v1
  2291. add-int/lit8 v2, v2, 0x1
  2292. aput v2, v0, v1
  2293. return-wide v4
  2294. :cond_7
  2295. new-instance v0, Ljava/lang/NumberFormatException;
  2296. new-instance v1, Ljava/lang/StringBuilder;
  2297. invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
  2298. invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2299. iget-object v2, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
  2300. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2301. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
  2302. move-result-object v2
  2303. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2304. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  2305. move-result-object v1
  2306. invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
  2307. goto :goto_6
  2308. :goto_5
  2309. throw v0
  2310. :goto_6
  2311. goto :goto_5
  2312. .end method
  2313. .method public nextName()Ljava/lang/String;
  2314. .locals 3
  2315. .annotation system Ldalvik/annotation/Throws;
  2316. value = {
  2317. Ljava/io/IOException;
  2318. }
  2319. .end annotation
  2320. iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2321. if-nez v0, :cond_0
  2322. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
  2323. move-result v0
  2324. :cond_0
  2325. const/16 v1, 0xe
  2326. if-ne v0, v1, :cond_1
  2327. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->nextUnquotedValue()Ljava/lang/String;
  2328. move-result-object v0
  2329. goto :goto_1
  2330. :cond_1
  2331. const/16 v1, 0xc
  2332. if-ne v0, v1, :cond_2
  2333. const/16 v0, 0x27
  2334. :goto_0
  2335. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->nextQuotedValue(C)Ljava/lang/String;
  2336. move-result-object v0
  2337. goto :goto_1
  2338. :cond_2
  2339. const/16 v1, 0xd
  2340. if-ne v0, v1, :cond_3
  2341. const/16 v0, 0x22
  2342. goto :goto_0
  2343. :goto_1
  2344. const/4 v1, 0x0
  2345. iput v1, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2346. iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->pathNames:[Ljava/lang/String;
  2347. iget v2, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  2348. add-int/lit8 v2, v2, -0x1
  2349. aput-object v0, v1, v2
  2350. return-object v0
  2351. :cond_3
  2352. new-instance v0, Ljava/lang/IllegalStateException;
  2353. new-instance v1, Ljava/lang/StringBuilder;
  2354. invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
  2355. const-string v2, "Expected a name but was "
  2356. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2357. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
  2358. move-result-object v2
  2359. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
  2360. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
  2361. move-result-object v2
  2362. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2363. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  2364. move-result-object v1
  2365. invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
  2366. goto :goto_3
  2367. :goto_2
  2368. throw v0
  2369. :goto_3
  2370. goto :goto_2
  2371. .end method
  2372. .method public nextNull()V
  2373. .locals 3
  2374. .annotation system Ldalvik/annotation/Throws;
  2375. value = {
  2376. Ljava/io/IOException;
  2377. }
  2378. .end annotation
  2379. iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2380. if-nez v0, :cond_0
  2381. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
  2382. move-result v0
  2383. :cond_0
  2384. const/4 v1, 0x7
  2385. if-ne v0, v1, :cond_1
  2386. const/4 v0, 0x0
  2387. iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2388. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  2389. iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  2390. add-int/lit8 v1, v1, -0x1
  2391. aget v2, v0, v1
  2392. add-int/lit8 v2, v2, 0x1
  2393. aput v2, v0, v1
  2394. return-void
  2395. :cond_1
  2396. new-instance v0, Ljava/lang/IllegalStateException;
  2397. new-instance v1, Ljava/lang/StringBuilder;
  2398. invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
  2399. const-string v2, "Expected null but was "
  2400. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2401. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
  2402. move-result-object v2
  2403. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
  2404. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
  2405. move-result-object v2
  2406. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2407. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  2408. move-result-object v1
  2409. invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
  2410. throw v0
  2411. .end method
  2412. .method public nextString()Ljava/lang/String;
  2413. .locals 4
  2414. .annotation system Ldalvik/annotation/Throws;
  2415. value = {
  2416. Ljava/io/IOException;
  2417. }
  2418. .end annotation
  2419. iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2420. if-nez v0, :cond_0
  2421. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
  2422. move-result v0
  2423. :cond_0
  2424. const/16 v1, 0xa
  2425. if-ne v0, v1, :cond_1
  2426. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->nextUnquotedValue()Ljava/lang/String;
  2427. move-result-object v0
  2428. goto :goto_1
  2429. :cond_1
  2430. const/16 v1, 0x8
  2431. if-ne v0, v1, :cond_2
  2432. const/16 v0, 0x27
  2433. :goto_0
  2434. invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->nextQuotedValue(C)Ljava/lang/String;
  2435. move-result-object v0
  2436. goto :goto_1
  2437. :cond_2
  2438. const/16 v1, 0x9
  2439. if-ne v0, v1, :cond_3
  2440. const/16 v0, 0x22
  2441. goto :goto_0
  2442. :cond_3
  2443. const/16 v1, 0xb
  2444. if-ne v0, v1, :cond_4
  2445. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
  2446. const/4 v1, 0x0
  2447. iput-object v1, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
  2448. goto :goto_1
  2449. :cond_4
  2450. const/16 v1, 0xf
  2451. if-ne v0, v1, :cond_5
  2452. iget-wide v0, p0, Lcom/google/gson/stream/JsonReader;->peekedLong:J
  2453. invoke-static {v0, v1}, Ljava/lang/Long;->toString(J)Ljava/lang/String;
  2454. move-result-object v0
  2455. goto :goto_1
  2456. :cond_5
  2457. const/16 v1, 0x10
  2458. if-ne v0, v1, :cond_6
  2459. new-instance v0, Ljava/lang/String;
  2460. iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
  2461. iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  2462. iget v3, p0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
  2463. invoke-direct {v0, v1, v2, v3}, Ljava/lang/String;-><init>([CII)V
  2464. iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  2465. iget v2, p0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
  2466. add-int/2addr v1, v2
  2467. iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  2468. :goto_1
  2469. const/4 v1, 0x0
  2470. iput v1, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2471. iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  2472. iget v2, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  2473. add-int/lit8 v2, v2, -0x1
  2474. aget v3, v1, v2
  2475. add-int/lit8 v3, v3, 0x1
  2476. aput v3, v1, v2
  2477. return-object v0
  2478. :cond_6
  2479. new-instance v0, Ljava/lang/IllegalStateException;
  2480. new-instance v1, Ljava/lang/StringBuilder;
  2481. invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
  2482. const-string v2, "Expected a string but was "
  2483. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2484. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
  2485. move-result-object v2
  2486. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
  2487. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
  2488. move-result-object v2
  2489. invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2490. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  2491. move-result-object v1
  2492. invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
  2493. goto :goto_3
  2494. :goto_2
  2495. throw v0
  2496. :goto_3
  2497. goto :goto_2
  2498. .end method
  2499. .method public peek()Lcom/google/gson/stream/JsonToken;
  2500. .locals 1
  2501. .annotation system Ldalvik/annotation/Throws;
  2502. value = {
  2503. Ljava/io/IOException;
  2504. }
  2505. .end annotation
  2506. iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2507. if-nez v0, :cond_0
  2508. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
  2509. move-result v0
  2510. :cond_0
  2511. packed-switch v0, :pswitch_data_0
  2512. new-instance v0, Ljava/lang/AssertionError;
  2513. invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
  2514. throw v0
  2515. :pswitch_0
  2516. sget-object v0, Lcom/google/gson/stream/JsonToken;->END_DOCUMENT:Lcom/google/gson/stream/JsonToken;
  2517. return-object v0
  2518. :pswitch_1
  2519. sget-object v0, Lcom/google/gson/stream/JsonToken;->NUMBER:Lcom/google/gson/stream/JsonToken;
  2520. return-object v0
  2521. :pswitch_2
  2522. sget-object v0, Lcom/google/gson/stream/JsonToken;->NAME:Lcom/google/gson/stream/JsonToken;
  2523. return-object v0
  2524. :pswitch_3
  2525. sget-object v0, Lcom/google/gson/stream/JsonToken;->STRING:Lcom/google/gson/stream/JsonToken;
  2526. return-object v0
  2527. :pswitch_4
  2528. sget-object v0, Lcom/google/gson/stream/JsonToken;->NULL:Lcom/google/gson/stream/JsonToken;
  2529. return-object v0
  2530. :pswitch_5
  2531. sget-object v0, Lcom/google/gson/stream/JsonToken;->BOOLEAN:Lcom/google/gson/stream/JsonToken;
  2532. return-object v0
  2533. :pswitch_6
  2534. sget-object v0, Lcom/google/gson/stream/JsonToken;->END_ARRAY:Lcom/google/gson/stream/JsonToken;
  2535. return-object v0
  2536. :pswitch_7
  2537. sget-object v0, Lcom/google/gson/stream/JsonToken;->BEGIN_ARRAY:Lcom/google/gson/stream/JsonToken;
  2538. return-object v0
  2539. :pswitch_8
  2540. sget-object v0, Lcom/google/gson/stream/JsonToken;->END_OBJECT:Lcom/google/gson/stream/JsonToken;
  2541. return-object v0
  2542. :pswitch_9
  2543. sget-object v0, Lcom/google/gson/stream/JsonToken;->BEGIN_OBJECT:Lcom/google/gson/stream/JsonToken;
  2544. return-object v0
  2545. nop
  2546. :pswitch_data_0
  2547. .packed-switch 0x1
  2548. :pswitch_9
  2549. :pswitch_8
  2550. :pswitch_7
  2551. :pswitch_6
  2552. :pswitch_5
  2553. :pswitch_5
  2554. :pswitch_4
  2555. :pswitch_3
  2556. :pswitch_3
  2557. :pswitch_3
  2558. :pswitch_3
  2559. :pswitch_2
  2560. :pswitch_2
  2561. :pswitch_2
  2562. :pswitch_1
  2563. :pswitch_1
  2564. :pswitch_0
  2565. .end packed-switch
  2566. .end method
  2567. .method public final setLenient(Z)V
  2568. .locals 0
  2569. iput-boolean p1, p0, Lcom/google/gson/stream/JsonReader;->lenient:Z
  2570. return-void
  2571. .end method
  2572. .method public skipValue()V
  2573. .locals 5
  2574. .annotation system Ldalvik/annotation/Throws;
  2575. value = {
  2576. Ljava/io/IOException;
  2577. }
  2578. .end annotation
  2579. const/4 v0, 0x0
  2580. const/4 v1, 0x0
  2581. :cond_0
  2582. iget v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2583. if-nez v2, :cond_1
  2584. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
  2585. move-result v2
  2586. :cond_1
  2587. const/4 v3, 0x3
  2588. const/4 v4, 0x1
  2589. if-ne v2, v3, :cond_2
  2590. invoke-direct {p0, v4}, Lcom/google/gson/stream/JsonReader;->push(I)V
  2591. :goto_0
  2592. add-int/lit8 v1, v1, 0x1
  2593. goto :goto_6
  2594. :cond_2
  2595. if-ne v2, v4, :cond_3
  2596. invoke-direct {p0, v3}, Lcom/google/gson/stream/JsonReader;->push(I)V
  2597. goto :goto_0
  2598. :cond_3
  2599. const/4 v3, 0x4
  2600. if-ne v2, v3, :cond_4
  2601. :goto_1
  2602. iget v2, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  2603. sub-int/2addr v2, v4
  2604. iput v2, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  2605. add-int/lit8 v1, v1, -0x1
  2606. goto :goto_6
  2607. :cond_4
  2608. const/4 v3, 0x2
  2609. if-ne v2, v3, :cond_5
  2610. goto :goto_1
  2611. :cond_5
  2612. const/16 v3, 0xe
  2613. if-eq v2, v3, :cond_b
  2614. const/16 v3, 0xa
  2615. if-ne v2, v3, :cond_6
  2616. goto :goto_5
  2617. :cond_6
  2618. const/16 v3, 0x8
  2619. if-eq v2, v3, :cond_a
  2620. const/16 v3, 0xc
  2621. if-ne v2, v3, :cond_7
  2622. goto :goto_3
  2623. :cond_7
  2624. const/16 v3, 0x9
  2625. if-eq v2, v3, :cond_9
  2626. const/16 v3, 0xd
  2627. if-ne v2, v3, :cond_8
  2628. goto :goto_2
  2629. :cond_8
  2630. const/16 v3, 0x10
  2631. if-ne v2, v3, :cond_c
  2632. iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  2633. iget v3, p0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
  2634. add-int/2addr v2, v3
  2635. iput v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
  2636. goto :goto_6
  2637. :cond_9
  2638. :goto_2
  2639. const/16 v2, 0x22
  2640. goto :goto_4
  2641. :cond_a
  2642. :goto_3
  2643. const/16 v2, 0x27
  2644. :goto_4
  2645. invoke-direct {p0, v2}, Lcom/google/gson/stream/JsonReader;->skipQuotedValue(C)V
  2646. goto :goto_6
  2647. :cond_b
  2648. :goto_5
  2649. invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->skipUnquotedValue()V
  2650. :cond_c
  2651. :goto_6
  2652. iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
  2653. if-nez v1, :cond_0
  2654. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
  2655. iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
  2656. add-int/lit8 v2, v1, -0x1
  2657. aget v3, v0, v2
  2658. add-int/2addr v3, v4
  2659. aput v3, v0, v2
  2660. iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathNames:[Ljava/lang/String;
  2661. sub-int/2addr v1, v4
  2662. const-string v2, "null"
  2663. aput-object v2, v0, v1
  2664. return-void
  2665. .end method
  2666. .method public toString()Ljava/lang/String;
  2667. .locals 2
  2668. new-instance v0, Ljava/lang/StringBuilder;
  2669. invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
  2670. invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
  2671. move-result-object v1
  2672. invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
  2673. move-result-object v1
  2674. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2675. invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
  2676. move-result-object v1
  2677. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  2678. invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  2679. move-result-object v0
  2680. return-object v0
  2681. .end method