apkfuckery/com.discord/smali/butterknife/internal/Parameter.smali
2019-02-04 21:05:16 +01:00

87 lines
1.7 KiB
Smali

.class final Lbutterknife/internal/Parameter;
.super Ljava/lang/Object;
.source "Parameter.java"
# static fields
.field static final NONE:[Lbutterknife/internal/Parameter;
# instance fields
.field private final listenerPosition:I
.field private final type:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.locals 1
.prologue
const/4 v0, 0x0
new-array v0, v0, [Lbutterknife/internal/Parameter;
sput-object v0, Lbutterknife/internal/Parameter;->NONE:[Lbutterknife/internal/Parameter;
return-void
.end method
.method constructor <init>(ILjava/lang/String;)V
.locals 0
.param p1, "listenerPosition" # I
.param p2, "type" # Ljava/lang/String;
.prologue
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Lbutterknife/internal/Parameter;->listenerPosition:I
iput-object p2, p0, Lbutterknife/internal/Parameter;->type:Ljava/lang/String;
return-void
.end method
# virtual methods
.method getListenerPosition()I
.locals 1
.prologue
iget v0, p0, Lbutterknife/internal/Parameter;->listenerPosition:I
return v0
.end method
.method getType()Ljava/lang/String;
.locals 1
.prologue
iget-object v0, p0, Lbutterknife/internal/Parameter;->type:Ljava/lang/String;
return-object v0
.end method
.method public requiresCast(Ljava/lang/String;)Z
.locals 1
.param p1, "toType" # Ljava/lang/String;
.prologue
iget-object v0, p0, Lbutterknife/internal/Parameter;->type:Ljava/lang/String;
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_0
const/4 v0, 0x1
:goto_0
return v0
:cond_0
const/4 v0, 0x0
goto :goto_0
.end method