Types$c.smali
.class final Lcom/google/common/reflect/Types$c;
.super Ljava/lang/Object;
.source "Types.java"
# interfaces
.implements Ljava/lang/reflect/InvocationHandler;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/reflect/Types;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1a
name = "c"
.end annotation
# static fields
.field private static final a:Lcom/google/common/collect/ImmutableMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/collect/ImmutableMap<",
"Ljava/lang/String;",
"Ljava/lang/reflect/Method;",
">;"
}
.end annotation
.end field
# instance fields
.field private final b:Lcom/google/common/reflect/Types$b;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/reflect/Types$b<",
"*>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 7
.line 1
invoke-static {}, Lcom/google/common/collect/ImmutableMap;->builder()Lcom/google/common/collect/ImmutableMap$a;
move-result-object v0
.line 2
const-class v1, Lcom/google/common/reflect/Types$b;
invoke-virtual {v1}, Ljava/lang/Class;->getMethods()[Ljava/lang/reflect/Method;
move-result-object v1
array-length v2, v1
const/4 v3, 0x0
:goto_c
if-ge v3, v2, :cond_2a
aget-object v4, v1, v3
.line 3
invoke-virtual {v4}, Ljava/lang/reflect/Method;->getDeclaringClass()Ljava/lang/Class;
move-result-object v5
const-class v6, Lcom/google/common/reflect/Types$b;
invoke-virtual {v5, v6}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v5
if-eqz v5, :cond_27
const/4 v5, 0x1
.line 4
:try_start_1d
invoke-virtual {v4, v5}, Ljava/lang/reflect/Method;->setAccessible(Z)V
:try_end_20
.catch Ljava/security/AccessControlException; {:try_start_1d .. :try_end_20} :catch_20
.line 5
:catch_20
invoke-virtual {v4}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
move-result-object v5
invoke-virtual {v0, v5, v4}, Lcom/google/common/collect/ImmutableMap$a;->a(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$a;
:cond_27
add-int/lit8 v3, v3, 0x1
goto :goto_c
.line 6
:cond_2a
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableMap$a;->a()Lcom/google/common/collect/ImmutableMap;
move-result-object v0
sput-object v0, Lcom/google/common/reflect/Types$c;->a:Lcom/google/common/collect/ImmutableMap;
return-void
.end method
.method constructor <init>(Lcom/google/common/reflect/Types$b;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/reflect/Types$b<",
"*>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/google/common/reflect/Types$c;->b:Lcom/google/common/reflect/Types$b;
return-void
.end method
.method static synthetic a(Lcom/google/common/reflect/Types$c;)Lcom/google/common/reflect/Types$b;
.registers 1
.line 1
iget-object p0, p0, Lcom/google/common/reflect/Types$c;->b:Lcom/google/common/reflect/Types$b;
return-object p0
.end method
# virtual methods
.method public invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.line 1
invoke-virtual {p2}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
move-result-object p1
.line 2
sget-object p2, Lcom/google/common/reflect/Types$c;->a:Lcom/google/common/collect/ImmutableMap;
invoke-virtual {p2, p1}, Lcom/google/common/collect/ImmutableMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
check-cast p2, Ljava/lang/reflect/Method;
if-eqz p2, :cond_1b
.line 3
:try_start_e
iget-object p1, p0, Lcom/google/common/reflect/Types$c;->b:Lcom/google/common/reflect/Types$b;
invoke-virtual {p2, p1, p3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
:try_end_14
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_e .. :try_end_14} :catch_15
return-object p1
:catch_15
move-exception p1
.line 4
invoke-virtual {p1}, Ljava/lang/reflect/InvocationTargetException;->getCause()Ljava/lang/Throwable;
move-result-object p1
throw p1
.line 5
:cond_1b
new-instance p2, Ljava/lang/UnsupportedOperationException;
invoke-direct {p2, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p2
.end method