FieldNamingPolicy$5.smali 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. .class final enum Lcom/google/gson/FieldNamingPolicy$5;
  2. .super Lcom/google/gson/FieldNamingPolicy;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/EnclosingClass;
  6. value = Lcom/google/gson/FieldNamingPolicy;
  7. .end annotation
  8. .annotation system Ldalvik/annotation/InnerClass;
  9. accessFlags = 0x4008
  10. name = null
  11. .end annotation
  12. # direct methods
  13. .method constructor <init>(Ljava/lang/String;I)V
  14. .locals 1
  15. const/4 v0, 0x0
  16. invoke-direct {p0, p1, p2, v0}, Lcom/google/gson/FieldNamingPolicy;-><init>(Ljava/lang/String;ILcom/google/gson/FieldNamingPolicy$1;)V
  17. return-void
  18. .end method
  19. # virtual methods
  20. .method public translateName(Ljava/lang/reflect/Field;)Ljava/lang/String;
  21. .locals 1
  22. invoke-virtual {p1}, Ljava/lang/reflect/Field;->getName()Ljava/lang/String;
  23. move-result-object p1
  24. const-string v0, "-"
  25. invoke-static {p1, v0}, Lcom/google/gson/FieldNamingPolicy;->separateCamelCase(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
  26. move-result-object p1
  27. sget-object v0, Ljava/util/Locale;->ENGLISH:Ljava/util/Locale;
  28. invoke-virtual {p1, v0}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
  29. move-result-object p1
  30. return-object p1
  31. .end method