apkfuckery/com.discord/smali/okhttp3/internal/framed/HeadersMode.smali
2019-02-04 21:05:16 +01:00

225 lines
5.4 KiB
Smali

.class public final enum Lokhttp3/internal/framed/HeadersMode;
.super Ljava/lang/Enum;
.source "HeadersMode.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum",
"<",
"Lokhttp3/internal/framed/HeadersMode;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lokhttp3/internal/framed/HeadersMode;
.field public static final enum HTTP_20_HEADERS:Lokhttp3/internal/framed/HeadersMode;
.field public static final enum SPDY_HEADERS:Lokhttp3/internal/framed/HeadersMode;
.field public static final enum SPDY_REPLY:Lokhttp3/internal/framed/HeadersMode;
.field public static final enum SPDY_SYN_STREAM:Lokhttp3/internal/framed/HeadersMode;
# direct methods
.method static constructor <clinit>()V
.locals 6
.prologue
const/4 v5, 0x3
const/4 v4, 0x2
const/4 v3, 0x1
const/4 v2, 0x0
new-instance v0, Lokhttp3/internal/framed/HeadersMode;
const-string v1, "SPDY_SYN_STREAM"
invoke-direct {v0, v1, v2}, Lokhttp3/internal/framed/HeadersMode;-><init>(Ljava/lang/String;I)V
sput-object v0, Lokhttp3/internal/framed/HeadersMode;->SPDY_SYN_STREAM:Lokhttp3/internal/framed/HeadersMode;
new-instance v0, Lokhttp3/internal/framed/HeadersMode;
const-string v1, "SPDY_REPLY"
invoke-direct {v0, v1, v3}, Lokhttp3/internal/framed/HeadersMode;-><init>(Ljava/lang/String;I)V
sput-object v0, Lokhttp3/internal/framed/HeadersMode;->SPDY_REPLY:Lokhttp3/internal/framed/HeadersMode;
new-instance v0, Lokhttp3/internal/framed/HeadersMode;
const-string v1, "SPDY_HEADERS"
invoke-direct {v0, v1, v4}, Lokhttp3/internal/framed/HeadersMode;-><init>(Ljava/lang/String;I)V
sput-object v0, Lokhttp3/internal/framed/HeadersMode;->SPDY_HEADERS:Lokhttp3/internal/framed/HeadersMode;
new-instance v0, Lokhttp3/internal/framed/HeadersMode;
const-string v1, "HTTP_20_HEADERS"
invoke-direct {v0, v1, v5}, Lokhttp3/internal/framed/HeadersMode;-><init>(Ljava/lang/String;I)V
sput-object v0, Lokhttp3/internal/framed/HeadersMode;->HTTP_20_HEADERS:Lokhttp3/internal/framed/HeadersMode;
const/4 v0, 0x4
new-array v0, v0, [Lokhttp3/internal/framed/HeadersMode;
sget-object v1, Lokhttp3/internal/framed/HeadersMode;->SPDY_SYN_STREAM:Lokhttp3/internal/framed/HeadersMode;
aput-object v1, v0, v2
sget-object v1, Lokhttp3/internal/framed/HeadersMode;->SPDY_REPLY:Lokhttp3/internal/framed/HeadersMode;
aput-object v1, v0, v3
sget-object v1, Lokhttp3/internal/framed/HeadersMode;->SPDY_HEADERS:Lokhttp3/internal/framed/HeadersMode;
aput-object v1, v0, v4
sget-object v1, Lokhttp3/internal/framed/HeadersMode;->HTTP_20_HEADERS:Lokhttp3/internal/framed/HeadersMode;
aput-object v1, v0, v5
sput-object v0, Lokhttp3/internal/framed/HeadersMode;->$VALUES:[Lokhttp3/internal/framed/HeadersMode;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.prologue
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lokhttp3/internal/framed/HeadersMode;
.locals 1
.param p0, "name" # Ljava/lang/String;
.prologue
const-class v0, Lokhttp3/internal/framed/HeadersMode;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object v0
check-cast v0, Lokhttp3/internal/framed/HeadersMode;
return-object v0
.end method
.method public static values()[Lokhttp3/internal/framed/HeadersMode;
.locals 1
.prologue
sget-object v0, Lokhttp3/internal/framed/HeadersMode;->$VALUES:[Lokhttp3/internal/framed/HeadersMode;
invoke-virtual {v0}, [Lokhttp3/internal/framed/HeadersMode;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lokhttp3/internal/framed/HeadersMode;
return-object v0
.end method
# virtual methods
.method public failIfHeadersAbsent()Z
.locals 1
.prologue
sget-object v0, Lokhttp3/internal/framed/HeadersMode;->SPDY_HEADERS:Lokhttp3/internal/framed/HeadersMode;
if-ne p0, v0, :cond_0
const/4 v0, 0x1
:goto_0
return v0
:cond_0
const/4 v0, 0x0
goto :goto_0
.end method
.method public failIfHeadersPresent()Z
.locals 1
.prologue
sget-object v0, Lokhttp3/internal/framed/HeadersMode;->SPDY_REPLY:Lokhttp3/internal/framed/HeadersMode;
if-ne p0, v0, :cond_0
const/4 v0, 0x1
:goto_0
return v0
:cond_0
const/4 v0, 0x0
goto :goto_0
.end method
.method public failIfStreamAbsent()Z
.locals 1
.prologue
sget-object v0, Lokhttp3/internal/framed/HeadersMode;->SPDY_REPLY:Lokhttp3/internal/framed/HeadersMode;
if-eq p0, v0, :cond_0
sget-object v0, Lokhttp3/internal/framed/HeadersMode;->SPDY_HEADERS:Lokhttp3/internal/framed/HeadersMode;
if-ne p0, v0, :cond_1
:cond_0
const/4 v0, 0x1
:goto_0
return v0
:cond_1
const/4 v0, 0x0
goto :goto_0
.end method
.method public failIfStreamPresent()Z
.locals 1
.prologue
sget-object v0, Lokhttp3/internal/framed/HeadersMode;->SPDY_SYN_STREAM:Lokhttp3/internal/framed/HeadersMode;
if-ne p0, v0, :cond_0
const/4 v0, 0x1
:goto_0
return v0
:cond_0
const/4 v0, 0x0
goto :goto_0
.end method