tmap/smali_classes3/com/google/protobuf/GeneratedMessageLite$MergeFromVisitor.smali
2022-06-10 21:38:30 +09:00

658 lines
15 KiB
Smali

.class public Lcom/google/protobuf/GeneratedMessageLite$MergeFromVisitor;
.super Ljava/lang/Object;
.source "GeneratedMessageLite.java"
# interfaces
.implements Lcom/google/protobuf/GeneratedMessageLite$Visitor;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/protobuf/GeneratedMessageLite;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "MergeFromVisitor"
.end annotation
# static fields
.field public static final INSTANCE:Lcom/google/protobuf/GeneratedMessageLite$MergeFromVisitor;
# direct methods
.method public static constructor <clinit>()V
.locals 1
.line 1
new-instance v0, Lcom/google/protobuf/GeneratedMessageLite$MergeFromVisitor;
invoke-direct {v0}, Lcom/google/protobuf/GeneratedMessageLite$MergeFromVisitor;-><init>()V
sput-object v0, Lcom/google/protobuf/GeneratedMessageLite$MergeFromVisitor;->INSTANCE:Lcom/google/protobuf/GeneratedMessageLite$MergeFromVisitor;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public visitBoolean(ZZZZ)Z
.locals 0
if-eqz p3, :cond_0
move p2, p4
:cond_0
return p2
.end method
.method public visitBooleanList(Lcom/google/protobuf/Internal$BooleanList;Lcom/google/protobuf/Internal$BooleanList;)Lcom/google/protobuf/Internal$BooleanList;
.locals 3
.line 1
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
.line 2
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v1
if-lez v0, :cond_1
if-lez v1, :cond_1
.line 3
invoke-interface {p1}, Lcom/google/protobuf/Internal$ProtobufList;->isModifiable()Z
move-result v2
if-nez v2, :cond_0
add-int/2addr v1, v0
.line 4
invoke-interface {p1, v1}, Lcom/google/protobuf/Internal$BooleanList;->mutableCopyWithCapacity(I)Lcom/google/protobuf/Internal$BooleanList;
move-result-object p1
.line 5
:cond_0
invoke-interface {p1, p2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
:cond_1
if-lez v0, :cond_2
move-object p2, p1
:cond_2
return-object p2
.end method
.method public visitByteString(ZLcom/google/protobuf/ByteString;ZLcom/google/protobuf/ByteString;)Lcom/google/protobuf/ByteString;
.locals 0
if-eqz p3, :cond_0
move-object p2, p4
:cond_0
return-object p2
.end method
.method public visitDouble(ZDZD)D
.locals 0
if-eqz p4, :cond_0
move-wide p2, p5
:cond_0
return-wide p2
.end method
.method public visitDoubleList(Lcom/google/protobuf/Internal$DoubleList;Lcom/google/protobuf/Internal$DoubleList;)Lcom/google/protobuf/Internal$DoubleList;
.locals 3
.line 1
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
.line 2
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v1
if-lez v0, :cond_1
if-lez v1, :cond_1
.line 3
invoke-interface {p1}, Lcom/google/protobuf/Internal$ProtobufList;->isModifiable()Z
move-result v2
if-nez v2, :cond_0
add-int/2addr v1, v0
.line 4
invoke-interface {p1, v1}, Lcom/google/protobuf/Internal$DoubleList;->mutableCopyWithCapacity(I)Lcom/google/protobuf/Internal$DoubleList;
move-result-object p1
.line 5
:cond_0
invoke-interface {p1, p2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
:cond_1
if-lez v0, :cond_2
move-object p2, p1
:cond_2
return-object p2
.end method
.method public visitExtensions(Lcom/google/protobuf/FieldSet;Lcom/google/protobuf/FieldSet;)Lcom/google/protobuf/FieldSet;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/protobuf/FieldSet<",
"Lcom/google/protobuf/GeneratedMessageLite$ExtensionDescriptor;",
">;",
"Lcom/google/protobuf/FieldSet<",
"Lcom/google/protobuf/GeneratedMessageLite$ExtensionDescriptor;",
">;)",
"Lcom/google/protobuf/FieldSet<",
"Lcom/google/protobuf/GeneratedMessageLite$ExtensionDescriptor;",
">;"
}
.end annotation
.line 1
invoke-virtual {p1}, Lcom/google/protobuf/FieldSet;->isImmutable()Z
move-result v0
if-eqz v0, :cond_0
.line 2
invoke-virtual {p1}, Lcom/google/protobuf/FieldSet;->clone()Lcom/google/protobuf/FieldSet;
move-result-object p1
.line 3
:cond_0
invoke-virtual {p1, p2}, Lcom/google/protobuf/FieldSet;->mergeFrom(Lcom/google/protobuf/FieldSet;)V
return-object p1
.end method
.method public visitFloat(ZFZF)F
.locals 0
if-eqz p3, :cond_0
move p2, p4
:cond_0
return p2
.end method
.method public visitFloatList(Lcom/google/protobuf/Internal$FloatList;Lcom/google/protobuf/Internal$FloatList;)Lcom/google/protobuf/Internal$FloatList;
.locals 3
.line 1
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
.line 2
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v1
if-lez v0, :cond_1
if-lez v1, :cond_1
.line 3
invoke-interface {p1}, Lcom/google/protobuf/Internal$ProtobufList;->isModifiable()Z
move-result v2
if-nez v2, :cond_0
add-int/2addr v1, v0
.line 4
invoke-interface {p1, v1}, Lcom/google/protobuf/Internal$FloatList;->mutableCopyWithCapacity(I)Lcom/google/protobuf/Internal$FloatList;
move-result-object p1
.line 5
:cond_0
invoke-interface {p1, p2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
:cond_1
if-lez v0, :cond_2
move-object p2, p1
:cond_2
return-object p2
.end method
.method public visitInt(ZIZI)I
.locals 0
if-eqz p3, :cond_0
move p2, p4
:cond_0
return p2
.end method
.method public visitIntList(Lcom/google/protobuf/Internal$IntList;Lcom/google/protobuf/Internal$IntList;)Lcom/google/protobuf/Internal$IntList;
.locals 3
.line 1
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
.line 2
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v1
if-lez v0, :cond_1
if-lez v1, :cond_1
.line 3
invoke-interface {p1}, Lcom/google/protobuf/Internal$ProtobufList;->isModifiable()Z
move-result v2
if-nez v2, :cond_0
add-int/2addr v1, v0
.line 4
invoke-interface {p1, v1}, Lcom/google/protobuf/Internal$IntList;->mutableCopyWithCapacity(I)Lcom/google/protobuf/Internal$IntList;
move-result-object p1
.line 5
:cond_0
invoke-interface {p1, p2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
:cond_1
if-lez v0, :cond_2
move-object p2, p1
:cond_2
return-object p2
.end method
.method public visitLazyMessage(Lcom/google/protobuf/LazyFieldLite;Lcom/google/protobuf/LazyFieldLite;)Lcom/google/protobuf/LazyFieldLite;
.locals 0
if-eqz p2, :cond_1
if-nez p1, :cond_0
.line 1
new-instance p1, Lcom/google/protobuf/LazyFieldLite;
invoke-direct {p1}, Lcom/google/protobuf/LazyFieldLite;-><init>()V
.line 2
:cond_0
invoke-virtual {p1, p2}, Lcom/google/protobuf/LazyFieldLite;->merge(Lcom/google/protobuf/LazyFieldLite;)V
:cond_1
return-object p1
.end method
.method public visitList(Lcom/google/protobuf/Internal$ProtobufList;Lcom/google/protobuf/Internal$ProtobufList;)Lcom/google/protobuf/Internal$ProtobufList;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lcom/google/protobuf/Internal$ProtobufList<",
"TT;>;",
"Lcom/google/protobuf/Internal$ProtobufList<",
"TT;>;)",
"Lcom/google/protobuf/Internal$ProtobufList<",
"TT;>;"
}
.end annotation
.line 1
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
.line 2
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v1
if-lez v0, :cond_1
if-lez v1, :cond_1
.line 3
invoke-interface {p1}, Lcom/google/protobuf/Internal$ProtobufList;->isModifiable()Z
move-result v2
if-nez v2, :cond_0
add-int/2addr v1, v0
.line 4
invoke-interface {p1, v1}, Lcom/google/protobuf/Internal$ProtobufList;->mutableCopyWithCapacity(I)Lcom/google/protobuf/Internal$ProtobufList;
move-result-object p1
.line 5
:cond_0
invoke-interface {p1, p2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
:cond_1
if-lez v0, :cond_2
move-object p2, p1
:cond_2
return-object p2
.end method
.method public visitLong(ZJZJ)J
.locals 0
if-eqz p4, :cond_0
move-wide p2, p5
:cond_0
return-wide p2
.end method
.method public visitLongList(Lcom/google/protobuf/Internal$LongList;Lcom/google/protobuf/Internal$LongList;)Lcom/google/protobuf/Internal$LongList;
.locals 3
.line 1
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
.line 2
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v1
if-lez v0, :cond_1
if-lez v1, :cond_1
.line 3
invoke-interface {p1}, Lcom/google/protobuf/Internal$ProtobufList;->isModifiable()Z
move-result v2
if-nez v2, :cond_0
add-int/2addr v1, v0
.line 4
invoke-interface {p1, v1}, Lcom/google/protobuf/Internal$LongList;->mutableCopyWithCapacity(I)Lcom/google/protobuf/Internal$LongList;
move-result-object p1
.line 5
:cond_0
invoke-interface {p1, p2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
:cond_1
if-lez v0, :cond_2
move-object p2, p1
:cond_2
return-object p2
.end method
.method public visitMap(Lcom/google/protobuf/MapFieldLite;Lcom/google/protobuf/MapFieldLite;)Lcom/google/protobuf/MapFieldLite;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">(",
"Lcom/google/protobuf/MapFieldLite<",
"TK;TV;>;",
"Lcom/google/protobuf/MapFieldLite<",
"TK;TV;>;)",
"Lcom/google/protobuf/MapFieldLite<",
"TK;TV;>;"
}
.end annotation
.line 1
invoke-virtual {p2}, Ljava/util/LinkedHashMap;->isEmpty()Z
move-result v0
if-nez v0, :cond_1
.line 2
invoke-virtual {p1}, Lcom/google/protobuf/MapFieldLite;->isMutable()Z
move-result v0
if-nez v0, :cond_0
.line 3
invoke-virtual {p1}, Lcom/google/protobuf/MapFieldLite;->mutableCopy()Lcom/google/protobuf/MapFieldLite;
move-result-object p1
.line 4
:cond_0
invoke-virtual {p1, p2}, Lcom/google/protobuf/MapFieldLite;->mergeFrom(Lcom/google/protobuf/MapFieldLite;)V
:cond_1
return-object p1
.end method
.method public visitMessage(Lcom/google/protobuf/MessageLite;Lcom/google/protobuf/MessageLite;)Lcom/google/protobuf/MessageLite;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T::",
"Lcom/google/protobuf/MessageLite;",
">(TT;TT;)TT;"
}
.end annotation
if-eqz p1, :cond_0
if-eqz p2, :cond_0
.line 1
invoke-interface {p1}, Lcom/google/protobuf/MessageLite;->toBuilder()Lcom/google/protobuf/MessageLite$Builder;
move-result-object p1
invoke-interface {p1, p2}, Lcom/google/protobuf/MessageLite$Builder;->mergeFrom(Lcom/google/protobuf/MessageLite;)Lcom/google/protobuf/MessageLite$Builder;
move-result-object p1
invoke-interface {p1}, Lcom/google/protobuf/MessageLite$Builder;->build()Lcom/google/protobuf/MessageLite;
move-result-object p1
return-object p1
:cond_0
if-eqz p1, :cond_1
goto :goto_0
:cond_1
move-object p1, p2
:goto_0
return-object p1
.end method
.method public visitOneofBoolean(ZLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
return-object p3
.end method
.method public visitOneofByteString(ZLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
return-object p3
.end method
.method public visitOneofDouble(ZLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
return-object p3
.end method
.method public visitOneofFloat(ZLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
return-object p3
.end method
.method public visitOneofInt(ZLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
return-object p3
.end method
.method public visitOneofLazyMessage(ZLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
if-eqz p1, :cond_0
.line 1
check-cast p2, Lcom/google/protobuf/LazyFieldLite;
goto :goto_0
:cond_0
new-instance p2, Lcom/google/protobuf/LazyFieldLite;
invoke-direct {p2}, Lcom/google/protobuf/LazyFieldLite;-><init>()V
.line 2
:goto_0
check-cast p3, Lcom/google/protobuf/LazyFieldLite;
invoke-virtual {p2, p3}, Lcom/google/protobuf/LazyFieldLite;->merge(Lcom/google/protobuf/LazyFieldLite;)V
return-object p2
.end method
.method public visitOneofLong(ZLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
return-object p3
.end method
.method public visitOneofMessage(ZLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
if-eqz p1, :cond_0
.line 1
check-cast p2, Lcom/google/protobuf/MessageLite;
check-cast p3, Lcom/google/protobuf/MessageLite;
invoke-virtual {p0, p2, p3}, Lcom/google/protobuf/GeneratedMessageLite$MergeFromVisitor;->visitMessage(Lcom/google/protobuf/MessageLite;Lcom/google/protobuf/MessageLite;)Lcom/google/protobuf/MessageLite;
move-result-object p1
return-object p1
:cond_0
return-object p3
.end method
.method public visitOneofNotSet(Z)V
.locals 0
return-void
.end method
.method public visitOneofString(ZLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
return-object p3
.end method
.method public visitString(ZLjava/lang/String;ZLjava/lang/String;)Ljava/lang/String;
.locals 0
if-eqz p3, :cond_0
move-object p2, p4
:cond_0
return-object p2
.end method
.method public visitUnknownFields(Lcom/google/protobuf/UnknownFieldSetLite;Lcom/google/protobuf/UnknownFieldSetLite;)Lcom/google/protobuf/UnknownFieldSetLite;
.locals 1
.line 1
invoke-static {}, Lcom/google/protobuf/UnknownFieldSetLite;->getDefaultInstance()Lcom/google/protobuf/UnknownFieldSetLite;
move-result-object v0
if-ne p2, v0, :cond_0
goto :goto_0
.line 2
:cond_0
invoke-static {p1, p2}, Lcom/google/protobuf/UnknownFieldSetLite;->mutableCopyOf(Lcom/google/protobuf/UnknownFieldSetLite;Lcom/google/protobuf/UnknownFieldSetLite;)Lcom/google/protobuf/UnknownFieldSetLite;
move-result-object p1
:goto_0
return-object p1
.end method