FieldAttributes.smali 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. .class public final Lcom/google/gson/FieldAttributes;
  2. .super Ljava/lang/Object;
  3. .source ""
  4. # instance fields
  5. .field private final field:Ljava/lang/reflect/Field;
  6. # direct methods
  7. .method public constructor <init>(Ljava/lang/reflect/Field;)V
  8. .locals 0
  9. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  10. invoke-static {p1}, Lcom/google/gson/internal/$Gson$Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
  11. iput-object p1, p0, Lcom/google/gson/FieldAttributes;->field:Ljava/lang/reflect/Field;
  12. return-void
  13. .end method
  14. # virtual methods
  15. .method get(Ljava/lang/Object;)Ljava/lang/Object;
  16. .locals 1
  17. .annotation system Ldalvik/annotation/Throws;
  18. value = {
  19. Ljava/lang/IllegalAccessException;
  20. }
  21. .end annotation
  22. iget-object v0, p0, Lcom/google/gson/FieldAttributes;->field:Ljava/lang/reflect/Field;
  23. invoke-virtual {v0, p1}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
  24. move-result-object p1
  25. return-object p1
  26. .end method
  27. .method public getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
  28. .locals 1
  29. .annotation system Ldalvik/annotation/Signature;
  30. value = {
  31. "<T::",
  32. "Ljava/lang/annotation/Annotation;",
  33. ">(",
  34. "Ljava/lang/Class<",
  35. "TT;>;)TT;"
  36. }
  37. .end annotation
  38. iget-object v0, p0, Lcom/google/gson/FieldAttributes;->field:Ljava/lang/reflect/Field;
  39. invoke-virtual {v0, p1}, Ljava/lang/reflect/Field;->getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
  40. move-result-object p1
  41. return-object p1
  42. .end method
  43. .method public getAnnotations()Ljava/util/Collection;
  44. .locals 1
  45. .annotation system Ldalvik/annotation/Signature;
  46. value = {
  47. "()",
  48. "Ljava/util/Collection<",
  49. "Ljava/lang/annotation/Annotation;",
  50. ">;"
  51. }
  52. .end annotation
  53. iget-object v0, p0, Lcom/google/gson/FieldAttributes;->field:Ljava/lang/reflect/Field;
  54. invoke-virtual {v0}, Ljava/lang/reflect/Field;->getAnnotations()[Ljava/lang/annotation/Annotation;
  55. move-result-object v0
  56. invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
  57. move-result-object v0
  58. return-object v0
  59. .end method
  60. .method public getDeclaredClass()Ljava/lang/Class;
  61. .locals 1
  62. .annotation system Ldalvik/annotation/Signature;
  63. value = {
  64. "()",
  65. "Ljava/lang/Class<",
  66. "*>;"
  67. }
  68. .end annotation
  69. iget-object v0, p0, Lcom/google/gson/FieldAttributes;->field:Ljava/lang/reflect/Field;
  70. invoke-virtual {v0}, Ljava/lang/reflect/Field;->getType()Ljava/lang/Class;
  71. move-result-object v0
  72. return-object v0
  73. .end method
  74. .method public getDeclaredType()Ljava/lang/reflect/Type;
  75. .locals 1
  76. iget-object v0, p0, Lcom/google/gson/FieldAttributes;->field:Ljava/lang/reflect/Field;
  77. invoke-virtual {v0}, Ljava/lang/reflect/Field;->getGenericType()Ljava/lang/reflect/Type;
  78. move-result-object v0
  79. return-object v0
  80. .end method
  81. .method public getDeclaringClass()Ljava/lang/Class;
  82. .locals 1
  83. .annotation system Ldalvik/annotation/Signature;
  84. value = {
  85. "()",
  86. "Ljava/lang/Class<",
  87. "*>;"
  88. }
  89. .end annotation
  90. iget-object v0, p0, Lcom/google/gson/FieldAttributes;->field:Ljava/lang/reflect/Field;
  91. invoke-virtual {v0}, Ljava/lang/reflect/Field;->getDeclaringClass()Ljava/lang/Class;
  92. move-result-object v0
  93. return-object v0
  94. .end method
  95. .method public getName()Ljava/lang/String;
  96. .locals 1
  97. iget-object v0, p0, Lcom/google/gson/FieldAttributes;->field:Ljava/lang/reflect/Field;
  98. invoke-virtual {v0}, Ljava/lang/reflect/Field;->getName()Ljava/lang/String;
  99. move-result-object v0
  100. return-object v0
  101. .end method
  102. .method public hasModifier(I)Z
  103. .locals 1
  104. iget-object v0, p0, Lcom/google/gson/FieldAttributes;->field:Ljava/lang/reflect/Field;
  105. invoke-virtual {v0}, Ljava/lang/reflect/Field;->getModifiers()I
  106. move-result v0
  107. and-int/2addr p1, v0
  108. if-eqz p1, :cond_0
  109. const/4 p1, 0x1
  110. goto :goto_0
  111. :cond_0
  112. const/4 p1, 0x0
  113. :goto_0
  114. return p1
  115. .end method
  116. .method isSynthetic()Z
  117. .locals 1
  118. iget-object v0, p0, Lcom/google/gson/FieldAttributes;->field:Ljava/lang/reflect/Field;
  119. invoke-virtual {v0}, Ljava/lang/reflect/Field;->isSynthetic()Z
  120. move-result v0
  121. return v0
  122. .end method