apkfuckery/com.discord/smali/com/bugsnag/android/Severity.smali
2019-02-04 21:05:16 +01:00

167 lines
4.3 KiB
Smali

.class public final enum Lcom/bugsnag/android/Severity;
.super Ljava/lang/Enum;
.source "Severity.java"
# interfaces
.implements Lcom/bugsnag/android/JsonStream$Streamable;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum",
"<",
"Lcom/bugsnag/android/Severity;",
">;",
"Lcom/bugsnag/android/JsonStream$Streamable;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/bugsnag/android/Severity;
.field public static final enum ERROR:Lcom/bugsnag/android/Severity;
.field public static final enum INFO:Lcom/bugsnag/android/Severity;
.field public static final enum WARNING:Lcom/bugsnag/android/Severity;
# instance fields
.field private final name:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.locals 6
.prologue
const/4 v5, 0x2
const/4 v4, 0x1
const/4 v3, 0x0
new-instance v0, Lcom/bugsnag/android/Severity;
const-string v1, "ERROR"
const-string v2, "error"
invoke-direct {v0, v1, v3, v2}, Lcom/bugsnag/android/Severity;-><init>(Ljava/lang/String;ILjava/lang/String;)V
sput-object v0, Lcom/bugsnag/android/Severity;->ERROR:Lcom/bugsnag/android/Severity;
new-instance v0, Lcom/bugsnag/android/Severity;
const-string v1, "WARNING"
const-string v2, "warning"
invoke-direct {v0, v1, v4, v2}, Lcom/bugsnag/android/Severity;-><init>(Ljava/lang/String;ILjava/lang/String;)V
sput-object v0, Lcom/bugsnag/android/Severity;->WARNING:Lcom/bugsnag/android/Severity;
new-instance v0, Lcom/bugsnag/android/Severity;
const-string v1, "INFO"
const-string v2, "info"
invoke-direct {v0, v1, v5, v2}, Lcom/bugsnag/android/Severity;-><init>(Ljava/lang/String;ILjava/lang/String;)V
sput-object v0, Lcom/bugsnag/android/Severity;->INFO:Lcom/bugsnag/android/Severity;
const/4 v0, 0x3
new-array v0, v0, [Lcom/bugsnag/android/Severity;
sget-object v1, Lcom/bugsnag/android/Severity;->ERROR:Lcom/bugsnag/android/Severity;
aput-object v1, v0, v3
sget-object v1, Lcom/bugsnag/android/Severity;->WARNING:Lcom/bugsnag/android/Severity;
aput-object v1, v0, v4
sget-object v1, Lcom/bugsnag/android/Severity;->INFO:Lcom/bugsnag/android/Severity;
aput-object v1, v0, v5
sput-object v0, Lcom/bugsnag/android/Severity;->$VALUES:[Lcom/bugsnag/android/Severity;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;ILjava/lang/String;)V
.locals 0
.param p3, "name" # Ljava/lang/String;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")V"
}
.end annotation
.prologue
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput-object p3, p0, Lcom/bugsnag/android/Severity;->name:Ljava/lang/String;
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/bugsnag/android/Severity;
.locals 1
.param p0, "name" # Ljava/lang/String;
.prologue
const-class v0, Lcom/bugsnag/android/Severity;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object v0
check-cast v0, Lcom/bugsnag/android/Severity;
return-object v0
.end method
.method public static values()[Lcom/bugsnag/android/Severity;
.locals 1
.prologue
sget-object v0, Lcom/bugsnag/android/Severity;->$VALUES:[Lcom/bugsnag/android/Severity;
invoke-virtual {v0}, [Lcom/bugsnag/android/Severity;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/bugsnag/android/Severity;
return-object v0
.end method
# virtual methods
.method public toStream(Lcom/bugsnag/android/JsonStream;)V
.locals 1
.param p1, "writer" # Lcom/bugsnag/android/JsonStream;
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.prologue
iget-object v0, p0, Lcom/bugsnag/android/Severity;->name:Ljava/lang/String;
invoke-virtual {p1, v0}, Lcom/bugsnag/android/JsonStream;->value(Ljava/lang/String;)Lcom/bugsnag/android/JsonWriter;
return-void
.end method