123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- .class public final Lcom/google/gson/internal/LazilyParsedNumber;
- .super Ljava/lang/Number;
- .source ""
- # instance fields
- .field private final value:Ljava/lang/String;
- # direct methods
- .method public constructor <init>(Ljava/lang/String;)V
- .locals 0
- invoke-direct {p0}, Ljava/lang/Number;-><init>()V
- iput-object p1, p0, Lcom/google/gson/internal/LazilyParsedNumber;->value:Ljava/lang/String;
- return-void
- .end method
- .method private writeReplace()Ljava/lang/Object;
- .locals 2
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/ObjectStreamException;
- }
- .end annotation
- new-instance v0, Ljava/math/BigDecimal;
- iget-object v1, p0, Lcom/google/gson/internal/LazilyParsedNumber;->value:Ljava/lang/String;
- invoke-direct {v0, v1}, Ljava/math/BigDecimal;-><init>(Ljava/lang/String;)V
- return-object v0
- .end method
- # virtual methods
- .method public doubleValue()D
- .locals 2
- iget-object v0, p0, Lcom/google/gson/internal/LazilyParsedNumber;->value:Ljava/lang/String;
- invoke-static {v0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D
- move-result-wide v0
- return-wide v0
- .end method
- .method public equals(Ljava/lang/Object;)Z
- .locals 3
- const/4 v0, 0x1
- if-ne p0, p1, :cond_0
- return v0
- :cond_0
- instance-of v1, p1, Lcom/google/gson/internal/LazilyParsedNumber;
- const/4 v2, 0x0
- if-eqz v1, :cond_3
- check-cast p1, Lcom/google/gson/internal/LazilyParsedNumber;
- iget-object v1, p0, Lcom/google/gson/internal/LazilyParsedNumber;->value:Ljava/lang/String;
- iget-object p1, p1, Lcom/google/gson/internal/LazilyParsedNumber;->value:Ljava/lang/String;
- if-eq v1, p1, :cond_2
- invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result p1
- if-eqz p1, :cond_1
- goto :goto_0
- :cond_1
- const/4 v0, 0x0
- :cond_2
- :goto_0
- return v0
- :cond_3
- return v2
- .end method
- .method public floatValue()F
- .locals 1
- iget-object v0, p0, Lcom/google/gson/internal/LazilyParsedNumber;->value:Ljava/lang/String;
- invoke-static {v0}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F
- move-result v0
- return v0
- .end method
- .method public hashCode()I
- .locals 1
- iget-object v0, p0, Lcom/google/gson/internal/LazilyParsedNumber;->value:Ljava/lang/String;
- invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
- move-result v0
- return v0
- .end method
- .method public intValue()I
- .locals 2
- :try_start_0
- iget-object v0, p0, Lcom/google/gson/internal/LazilyParsedNumber;->value:Ljava/lang/String;
- invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
- move-result v0
- :try_end_0
- .catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
- return v0
- :catch_0
- :try_start_1
- iget-object v0, p0, Lcom/google/gson/internal/LazilyParsedNumber;->value:Ljava/lang/String;
- invoke-static {v0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
- move-result-wide v0
- :try_end_1
- .catch Ljava/lang/NumberFormatException; {:try_start_1 .. :try_end_1} :catch_1
- long-to-int v1, v0
- return v1
- :catch_1
- new-instance v0, Ljava/math/BigDecimal;
- iget-object v1, p0, Lcom/google/gson/internal/LazilyParsedNumber;->value:Ljava/lang/String;
- invoke-direct {v0, v1}, Ljava/math/BigDecimal;-><init>(Ljava/lang/String;)V
- invoke-virtual {v0}, Ljava/math/BigDecimal;->intValue()I
- move-result v0
- return v0
- .end method
- .method public longValue()J
- .locals 2
- :try_start_0
- iget-object v0, p0, Lcom/google/gson/internal/LazilyParsedNumber;->value:Ljava/lang/String;
- invoke-static {v0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
- move-result-wide v0
- :try_end_0
- .catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
- return-wide v0
- :catch_0
- new-instance v0, Ljava/math/BigDecimal;
- iget-object v1, p0, Lcom/google/gson/internal/LazilyParsedNumber;->value:Ljava/lang/String;
- invoke-direct {v0, v1}, Ljava/math/BigDecimal;-><init>(Ljava/lang/String;)V
- invoke-virtual {v0}, Ljava/math/BigDecimal;->longValue()J
- move-result-wide v0
- return-wide v0
- .end method
- .method public toString()Ljava/lang/String;
- .locals 1
- iget-object v0, p0, Lcom/google/gson/internal/LazilyParsedNumber;->value:Ljava/lang/String;
- return-object v0
- .end method
|