/QingTingFanBianYi/src/com/alibaba/fastjson/parser/deserializer/DateDeserializer.java

https://gitlab.com/qt-prometheus/qt-prometheus · Java · 105 lines · 13 code · 4 blank · 88 comment · 0 complexity · 394777b08903fbdacf0561d3c1c1ffe3 MD5 · raw file

  1. package com.alibaba.fastjson.parser.deserializer;
  2. public class DateDeserializer extends AbstractDateDeserializer
  3. implements ObjectDeserializer
  4. {
  5. public static final DateDeserializer instance = new DateDeserializer();
  6. // ERROR //
  7. protected <T> T cast(com.alibaba.fastjson.parser.DefaultJSONParser paramDefaultJSONParser, java.lang.reflect.Type paramType, java.lang.Object paramObject1, java.lang.Object paramObject2)
  8. {
  9. // Byte code:
  10. // 0: aload 4
  11. // 2: ifnonnull +7 -> 9
  12. // 5: aconst_null
  13. // 6: astore_2
  14. // 7: aload_2
  15. // 8: areturn
  16. // 9: aload 4
  17. // 11: astore_2
  18. // 12: aload 4
  19. // 14: instanceof 23
  20. // 17: ifne -10 -> 7
  21. // 20: aload 4
  22. // 22: instanceof 25
  23. // 25: ifeq +19 -> 44
  24. // 28: new 23 java/util/Date
  25. // 31: dup
  26. // 32: aload 4
  27. // 34: checkcast 25 java/lang/Number
  28. // 37: invokevirtual 29 java/lang/Number:longValue ()J
  29. // 40: invokespecial 32 java/util/Date:<init> (J)V
  30. // 43: areturn
  31. // 44: aload 4
  32. // 46: instanceof 34
  33. // 49: ifeq +86 -> 135
  34. // 52: aload 4
  35. // 54: checkcast 34 java/lang/String
  36. // 57: astore_2
  37. // 58: aload_2
  38. // 59: invokevirtual 38 java/lang/String:length ()I
  39. // 62: ifne +5 -> 67
  40. // 65: aconst_null
  41. // 66: areturn
  42. // 67: new 40 com/alibaba/fastjson/parser/JSONScanner
  43. // 70: dup
  44. // 71: aload_2
  45. // 72: invokespecial 43 com/alibaba/fastjson/parser/JSONScanner:<init> (Ljava/lang/String;)V
  46. // 75: astore_3
  47. // 76: aload_3
  48. // 77: iconst_0
  49. // 78: invokevirtual 47 com/alibaba/fastjson/parser/JSONScanner:scanISO8601DateIfMatch (Z)Z
  50. // 81: ifeq +17 -> 98
  51. // 84: aload_3
  52. // 85: invokevirtual 51 com/alibaba/fastjson/parser/JSONScanner:getCalendar ()Ljava/util/Calendar;
  53. // 88: invokevirtual 57 java/util/Calendar:getTime ()Ljava/util/Date;
  54. // 91: astore_1
  55. // 92: aload_3
  56. // 93: invokevirtual 60 com/alibaba/fastjson/parser/JSONScanner:close ()V
  57. // 96: aload_1
  58. // 97: areturn
  59. // 98: aload_3
  60. // 99: invokevirtual 60 com/alibaba/fastjson/parser/JSONScanner:close ()V
  61. // 102: aload_1
  62. // 103: invokevirtual 66 com/alibaba/fastjson/parser/DefaultJSONParser:getDateFormat ()Ljava/text/DateFormat;
  63. // 106: astore_1
  64. // 107: aload_1
  65. // 108: aload_2
  66. // 109: invokevirtual 72 java/text/DateFormat:parse (Ljava/lang/String;)Ljava/util/Date;
  67. // 112: astore_1
  68. // 113: aload_1
  69. // 114: areturn
  70. // 115: astore_1
  71. // 116: aload_3
  72. // 117: invokevirtual 60 com/alibaba/fastjson/parser/JSONScanner:close ()V
  73. // 120: aload_1
  74. // 121: athrow
  75. // 122: astore_1
  76. // 123: new 23 java/util/Date
  77. // 126: dup
  78. // 127: aload_2
  79. // 128: invokestatic 78 java/lang/Long:parseLong (Ljava/lang/String;)J
  80. // 131: invokespecial 32 java/util/Date:<init> (J)V
  81. // 134: areturn
  82. // 135: new 80 com/alibaba/fastjson/JSONException
  83. // 138: dup
  84. // 139: ldc 82
  85. // 141: invokespecial 83 com/alibaba/fastjson/JSONException:<init> (Ljava/lang/String;)V
  86. // 144: athrow
  87. //
  88. // Exception table:
  89. // from to target type
  90. // 76 92 115 finally
  91. // 107 113 122 java/text/ParseException
  92. }
  93. public int getFastMatchToken()
  94. {
  95. return 2;
  96. }
  97. }
  98. /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar
  99. * Qualified Name: com.alibaba.fastjson.parser.deserializer.DateDeserializer
  100. * JD-Core Version: 0.6.2
  101. */