Files
rr3-apk/smali_classes3/com/google/gson/internal/LazilyParsedNumber.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

227 lines
5.0 KiB
Smali

.class public final Lcom/google/gson/internal/LazilyParsedNumber;
.super Ljava/lang/Number;
.source "SourceFile"
# instance fields
.field private final value:Ljava/lang/String;
# direct methods
.method public constructor <init>(Ljava/lang/String;)V
.locals 0
.line 33
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 readObject(Ljava/io/ObjectInputStream;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 85
new-instance p1, Ljava/io/InvalidObjectException;
const-string v0, "Deserialization is unsupported"
invoke-direct {p1, v0}, Ljava/io/InvalidObjectException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method private writeReplace()Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/ObjectStreamException;
}
.end annotation
.line 80
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;
.line 66
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
.line 98
:cond_0
instance-of v1, p1, Lcom/google/gson/internal/LazilyParsedNumber;
const/4 v2, 0x0
if-eqz v1, :cond_3
.line 99
check-cast p1, Lcom/google/gson/internal/LazilyParsedNumber;
iget-object v1, p0, Lcom/google/gson/internal/LazilyParsedNumber;->value:Ljava/lang/String;
.line 100
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
move v0, v2
: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;
.line 61
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;
.line 90
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;
.line 40
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;
.line 43
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 v0, v0
return v0
.line 45
: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;
.line 53
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
.line 55
: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