LongSerializationPolicy.smali 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. .class public abstract enum Lcom/google/gson/LongSerializationPolicy;
  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/LongSerializationPolicy;",
  9. ">;"
  10. }
  11. .end annotation
  12. # static fields
  13. .field private static final synthetic $VALUES:[Lcom/google/gson/LongSerializationPolicy;
  14. .field public static final enum DEFAULT:Lcom/google/gson/LongSerializationPolicy;
  15. .field public static final enum STRING:Lcom/google/gson/LongSerializationPolicy;
  16. # direct methods
  17. .method static constructor <clinit>()V
  18. .locals 4
  19. new-instance v0, Lcom/google/gson/LongSerializationPolicy$1;
  20. const/4 v1, 0x0
  21. const-string v2, "DEFAULT"
  22. invoke-direct {v0, v2, v1}, Lcom/google/gson/LongSerializationPolicy$1;-><init>(Ljava/lang/String;I)V
  23. sput-object v0, Lcom/google/gson/LongSerializationPolicy;->DEFAULT:Lcom/google/gson/LongSerializationPolicy;
  24. new-instance v0, Lcom/google/gson/LongSerializationPolicy$2;
  25. const/4 v2, 0x1
  26. const-string v3, "STRING"
  27. invoke-direct {v0, v3, v2}, Lcom/google/gson/LongSerializationPolicy$2;-><init>(Ljava/lang/String;I)V
  28. sput-object v0, Lcom/google/gson/LongSerializationPolicy;->STRING:Lcom/google/gson/LongSerializationPolicy;
  29. const/4 v0, 0x2
  30. new-array v0, v0, [Lcom/google/gson/LongSerializationPolicy;
  31. sget-object v3, Lcom/google/gson/LongSerializationPolicy;->DEFAULT:Lcom/google/gson/LongSerializationPolicy;
  32. aput-object v3, v0, v1
  33. sget-object v1, Lcom/google/gson/LongSerializationPolicy;->STRING:Lcom/google/gson/LongSerializationPolicy;
  34. aput-object v1, v0, v2
  35. sput-object v0, Lcom/google/gson/LongSerializationPolicy;->$VALUES:[Lcom/google/gson/LongSerializationPolicy;
  36. return-void
  37. .end method
  38. .method private constructor <init>(Ljava/lang/String;I)V
  39. .locals 0
  40. .annotation system Ldalvik/annotation/Signature;
  41. value = {
  42. "()V"
  43. }
  44. .end annotation
  45. invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
  46. return-void
  47. .end method
  48. .method synthetic constructor <init>(Ljava/lang/String;ILcom/google/gson/LongSerializationPolicy$1;)V
  49. .locals 0
  50. invoke-direct {p0, p1, p2}, Lcom/google/gson/LongSerializationPolicy;-><init>(Ljava/lang/String;I)V
  51. return-void
  52. .end method
  53. .method public static valueOf(Ljava/lang/String;)Lcom/google/gson/LongSerializationPolicy;
  54. .locals 1
  55. const-class v0, Lcom/google/gson/LongSerializationPolicy;
  56. invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
  57. move-result-object p0
  58. check-cast p0, Lcom/google/gson/LongSerializationPolicy;
  59. return-object p0
  60. .end method
  61. .method public static values()[Lcom/google/gson/LongSerializationPolicy;
  62. .locals 1
  63. sget-object v0, Lcom/google/gson/LongSerializationPolicy;->$VALUES:[Lcom/google/gson/LongSerializationPolicy;
  64. invoke-virtual {v0}, [Lcom/google/gson/LongSerializationPolicy;->clone()Ljava/lang/Object;
  65. move-result-object v0
  66. check-cast v0, [Lcom/google/gson/LongSerializationPolicy;
  67. return-object v0
  68. .end method
  69. # virtual methods
  70. .method public abstract serialize(Ljava/lang/Long;)Lcom/google/gson/JsonElement;
  71. .end method