changed repo structure
This commit is contained in:
@@ -0,0 +1,213 @@
|
||||
.class final Landroidx/lifecycle/ClassesInfoCache$MethodReference;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ClassesInfoCache.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/lifecycle/ClassesInfoCache;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x18
|
||||
name = "MethodReference"
|
||||
.end annotation
|
||||
|
||||
.annotation runtime Ljava/lang/Deprecated;
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field final mCallType:I
|
||||
|
||||
.field final mMethod:Ljava/lang/reflect/Method;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(ILjava/lang/reflect/Method;)V
|
||||
.locals 0
|
||||
|
||||
.line 211
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
.line 212
|
||||
iput p1, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mCallType:I
|
||||
|
||||
.line 213
|
||||
iput-object p2, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method;
|
||||
|
||||
const/4 p1, 0x1
|
||||
|
||||
.line 214
|
||||
invoke-virtual {p2, p1}, Ljava/lang/reflect/Method;->setAccessible(Z)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public equals(Ljava/lang/Object;)Z
|
||||
.locals 4
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
if-ne p0, p1, :cond_0
|
||||
|
||||
return v0
|
||||
|
||||
.line 243
|
||||
:cond_0
|
||||
instance-of v1, p1, Landroidx/lifecycle/ClassesInfoCache$MethodReference;
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
if-nez v1, :cond_1
|
||||
|
||||
return v2
|
||||
|
||||
.line 247
|
||||
:cond_1
|
||||
check-cast p1, Landroidx/lifecycle/ClassesInfoCache$MethodReference;
|
||||
|
||||
.line 248
|
||||
iget v1, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mCallType:I
|
||||
|
||||
iget v3, p1, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mCallType:I
|
||||
|
||||
if-ne v1, v3, :cond_2
|
||||
|
||||
iget-object v1, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method;
|
||||
|
||||
invoke-virtual {v1}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
iget-object p1, p1, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method;
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
if-eqz p1, :cond_2
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_2
|
||||
move v0, v2
|
||||
|
||||
:goto_0
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public hashCode()I
|
||||
.locals 2
|
||||
|
||||
.line 253
|
||||
iget v0, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mCallType:I
|
||||
|
||||
mul-int/lit8 v0, v0, 0x1f
|
||||
|
||||
iget-object v1, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method;
|
||||
|
||||
invoke-virtual {v1}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-virtual {v1}, Ljava/lang/String;->hashCode()I
|
||||
|
||||
move-result v1
|
||||
|
||||
add-int/2addr v0, v1
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method invokeCallback(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Lifecycle$Event;Ljava/lang/Object;)V
|
||||
.locals 2
|
||||
|
||||
.line 220
|
||||
:try_start_0
|
||||
iget v0, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mCallType:I
|
||||
|
||||
if-eqz v0, :cond_2
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
if-eq v0, v1, :cond_1
|
||||
|
||||
const/4 v1, 0x2
|
||||
|
||||
if-eq v0, v1, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 228
|
||||
:cond_0
|
||||
iget-object v0, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method;
|
||||
|
||||
filled-new-array {p1, p2}, [Ljava/lang/Object;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {v0, p3, p1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 225
|
||||
:cond_1
|
||||
iget-object p2, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method;
|
||||
|
||||
filled-new-array {p1}, [Ljava/lang/Object;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p2, p3, p1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 222
|
||||
:cond_2
|
||||
iget-object p1, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method;
|
||||
|
||||
const/4 p2, 0x0
|
||||
|
||||
new-array p2, p2, [Ljava/lang/Object;
|
||||
|
||||
invoke-virtual {p1, p3, p2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
||||
:try_end_0
|
||||
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_1
|
||||
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
:goto_0
|
||||
return-void
|
||||
|
||||
:catch_0
|
||||
move-exception p1
|
||||
|
||||
.line 234
|
||||
new-instance p2, Ljava/lang/RuntimeException;
|
||||
|
||||
invoke-direct {p2, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
|
||||
|
||||
throw p2
|
||||
|
||||
:catch_1
|
||||
move-exception p1
|
||||
|
||||
.line 232
|
||||
new-instance p2, Ljava/lang/RuntimeException;
|
||||
|
||||
const-string p3, "Failed to call observer method"
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/reflect/InvocationTargetException;->getCause()Ljava/lang/Throwable;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {p2, p3, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
||||
|
||||
throw p2
|
||||
.end method
|
||||
Reference in New Issue
Block a user