JsonToken.smali 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. .class public final enum Lcom/google/gson/stream/JsonToken;
  2. .super Ljava/lang/Enum;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/Signature;
  6. value = {
  7. "Ljava/lang/Enum<",
  8. "Lcom/google/gson/stream/JsonToken;",
  9. ">;"
  10. }
  11. .end annotation
  12. # static fields
  13. .field private static final synthetic $VALUES:[Lcom/google/gson/stream/JsonToken;
  14. .field public static final enum BEGIN_ARRAY:Lcom/google/gson/stream/JsonToken;
  15. .field public static final enum BEGIN_OBJECT:Lcom/google/gson/stream/JsonToken;
  16. .field public static final enum BOOLEAN:Lcom/google/gson/stream/JsonToken;
  17. .field public static final enum END_ARRAY:Lcom/google/gson/stream/JsonToken;
  18. .field public static final enum END_DOCUMENT:Lcom/google/gson/stream/JsonToken;
  19. .field public static final enum END_OBJECT:Lcom/google/gson/stream/JsonToken;
  20. .field public static final enum NAME:Lcom/google/gson/stream/JsonToken;
  21. .field public static final enum NULL:Lcom/google/gson/stream/JsonToken;
  22. .field public static final enum NUMBER:Lcom/google/gson/stream/JsonToken;
  23. .field public static final enum STRING:Lcom/google/gson/stream/JsonToken;
  24. # direct methods
  25. .method static constructor <clinit>()V
  26. .locals 12
  27. new-instance v0, Lcom/google/gson/stream/JsonToken;
  28. const/4 v1, 0x0
  29. const-string v2, "BEGIN_ARRAY"
  30. invoke-direct {v0, v2, v1}, Lcom/google/gson/stream/JsonToken;-><init>(Ljava/lang/String;I)V
  31. sput-object v0, Lcom/google/gson/stream/JsonToken;->BEGIN_ARRAY:Lcom/google/gson/stream/JsonToken;
  32. new-instance v0, Lcom/google/gson/stream/JsonToken;
  33. const/4 v2, 0x1
  34. const-string v3, "END_ARRAY"
  35. invoke-direct {v0, v3, v2}, Lcom/google/gson/stream/JsonToken;-><init>(Ljava/lang/String;I)V
  36. sput-object v0, Lcom/google/gson/stream/JsonToken;->END_ARRAY:Lcom/google/gson/stream/JsonToken;
  37. new-instance v0, Lcom/google/gson/stream/JsonToken;
  38. const/4 v3, 0x2
  39. const-string v4, "BEGIN_OBJECT"
  40. invoke-direct {v0, v4, v3}, Lcom/google/gson/stream/JsonToken;-><init>(Ljava/lang/String;I)V
  41. sput-object v0, Lcom/google/gson/stream/JsonToken;->BEGIN_OBJECT:Lcom/google/gson/stream/JsonToken;
  42. new-instance v0, Lcom/google/gson/stream/JsonToken;
  43. const/4 v4, 0x3
  44. const-string v5, "END_OBJECT"
  45. invoke-direct {v0, v5, v4}, Lcom/google/gson/stream/JsonToken;-><init>(Ljava/lang/String;I)V
  46. sput-object v0, Lcom/google/gson/stream/JsonToken;->END_OBJECT:Lcom/google/gson/stream/JsonToken;
  47. new-instance v0, Lcom/google/gson/stream/JsonToken;
  48. const/4 v5, 0x4
  49. const-string v6, "NAME"
  50. invoke-direct {v0, v6, v5}, Lcom/google/gson/stream/JsonToken;-><init>(Ljava/lang/String;I)V
  51. sput-object v0, Lcom/google/gson/stream/JsonToken;->NAME:Lcom/google/gson/stream/JsonToken;
  52. new-instance v0, Lcom/google/gson/stream/JsonToken;
  53. const/4 v6, 0x5
  54. const-string v7, "STRING"
  55. invoke-direct {v0, v7, v6}, Lcom/google/gson/stream/JsonToken;-><init>(Ljava/lang/String;I)V
  56. sput-object v0, Lcom/google/gson/stream/JsonToken;->STRING:Lcom/google/gson/stream/JsonToken;
  57. new-instance v0, Lcom/google/gson/stream/JsonToken;
  58. const/4 v7, 0x6
  59. const-string v8, "NUMBER"
  60. invoke-direct {v0, v8, v7}, Lcom/google/gson/stream/JsonToken;-><init>(Ljava/lang/String;I)V
  61. sput-object v0, Lcom/google/gson/stream/JsonToken;->NUMBER:Lcom/google/gson/stream/JsonToken;
  62. new-instance v0, Lcom/google/gson/stream/JsonToken;
  63. const/4 v8, 0x7
  64. const-string v9, "BOOLEAN"
  65. invoke-direct {v0, v9, v8}, Lcom/google/gson/stream/JsonToken;-><init>(Ljava/lang/String;I)V
  66. sput-object v0, Lcom/google/gson/stream/JsonToken;->BOOLEAN:Lcom/google/gson/stream/JsonToken;
  67. new-instance v0, Lcom/google/gson/stream/JsonToken;
  68. const/16 v9, 0x8
  69. const-string v10, "NULL"
  70. invoke-direct {v0, v10, v9}, Lcom/google/gson/stream/JsonToken;-><init>(Ljava/lang/String;I)V
  71. sput-object v0, Lcom/google/gson/stream/JsonToken;->NULL:Lcom/google/gson/stream/JsonToken;
  72. new-instance v0, Lcom/google/gson/stream/JsonToken;
  73. const/16 v10, 0x9
  74. const-string v11, "END_DOCUMENT"
  75. invoke-direct {v0, v11, v10}, Lcom/google/gson/stream/JsonToken;-><init>(Ljava/lang/String;I)V
  76. sput-object v0, Lcom/google/gson/stream/JsonToken;->END_DOCUMENT:Lcom/google/gson/stream/JsonToken;
  77. const/16 v0, 0xa
  78. new-array v0, v0, [Lcom/google/gson/stream/JsonToken;
  79. sget-object v11, Lcom/google/gson/stream/JsonToken;->BEGIN_ARRAY:Lcom/google/gson/stream/JsonToken;
  80. aput-object v11, v0, v1
  81. sget-object v1, Lcom/google/gson/stream/JsonToken;->END_ARRAY:Lcom/google/gson/stream/JsonToken;
  82. aput-object v1, v0, v2
  83. sget-object v1, Lcom/google/gson/stream/JsonToken;->BEGIN_OBJECT:Lcom/google/gson/stream/JsonToken;
  84. aput-object v1, v0, v3
  85. sget-object v1, Lcom/google/gson/stream/JsonToken;->END_OBJECT:Lcom/google/gson/stream/JsonToken;
  86. aput-object v1, v0, v4
  87. sget-object v1, Lcom/google/gson/stream/JsonToken;->NAME:Lcom/google/gson/stream/JsonToken;
  88. aput-object v1, v0, v5
  89. sget-object v1, Lcom/google/gson/stream/JsonToken;->STRING:Lcom/google/gson/stream/JsonToken;
  90. aput-object v1, v0, v6
  91. sget-object v1, Lcom/google/gson/stream/JsonToken;->NUMBER:Lcom/google/gson/stream/JsonToken;
  92. aput-object v1, v0, v7
  93. sget-object v1, Lcom/google/gson/stream/JsonToken;->BOOLEAN:Lcom/google/gson/stream/JsonToken;
  94. aput-object v1, v0, v8
  95. sget-object v1, Lcom/google/gson/stream/JsonToken;->NULL:Lcom/google/gson/stream/JsonToken;
  96. aput-object v1, v0, v9
  97. sget-object v1, Lcom/google/gson/stream/JsonToken;->END_DOCUMENT:Lcom/google/gson/stream/JsonToken;
  98. aput-object v1, v0, v10
  99. sput-object v0, Lcom/google/gson/stream/JsonToken;->$VALUES:[Lcom/google/gson/stream/JsonToken;
  100. return-void
  101. .end method
  102. .method private constructor <init>(Ljava/lang/String;I)V
  103. .locals 0
  104. .annotation system Ldalvik/annotation/Signature;
  105. value = {
  106. "()V"
  107. }
  108. .end annotation
  109. invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
  110. return-void
  111. .end method
  112. .method public static valueOf(Ljava/lang/String;)Lcom/google/gson/stream/JsonToken;
  113. .locals 1
  114. const-class v0, Lcom/google/gson/stream/JsonToken;
  115. invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
  116. move-result-object p0
  117. check-cast p0, Lcom/google/gson/stream/JsonToken;
  118. return-object p0
  119. .end method
  120. .method public static values()[Lcom/google/gson/stream/JsonToken;
  121. .locals 1
  122. sget-object v0, Lcom/google/gson/stream/JsonToken;->$VALUES:[Lcom/google/gson/stream/JsonToken;
  123. invoke-virtual {v0}, [Lcom/google/gson/stream/JsonToken;->clone()Ljava/lang/Object;
  124. move-result-object v0
  125. check-cast v0, [Lcom/google/gson/stream/JsonToken;
  126. return-object v0
  127. .end method