PageRenderTime 2973ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 1ms

/QingTingFanBianYi/src/com/alibaba/fastjson/serializer/CollectionSerializer.java

https://gitlab.com/qt-prometheus/qt-prometheus
Java | 195 lines | 10 code | 3 blank | 182 comment | 0 complexity | b6ee5e49f95c661ad00dc0c95e717e01 MD5 | raw file
  1. package com.alibaba.fastjson.serializer;
  2. public class CollectionSerializer
  3. implements ObjectSerializer
  4. {
  5. public static final CollectionSerializer instance = new CollectionSerializer();
  6. // ERROR //
  7. public void write(JSONSerializer paramJSONSerializer, Object paramObject1, Object paramObject2, java.lang.reflect.Type paramType)
  8. throws java.io.IOException
  9. {
  10. // Byte code:
  11. // 0: aload_1
  12. // 1: invokevirtual 27 com/alibaba/fastjson/serializer/JSONSerializer:getWriter ()Lcom/alibaba/fastjson/serializer/SerializeWriter;
  13. // 4: astore 7
  14. // 6: aload_2
  15. // 7: ifnonnull +28 -> 35
  16. // 10: aload 7
  17. // 12: getstatic 33 com/alibaba/fastjson/serializer/SerializerFeature:WriteNullListAsEmpty Lcom/alibaba/fastjson/serializer/SerializerFeature;
  18. // 15: invokevirtual 39 com/alibaba/fastjson/serializer/SerializeWriter:isEnabled (Lcom/alibaba/fastjson/serializer/SerializerFeature;)Z
  19. // 18: ifeq +11 -> 29
  20. // 21: aload 7
  21. // 23: ldc 41
  22. // 25: invokevirtual 44 com/alibaba/fastjson/serializer/SerializeWriter:write (Ljava/lang/String;)V
  23. // 28: return
  24. // 29: aload 7
  25. // 31: invokevirtual 47 com/alibaba/fastjson/serializer/SerializeWriter:writeNull ()V
  26. // 34: return
  27. // 35: aconst_null
  28. // 36: astore 6
  29. // 38: aload 6
  30. // 40: astore 5
  31. // 42: aload_1
  32. // 43: getstatic 50 com/alibaba/fastjson/serializer/SerializerFeature:WriteClassName Lcom/alibaba/fastjson/serializer/SerializerFeature;
  33. // 46: invokevirtual 51 com/alibaba/fastjson/serializer/JSONSerializer:isEnabled (Lcom/alibaba/fastjson/serializer/SerializerFeature;)Z
  34. // 49: ifeq +29 -> 78
  35. // 52: aload 6
  36. // 54: astore 5
  37. // 56: aload 4
  38. // 58: instanceof 53
  39. // 61: ifeq +17 -> 78
  40. // 64: aload 4
  41. // 66: checkcast 53 java/lang/reflect/ParameterizedType
  42. // 69: invokeinterface 57 1 0
  43. // 74: iconst_0
  44. // 75: aaload
  45. // 76: astore 5
  46. // 78: aload_2
  47. // 79: checkcast 59 java/util/Collection
  48. // 82: astore 6
  49. // 84: aload_1
  50. // 85: invokevirtual 63 com/alibaba/fastjson/serializer/JSONSerializer:getContext ()Lcom/alibaba/fastjson/serializer/SerialContext;
  51. // 88: astore 4
  52. // 90: aload_1
  53. // 91: aload 4
  54. // 93: aload_2
  55. // 94: aload_3
  56. // 95: invokevirtual 67 com/alibaba/fastjson/serializer/JSONSerializer:setContext (Lcom/alibaba/fastjson/serializer/SerialContext;Ljava/lang/Object;Ljava/lang/Object;)V
  57. // 98: aload_1
  58. // 99: getstatic 50 com/alibaba/fastjson/serializer/SerializerFeature:WriteClassName Lcom/alibaba/fastjson/serializer/SerializerFeature;
  59. // 102: invokevirtual 51 com/alibaba/fastjson/serializer/JSONSerializer:isEnabled (Lcom/alibaba/fastjson/serializer/SerializerFeature;)Z
  60. // 105: ifeq +21 -> 126
  61. // 108: ldc 69
  62. // 110: aload 6
  63. // 112: invokevirtual 73 java/lang/Object:getClass ()Ljava/lang/Class;
  64. // 115: if_acmpne +81 -> 196
  65. // 118: aload 7
  66. // 120: ldc 75
  67. // 122: invokevirtual 79 com/alibaba/fastjson/serializer/SerializeWriter:append (Ljava/lang/CharSequence;)Lcom/alibaba/fastjson/serializer/SerializeWriter;
  68. // 125: pop
  69. // 126: aload 7
  70. // 128: bipush 91
  71. // 130: invokevirtual 82 com/alibaba/fastjson/serializer/SerializeWriter:append (C)Lcom/alibaba/fastjson/serializer/SerializeWriter;
  72. // 133: pop
  73. // 134: aload 6
  74. // 136: invokeinterface 86 1 0
  75. // 141: astore_2
  76. // 142: iconst_0
  77. // 143: istore 8
  78. // 145: aload_2
  79. // 146: invokeinterface 92 1 0
  80. // 151: ifeq +171 -> 322
  81. // 154: aload_2
  82. // 155: invokeinterface 96 1 0
  83. // 160: astore_3
  84. // 161: iload 8
  85. // 163: iconst_1
  86. // 164: iadd
  87. // 165: istore 9
  88. // 167: iload 8
  89. // 169: ifeq +11 -> 180
  90. // 172: aload 7
  91. // 174: bipush 44
  92. // 176: invokevirtual 82 com/alibaba/fastjson/serializer/SerializeWriter:append (C)Lcom/alibaba/fastjson/serializer/SerializeWriter;
  93. // 179: pop
  94. // 180: aload_3
  95. // 181: ifnonnull +36 -> 217
  96. // 184: aload 7
  97. // 186: invokevirtual 47 com/alibaba/fastjson/serializer/SerializeWriter:writeNull ()V
  98. // 189: iload 9
  99. // 191: istore 8
  100. // 193: goto -48 -> 145
  101. // 196: ldc 98
  102. // 198: aload 6
  103. // 200: invokevirtual 73 java/lang/Object:getClass ()Ljava/lang/Class;
  104. // 203: if_acmpne -77 -> 126
  105. // 206: aload 7
  106. // 208: ldc 100
  107. // 210: invokevirtual 79 com/alibaba/fastjson/serializer/SerializeWriter:append (Ljava/lang/CharSequence;)Lcom/alibaba/fastjson/serializer/SerializeWriter;
  108. // 213: pop
  109. // 214: goto -88 -> 126
  110. // 217: aload_3
  111. // 218: invokevirtual 73 java/lang/Object:getClass ()Ljava/lang/Class;
  112. // 221: astore 6
  113. // 223: aload 6
  114. // 225: ldc 102
  115. // 227: if_acmpne +22 -> 249
  116. // 230: aload 7
  117. // 232: aload_3
  118. // 233: checkcast 102 java/lang/Integer
  119. // 236: invokevirtual 106 java/lang/Integer:intValue ()I
  120. // 239: invokevirtual 110 com/alibaba/fastjson/serializer/SerializeWriter:writeInt (I)V
  121. // 242: iload 9
  122. // 244: istore 8
  123. // 246: goto -101 -> 145
  124. // 249: aload 6
  125. // 251: ldc 112
  126. // 253: if_acmpne +40 -> 293
  127. // 256: aload 7
  128. // 258: aload_3
  129. // 259: checkcast 112 java/lang/Long
  130. // 262: invokevirtual 116 java/lang/Long:longValue ()J
  131. // 265: invokevirtual 120 com/alibaba/fastjson/serializer/SerializeWriter:writeLong (J)V
  132. // 268: aload 7
  133. // 270: getstatic 50 com/alibaba/fastjson/serializer/SerializerFeature:WriteClassName Lcom/alibaba/fastjson/serializer/SerializerFeature;
  134. // 273: invokevirtual 39 com/alibaba/fastjson/serializer/SerializeWriter:isEnabled (Lcom/alibaba/fastjson/serializer/SerializerFeature;)Z
  135. // 276: ifeq +74 -> 350
  136. // 279: aload 7
  137. // 281: bipush 76
  138. // 283: invokevirtual 123 com/alibaba/fastjson/serializer/SerializeWriter:write (C)V
  139. // 286: iload 9
  140. // 288: istore 8
  141. // 290: goto -145 -> 145
  142. // 293: aload_1
  143. // 294: aload 6
  144. // 296: invokevirtual 127 com/alibaba/fastjson/serializer/JSONSerializer:getObjectWriter (Ljava/lang/Class;)Lcom/alibaba/fastjson/serializer/ObjectSerializer;
  145. // 299: aload_1
  146. // 300: aload_3
  147. // 301: iload 9
  148. // 303: iconst_1
  149. // 304: isub
  150. // 305: invokestatic 131 java/lang/Integer:valueOf (I)Ljava/lang/Integer;
  151. // 308: aload 5
  152. // 310: invokeinterface 133 5 0
  153. // 315: iload 9
  154. // 317: istore 8
  155. // 319: goto -174 -> 145
  156. // 322: aload 7
  157. // 324: bipush 93
  158. // 326: invokevirtual 82 com/alibaba/fastjson/serializer/SerializeWriter:append (C)Lcom/alibaba/fastjson/serializer/SerializeWriter;
  159. // 329: pop
  160. // 330: aload_1
  161. // 331: aload 4
  162. // 333: invokevirtual 136 com/alibaba/fastjson/serializer/JSONSerializer:setContext (Lcom/alibaba/fastjson/serializer/SerialContext;)V
  163. // 336: return
  164. // 337: astore_2
  165. // 338: aload_1
  166. // 339: aload 4
  167. // 341: invokevirtual 136 com/alibaba/fastjson/serializer/JSONSerializer:setContext (Lcom/alibaba/fastjson/serializer/SerialContext;)V
  168. // 344: aload_2
  169. // 345: athrow
  170. // 346: astore_2
  171. // 347: goto -9 -> 338
  172. // 350: iload 9
  173. // 352: istore 8
  174. // 354: goto -209 -> 145
  175. //
  176. // Exception table:
  177. // from to target type
  178. // 126 142 337 finally
  179. // 172 180 337 finally
  180. // 184 189 337 finally
  181. // 217 223 337 finally
  182. // 230 242 337 finally
  183. // 256 286 337 finally
  184. // 293 315 337 finally
  185. // 145 161 346 finally
  186. // 322 330 346 finally
  187. }
  188. }
  189. /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar
  190. * Qualified Name: com.alibaba.fastjson.serializer.CollectionSerializer
  191. * JD-Core Version: 0.6.2
  192. */