JsonArray.smali 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. .class public final Lcom/google/gson/JsonArray;
  2. .super Lcom/google/gson/JsonElement;
  3. .source ""
  4. # interfaces
  5. .implements Ljava/lang/Iterable;
  6. # annotations
  7. .annotation system Ldalvik/annotation/Signature;
  8. value = {
  9. "Lcom/google/gson/JsonElement;",
  10. "Ljava/lang/Iterable<",
  11. "Lcom/google/gson/JsonElement;",
  12. ">;"
  13. }
  14. .end annotation
  15. # instance fields
  16. .field private final elements:Ljava/util/List;
  17. .annotation system Ldalvik/annotation/Signature;
  18. value = {
  19. "Ljava/util/List<",
  20. "Lcom/google/gson/JsonElement;",
  21. ">;"
  22. }
  23. .end annotation
  24. .end field
  25. # direct methods
  26. .method public constructor <init>()V
  27. .locals 1
  28. invoke-direct {p0}, Lcom/google/gson/JsonElement;-><init>()V
  29. new-instance v0, Ljava/util/ArrayList;
  30. invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
  31. iput-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  32. return-void
  33. .end method
  34. .method public constructor <init>(I)V
  35. .locals 1
  36. invoke-direct {p0}, Lcom/google/gson/JsonElement;-><init>()V
  37. new-instance v0, Ljava/util/ArrayList;
  38. invoke-direct {v0, p1}, Ljava/util/ArrayList;-><init>(I)V
  39. iput-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  40. return-void
  41. .end method
  42. # virtual methods
  43. .method public add(Lcom/google/gson/JsonElement;)V
  44. .locals 1
  45. if-nez p1, :cond_0
  46. sget-object p1, Lcom/google/gson/JsonNull;->INSTANCE:Lcom/google/gson/JsonNull;
  47. :cond_0
  48. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  49. invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
  50. return-void
  51. .end method
  52. .method public add(Ljava/lang/Boolean;)V
  53. .locals 2
  54. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  55. if-nez p1, :cond_0
  56. sget-object p1, Lcom/google/gson/JsonNull;->INSTANCE:Lcom/google/gson/JsonNull;
  57. goto :goto_0
  58. :cond_0
  59. new-instance v1, Lcom/google/gson/JsonPrimitive;
  60. invoke-direct {v1, p1}, Lcom/google/gson/JsonPrimitive;-><init>(Ljava/lang/Boolean;)V
  61. move-object p1, v1
  62. :goto_0
  63. invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
  64. return-void
  65. .end method
  66. .method public add(Ljava/lang/Character;)V
  67. .locals 2
  68. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  69. if-nez p1, :cond_0
  70. sget-object p1, Lcom/google/gson/JsonNull;->INSTANCE:Lcom/google/gson/JsonNull;
  71. goto :goto_0
  72. :cond_0
  73. new-instance v1, Lcom/google/gson/JsonPrimitive;
  74. invoke-direct {v1, p1}, Lcom/google/gson/JsonPrimitive;-><init>(Ljava/lang/Character;)V
  75. move-object p1, v1
  76. :goto_0
  77. invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
  78. return-void
  79. .end method
  80. .method public add(Ljava/lang/Number;)V
  81. .locals 2
  82. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  83. if-nez p1, :cond_0
  84. sget-object p1, Lcom/google/gson/JsonNull;->INSTANCE:Lcom/google/gson/JsonNull;
  85. goto :goto_0
  86. :cond_0
  87. new-instance v1, Lcom/google/gson/JsonPrimitive;
  88. invoke-direct {v1, p1}, Lcom/google/gson/JsonPrimitive;-><init>(Ljava/lang/Number;)V
  89. move-object p1, v1
  90. :goto_0
  91. invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
  92. return-void
  93. .end method
  94. .method public add(Ljava/lang/String;)V
  95. .locals 2
  96. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  97. if-nez p1, :cond_0
  98. sget-object p1, Lcom/google/gson/JsonNull;->INSTANCE:Lcom/google/gson/JsonNull;
  99. goto :goto_0
  100. :cond_0
  101. new-instance v1, Lcom/google/gson/JsonPrimitive;
  102. invoke-direct {v1, p1}, Lcom/google/gson/JsonPrimitive;-><init>(Ljava/lang/String;)V
  103. move-object p1, v1
  104. :goto_0
  105. invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
  106. return-void
  107. .end method
  108. .method public addAll(Lcom/google/gson/JsonArray;)V
  109. .locals 1
  110. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  111. iget-object p1, p1, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  112. invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
  113. return-void
  114. .end method
  115. .method public contains(Lcom/google/gson/JsonElement;)Z
  116. .locals 1
  117. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  118. invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
  119. move-result p1
  120. return p1
  121. .end method
  122. .method deepCopy()Lcom/google/gson/JsonArray;
  123. .locals 3
  124. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  125. invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
  126. move-result v0
  127. if-nez v0, :cond_1
  128. new-instance v0, Lcom/google/gson/JsonArray;
  129. iget-object v1, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  130. invoke-interface {v1}, Ljava/util/List;->size()I
  131. move-result v1
  132. invoke-direct {v0, v1}, Lcom/google/gson/JsonArray;-><init>(I)V
  133. iget-object v1, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  134. invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
  135. move-result-object v1
  136. :goto_0
  137. invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
  138. move-result v2
  139. if-eqz v2, :cond_0
  140. invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
  141. move-result-object v2
  142. check-cast v2, Lcom/google/gson/JsonElement;
  143. invoke-virtual {v2}, Lcom/google/gson/JsonElement;->deepCopy()Lcom/google/gson/JsonElement;
  144. move-result-object v2
  145. invoke-virtual {v0, v2}, Lcom/google/gson/JsonArray;->add(Lcom/google/gson/JsonElement;)V
  146. goto :goto_0
  147. :cond_0
  148. return-object v0
  149. :cond_1
  150. new-instance v0, Lcom/google/gson/JsonArray;
  151. invoke-direct {v0}, Lcom/google/gson/JsonArray;-><init>()V
  152. return-object v0
  153. .end method
  154. .method bridge synthetic deepCopy()Lcom/google/gson/JsonElement;
  155. .locals 1
  156. invoke-virtual {p0}, Lcom/google/gson/JsonArray;->deepCopy()Lcom/google/gson/JsonArray;
  157. move-result-object v0
  158. return-object v0
  159. .end method
  160. .method public equals(Ljava/lang/Object;)Z
  161. .locals 1
  162. if-eq p1, p0, :cond_1
  163. instance-of v0, p1, Lcom/google/gson/JsonArray;
  164. if-eqz v0, :cond_0
  165. check-cast p1, Lcom/google/gson/JsonArray;
  166. iget-object p1, p1, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  167. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  168. invoke-interface {p1, v0}, Ljava/util/List;->equals(Ljava/lang/Object;)Z
  169. move-result p1
  170. if-eqz p1, :cond_0
  171. goto :goto_0
  172. :cond_0
  173. const/4 p1, 0x0
  174. goto :goto_1
  175. :cond_1
  176. :goto_0
  177. const/4 p1, 0x1
  178. :goto_1
  179. return p1
  180. .end method
  181. .method public get(I)Lcom/google/gson/JsonElement;
  182. .locals 1
  183. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  184. invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
  185. move-result-object p1
  186. check-cast p1, Lcom/google/gson/JsonElement;
  187. return-object p1
  188. .end method
  189. .method public getAsBigDecimal()Ljava/math/BigDecimal;
  190. .locals 2
  191. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  192. invoke-interface {v0}, Ljava/util/List;->size()I
  193. move-result v0
  194. const/4 v1, 0x1
  195. if-ne v0, v1, :cond_0
  196. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  197. const/4 v1, 0x0
  198. invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
  199. move-result-object v0
  200. check-cast v0, Lcom/google/gson/JsonElement;
  201. invoke-virtual {v0}, Lcom/google/gson/JsonElement;->getAsBigDecimal()Ljava/math/BigDecimal;
  202. move-result-object v0
  203. return-object v0
  204. :cond_0
  205. new-instance v0, Ljava/lang/IllegalStateException;
  206. invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
  207. throw v0
  208. .end method
  209. .method public getAsBigInteger()Ljava/math/BigInteger;
  210. .locals 2
  211. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  212. invoke-interface {v0}, Ljava/util/List;->size()I
  213. move-result v0
  214. const/4 v1, 0x1
  215. if-ne v0, v1, :cond_0
  216. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  217. const/4 v1, 0x0
  218. invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
  219. move-result-object v0
  220. check-cast v0, Lcom/google/gson/JsonElement;
  221. invoke-virtual {v0}, Lcom/google/gson/JsonElement;->getAsBigInteger()Ljava/math/BigInteger;
  222. move-result-object v0
  223. return-object v0
  224. :cond_0
  225. new-instance v0, Ljava/lang/IllegalStateException;
  226. invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
  227. throw v0
  228. .end method
  229. .method public getAsBoolean()Z
  230. .locals 2
  231. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  232. invoke-interface {v0}, Ljava/util/List;->size()I
  233. move-result v0
  234. const/4 v1, 0x1
  235. if-ne v0, v1, :cond_0
  236. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  237. const/4 v1, 0x0
  238. invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
  239. move-result-object v0
  240. check-cast v0, Lcom/google/gson/JsonElement;
  241. invoke-virtual {v0}, Lcom/google/gson/JsonElement;->getAsBoolean()Z
  242. move-result v0
  243. return v0
  244. :cond_0
  245. new-instance v0, Ljava/lang/IllegalStateException;
  246. invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
  247. throw v0
  248. .end method
  249. .method public getAsByte()B
  250. .locals 2
  251. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  252. invoke-interface {v0}, Ljava/util/List;->size()I
  253. move-result v0
  254. const/4 v1, 0x1
  255. if-ne v0, v1, :cond_0
  256. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  257. const/4 v1, 0x0
  258. invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
  259. move-result-object v0
  260. check-cast v0, Lcom/google/gson/JsonElement;
  261. invoke-virtual {v0}, Lcom/google/gson/JsonElement;->getAsByte()B
  262. move-result v0
  263. return v0
  264. :cond_0
  265. new-instance v0, Ljava/lang/IllegalStateException;
  266. invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
  267. throw v0
  268. .end method
  269. .method public getAsCharacter()C
  270. .locals 2
  271. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  272. invoke-interface {v0}, Ljava/util/List;->size()I
  273. move-result v0
  274. const/4 v1, 0x1
  275. if-ne v0, v1, :cond_0
  276. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  277. const/4 v1, 0x0
  278. invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
  279. move-result-object v0
  280. check-cast v0, Lcom/google/gson/JsonElement;
  281. invoke-virtual {v0}, Lcom/google/gson/JsonElement;->getAsCharacter()C
  282. move-result v0
  283. return v0
  284. :cond_0
  285. new-instance v0, Ljava/lang/IllegalStateException;
  286. invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
  287. throw v0
  288. .end method
  289. .method public getAsDouble()D
  290. .locals 2
  291. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  292. invoke-interface {v0}, Ljava/util/List;->size()I
  293. move-result v0
  294. const/4 v1, 0x1
  295. if-ne v0, v1, :cond_0
  296. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  297. const/4 v1, 0x0
  298. invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
  299. move-result-object v0
  300. check-cast v0, Lcom/google/gson/JsonElement;
  301. invoke-virtual {v0}, Lcom/google/gson/JsonElement;->getAsDouble()D
  302. move-result-wide v0
  303. return-wide v0
  304. :cond_0
  305. new-instance v0, Ljava/lang/IllegalStateException;
  306. invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
  307. throw v0
  308. .end method
  309. .method public getAsFloat()F
  310. .locals 2
  311. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  312. invoke-interface {v0}, Ljava/util/List;->size()I
  313. move-result v0
  314. const/4 v1, 0x1
  315. if-ne v0, v1, :cond_0
  316. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  317. const/4 v1, 0x0
  318. invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
  319. move-result-object v0
  320. check-cast v0, Lcom/google/gson/JsonElement;
  321. invoke-virtual {v0}, Lcom/google/gson/JsonElement;->getAsFloat()F
  322. move-result v0
  323. return v0
  324. :cond_0
  325. new-instance v0, Ljava/lang/IllegalStateException;
  326. invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
  327. throw v0
  328. .end method
  329. .method public getAsInt()I
  330. .locals 2
  331. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  332. invoke-interface {v0}, Ljava/util/List;->size()I
  333. move-result v0
  334. const/4 v1, 0x1
  335. if-ne v0, v1, :cond_0
  336. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  337. const/4 v1, 0x0
  338. invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
  339. move-result-object v0
  340. check-cast v0, Lcom/google/gson/JsonElement;
  341. invoke-virtual {v0}, Lcom/google/gson/JsonElement;->getAsInt()I
  342. move-result v0
  343. return v0
  344. :cond_0
  345. new-instance v0, Ljava/lang/IllegalStateException;
  346. invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
  347. throw v0
  348. .end method
  349. .method public getAsLong()J
  350. .locals 2
  351. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  352. invoke-interface {v0}, Ljava/util/List;->size()I
  353. move-result v0
  354. const/4 v1, 0x1
  355. if-ne v0, v1, :cond_0
  356. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  357. const/4 v1, 0x0
  358. invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
  359. move-result-object v0
  360. check-cast v0, Lcom/google/gson/JsonElement;
  361. invoke-virtual {v0}, Lcom/google/gson/JsonElement;->getAsLong()J
  362. move-result-wide v0
  363. return-wide v0
  364. :cond_0
  365. new-instance v0, Ljava/lang/IllegalStateException;
  366. invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
  367. throw v0
  368. .end method
  369. .method public getAsNumber()Ljava/lang/Number;
  370. .locals 2
  371. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  372. invoke-interface {v0}, Ljava/util/List;->size()I
  373. move-result v0
  374. const/4 v1, 0x1
  375. if-ne v0, v1, :cond_0
  376. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  377. const/4 v1, 0x0
  378. invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
  379. move-result-object v0
  380. check-cast v0, Lcom/google/gson/JsonElement;
  381. invoke-virtual {v0}, Lcom/google/gson/JsonElement;->getAsNumber()Ljava/lang/Number;
  382. move-result-object v0
  383. return-object v0
  384. :cond_0
  385. new-instance v0, Ljava/lang/IllegalStateException;
  386. invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
  387. throw v0
  388. .end method
  389. .method public getAsShort()S
  390. .locals 2
  391. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  392. invoke-interface {v0}, Ljava/util/List;->size()I
  393. move-result v0
  394. const/4 v1, 0x1
  395. if-ne v0, v1, :cond_0
  396. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  397. const/4 v1, 0x0
  398. invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
  399. move-result-object v0
  400. check-cast v0, Lcom/google/gson/JsonElement;
  401. invoke-virtual {v0}, Lcom/google/gson/JsonElement;->getAsShort()S
  402. move-result v0
  403. return v0
  404. :cond_0
  405. new-instance v0, Ljava/lang/IllegalStateException;
  406. invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
  407. throw v0
  408. .end method
  409. .method public getAsString()Ljava/lang/String;
  410. .locals 2
  411. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  412. invoke-interface {v0}, Ljava/util/List;->size()I
  413. move-result v0
  414. const/4 v1, 0x1
  415. if-ne v0, v1, :cond_0
  416. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  417. const/4 v1, 0x0
  418. invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
  419. move-result-object v0
  420. check-cast v0, Lcom/google/gson/JsonElement;
  421. invoke-virtual {v0}, Lcom/google/gson/JsonElement;->getAsString()Ljava/lang/String;
  422. move-result-object v0
  423. return-object v0
  424. :cond_0
  425. new-instance v0, Ljava/lang/IllegalStateException;
  426. invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
  427. throw v0
  428. .end method
  429. .method public hashCode()I
  430. .locals 1
  431. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  432. invoke-interface {v0}, Ljava/util/List;->hashCode()I
  433. move-result v0
  434. return v0
  435. .end method
  436. .method public iterator()Ljava/util/Iterator;
  437. .locals 1
  438. .annotation system Ldalvik/annotation/Signature;
  439. value = {
  440. "()",
  441. "Ljava/util/Iterator<",
  442. "Lcom/google/gson/JsonElement;",
  443. ">;"
  444. }
  445. .end annotation
  446. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  447. invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
  448. move-result-object v0
  449. return-object v0
  450. .end method
  451. .method public remove(I)Lcom/google/gson/JsonElement;
  452. .locals 1
  453. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  454. invoke-interface {v0, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;
  455. move-result-object p1
  456. check-cast p1, Lcom/google/gson/JsonElement;
  457. return-object p1
  458. .end method
  459. .method public remove(Lcom/google/gson/JsonElement;)Z
  460. .locals 1
  461. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  462. invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
  463. move-result p1
  464. return p1
  465. .end method
  466. .method public set(ILcom/google/gson/JsonElement;)Lcom/google/gson/JsonElement;
  467. .locals 1
  468. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  469. invoke-interface {v0, p1, p2}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
  470. move-result-object p1
  471. check-cast p1, Lcom/google/gson/JsonElement;
  472. return-object p1
  473. .end method
  474. .method public size()I
  475. .locals 1
  476. iget-object v0, p0, Lcom/google/gson/JsonArray;->elements:Ljava/util/List;
  477. invoke-interface {v0}, Ljava/util/List;->size()I
  478. move-result v0
  479. return v0
  480. .end method