n.smali

.class public final Lorg/greenrobot/eventbus/n;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lorg/greenrobot/eventbus/n$a;
    }
.end annotation


# static fields
.field public static final a:Ljava/util/concurrent/ConcurrentHashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/Class<",
            "*>;",
            "Ljava/util/List<",
            "Lorg/greenrobot/eventbus/m;",
            ">;>;"
        }
    .end annotation
.end field

.field public static final b:[Lorg/greenrobot/eventbus/n$a;


# direct methods
.method public static constructor <clinit>()V
    .registers 1

    .line 1
    new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V

    sput-object v0, Lorg/greenrobot/eventbus/n;->a:Ljava/util/concurrent/ConcurrentHashMap;

    const/4 v0, 0x4

    new-array v0, v0, [Lorg/greenrobot/eventbus/n$a;

    .line 2
    sput-object v0, Lorg/greenrobot/eventbus/n;->b:[Lorg/greenrobot/eventbus/n$a;

    return-void
.end method

.method public constructor <init>()V
    .registers 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/Object;",
            ">;ZZ)V"
        }
    .end annotation

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final a(Lorg/greenrobot/eventbus/n$a;)V
    .registers 16

    const/4 v0, 0x1

    .line 1
    :try_start_1
    iget-object v1, p1, Lorg/greenrobot/eventbus/n$a;->e:Ljava/lang/Class;

    invoke-virtual {v1}, Ljava/lang/Class;->getDeclaredMethods()[Ljava/lang/reflect/Method;

    move-result-object v1
    :try_end_7
    .catchall {:try_start_1 .. :try_end_7} :catchall_8

    goto :goto_10

    .line 2
    :catchall_8
    :try_start_8
    iget-object v1, p1, Lorg/greenrobot/eventbus/n$a;->e:Ljava/lang/Class;

    invoke-virtual {v1}, Ljava/lang/Class;->getMethods()[Ljava/lang/reflect/Method;

    move-result-object v1
    :try_end_e
    .catch Ljava/lang/LinkageError; {:try_start_8 .. :try_end_e} :catch_5b

    .line 3
    iput-boolean v0, p1, Lorg/greenrobot/eventbus/n$a;->f:Z

    .line 4
    :goto_10
    array-length v2, v1

    const/4 v3, 0x0

    const/4 v4, 0x0

    :goto_13
    if-ge v4, v2, :cond_5a

    aget-object v6, v1, v4

    .line 5
    invoke-virtual {v6}, Ljava/lang/reflect/Method;->getModifiers()I

    move-result v5

    and-int/lit8 v7, v5, 0x1

    if-eqz v7, :cond_57

    and-int/lit16 v5, v5, 0x1448

    if-nez v5, :cond_57

    .line 6
    invoke-virtual {v6}, Ljava/lang/reflect/Method;->getParameterTypes()[Ljava/lang/Class;

    move-result-object v5

    .line 7
    array-length v7, v5

    if-ne v7, v0, :cond_57

    .line 8
    const-class v7, Lorg/greenrobot/eventbus/k;

    invoke-virtual {v6, v7}, Ljava/lang/reflect/Method;->getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;

    move-result-object v7

    check-cast v7, Lorg/greenrobot/eventbus/k;

    if-eqz v7, :cond_57

    .line 9
    aget-object v8, v5, v3

    .line 10
    invoke-virtual {p1, v6, v8}, Lorg/greenrobot/eventbus/n$a;->a(Ljava/lang/reflect/Method;Ljava/lang/Class;)Z

    move-result v5

    if-eqz v5, :cond_57

    .line 11
    invoke-interface {v7}, Lorg/greenrobot/eventbus/k;->threadMode()Lorg/greenrobot/eventbus/ThreadMode;

    move-result-object v9

    .line 12
    iget-object v11, p1, Lorg/greenrobot/eventbus/n$a;->a:Ljava/util/ArrayList;

    new-instance v12, Lorg/greenrobot/eventbus/m;

    .line 13
    invoke-interface {v7}, Lorg/greenrobot/eventbus/k;->priority()I

    move-result v10

    invoke-interface {v7}, Lorg/greenrobot/eventbus/k;->sticky()Z

    move-result v13

    move-object v5, v12

    move-object v7, v8

    move-object v8, v9

    move v9, v10

    move v10, v13

    invoke-direct/range {v5 .. v10}, Lorg/greenrobot/eventbus/m;-><init>(Ljava/lang/reflect/Method;Ljava/lang/Class;Lorg/greenrobot/eventbus/ThreadMode;IZ)V

    .line 14
    invoke-virtual {v11, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_57
    add-int/lit8 v4, v4, 0x1

    goto :goto_13

    :cond_5a
    return-void

    :catch_5b
    move-exception v0

    const-string v1, "Could not inspect methods of "

    .line 15
    invoke-static {v1}, Landroid/support/v4/media/c;->c(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    .line 16
    iget-object p1, p1, Lorg/greenrobot/eventbus/n$a;->e:Ljava/lang/Class;

    .line 17
    invoke-static {p1, v1}, Landroidx/appcompat/view/f;->c(Ljava/lang/Class;Ljava/lang/StringBuilder;)Ljava/lang/String;

    move-result-object p1

    const-string v1, ". Please make this class visible to EventBus annotation processor to avoid reflection."

    .line 18
    invoke-static {p1, v1}, Landroidx/appcompat/e;->g(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 19
    new-instance v1, Lorg/greenrobot/eventbus/e;

    invoke-direct {v1, p1, v0}, Lorg/greenrobot/eventbus/e;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    throw v1
.end method

.method public final b(Lorg/greenrobot/eventbus/n$a;)Ljava/util/List;
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/greenrobot/eventbus/n$a;",
            ")",
            "Ljava/util/List<",
            "Lorg/greenrobot/eventbus/m;",
            ">;"
        }
    .end annotation

    .line 1
    new-instance v0, Ljava/util/ArrayList;

    iget-object v1, p1, Lorg/greenrobot/eventbus/n$a;->a:Ljava/util/ArrayList;

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    .line 2
    invoke-virtual {p1}, Lorg/greenrobot/eventbus/n$a;->d()V

    .line 3
    sget-object v1, Lorg/greenrobot/eventbus/n;->b:[Lorg/greenrobot/eventbus/n$a;

    monitor-enter v1

    const/4 v2, 0x0

    :goto_e
    const/4 v3, 0x4

    if-ge v2, v3, :cond_1d

    .line 4
    :try_start_11
    sget-object v3, Lorg/greenrobot/eventbus/n;->b:[Lorg/greenrobot/eventbus/n$a;

    aget-object v4, v3, v2

    if-nez v4, :cond_1a

    .line 5
    aput-object p1, v3, v2

    goto :goto_1d

    :cond_1a
    add-int/lit8 v2, v2, 0x1

    goto :goto_e

    .line 6
    :cond_1d
    :goto_1d
    monitor-exit v1

    return-object v0

    :catchall_1f
    move-exception p1

    monitor-exit v1
    :try_end_21
    .catchall {:try_start_11 .. :try_end_21} :catchall_1f

    throw p1
.end method

.method public final c()Lorg/greenrobot/eventbus/n$a;
    .registers 6

    .line 1
    sget-object v0, Lorg/greenrobot/eventbus/n;->b:[Lorg/greenrobot/eventbus/n$a;

    monitor-enter v0

    const/4 v1, 0x0

    :goto_4
    const/4 v2, 0x4

    if-ge v1, v2, :cond_15

    .line 2
    :try_start_7
    sget-object v2, Lorg/greenrobot/eventbus/n;->b:[Lorg/greenrobot/eventbus/n$a;

    aget-object v3, v2, v1

    if-eqz v3, :cond_12

    const/4 v4, 0x0

    .line 3
    aput-object v4, v2, v1

    .line 4
    monitor-exit v0

    return-object v3

    :cond_12
    add-int/lit8 v1, v1, 0x1

    goto :goto_4

    .line 5
    :cond_15
    monitor-exit v0
    :try_end_16
    .catchall {:try_start_7 .. :try_end_16} :catchall_1c

    .line 6
    new-instance v0, Lorg/greenrobot/eventbus/n$a;

    invoke-direct {v0}, Lorg/greenrobot/eventbus/n$a;-><init>()V

    return-object v0

    :catchall_1c
    move-exception v1

    .line 7
    :try_start_1d
    monitor-exit v0
    :try_end_1e
    .catchall {:try_start_1d .. :try_end_1e} :catchall_1c

    throw v1
.end method