ExtensionRegistry.smali

.class public Lcom/google/protobuf/ExtensionRegistry;
.super Lcom/google/protobuf/ExtensionRegistryLite;
.source "ExtensionRegistry.java"


# static fields
.field private static bld:Lcom/google/protobuf/ExtensionRegistry;


# instance fields
.field private final blc:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Lcom/google/protobuf/bn;",
            "Lcom/google/protobuf/bo;",
            ">;"
        }
    .end annotation
.end field


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

    .prologue
    .line 329
    new-instance v0, Lcom/google/protobuf/ExtensionRegistry;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lcom/google/protobuf/ExtensionRegistry;-><init>(B)V

    sput-object v0, Lcom/google/protobuf/ExtensionRegistry;->bld:Lcom/google/protobuf/ExtensionRegistry;

    return-void
.end method

.method private constructor <init>()V
    .registers 2

    .prologue
    .line 292
    invoke-direct {p0}, Lcom/google/protobuf/ExtensionRegistryLite;-><init>()V

    .line 293
    new-instance v0, Ljava/util/HashMap;

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

    .line 294
    new-instance v0, Ljava/util/HashMap;

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

    .line 295
    new-instance v0, Ljava/util/HashMap;

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

    iput-object v0, p0, Lcom/google/protobuf/ExtensionRegistry;->blc:Ljava/util/Map;

    .line 297
    new-instance v0, Ljava/util/HashMap;

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

    .line 299
    return-void
.end method

.method private constructor <init>(B)V
    .registers 3

    .prologue
    .line 319
    sget-object v0, Lcom/google/protobuf/ExtensionRegistry;->blj:Lcom/google/protobuf/ExtensionRegistryLite;

    invoke-direct {p0, v0}, Lcom/google/protobuf/ExtensionRegistryLite;-><init>(Lcom/google/protobuf/ExtensionRegistryLite;)V

    .line 321
    invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;

    .line 323
    invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;

    .line 325
    invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;

    move-result-object v0

    iput-object v0, p0, Lcom/google/protobuf/ExtensionRegistry;->blc:Ljava/util/Map;

    .line 327
    invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;

    .line 328
    return-void
.end method

.method public static Ee()Lcom/google/protobuf/ExtensionRegistry;
    .registers 1

    .prologue
    .line 104
    sget-object v0, Lcom/google/protobuf/ExtensionRegistry;->bld:Lcom/google/protobuf/ExtensionRegistry;

    return-object v0
.end method


# virtual methods
.method public final a(Lcom/google/protobuf/Descriptors$Descriptor;I)Lcom/google/protobuf/bo;
    .registers 5

    .prologue
    .line 184
    iget-object v0, p0, Lcom/google/protobuf/ExtensionRegistry;->blc:Ljava/util/Map;

    new-instance v1, Lcom/google/protobuf/bn;

    invoke-direct {v1, p1, p2}, Lcom/google/protobuf/bn;-><init>(Lcom/google/protobuf/Descriptors$Descriptor;I)V

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/google/protobuf/bo;

    return-object v0
.end method