159 lines
3.7 KiB
Smali
159 lines
3.7 KiB
Smali
.class public abstract Lcom/esotericsoftware/kryo/Serializer;
|
|
.super Ljava/lang/Object;
|
|
.source "Serializer.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private acceptsNull:Z
|
|
|
|
.field private immutable:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Z)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-boolean p1, p0, Lcom/esotericsoftware/kryo/Serializer;->acceptsNull:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(ZZ)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-boolean p1, p0, Lcom/esotericsoftware/kryo/Serializer;->acceptsNull:Z
|
|
|
|
iput-boolean p2, p0, Lcom/esotericsoftware/kryo/Serializer;->immutable:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public copy(Lcom/esotericsoftware/kryo/Kryo;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/esotericsoftware/kryo/Kryo;",
|
|
"TT;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-boolean p1, p0, Lcom/esotericsoftware/kryo/Serializer;->immutable:Z
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
return-object p2
|
|
|
|
:cond_0
|
|
new-instance p1, Lcom/esotericsoftware/kryo/KryoException;
|
|
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "Serializer does not support copy: "
|
|
|
|
invoke-direct {p2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Lcom/esotericsoftware/kryo/KryoException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public getAcceptsNull()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/esotericsoftware/kryo/Serializer;->acceptsNull:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isImmutable()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/esotericsoftware/kryo/Serializer;->immutable:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public abstract read(Lcom/esotericsoftware/kryo/Kryo;Lcom/esotericsoftware/kryo/io/Input;Ljava/lang/Class;)Ljava/lang/Object;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/esotericsoftware/kryo/Kryo;",
|
|
"Lcom/esotericsoftware/kryo/io/Input;",
|
|
"Ljava/lang/Class<",
|
|
"TT;>;)TT;"
|
|
}
|
|
.end annotation
|
|
.end method
|
|
|
|
.method public setAcceptsNull(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lcom/esotericsoftware/kryo/Serializer;->acceptsNull:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setGenerics(Lcom/esotericsoftware/kryo/Kryo;[Ljava/lang/Class;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setImmutable(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lcom/esotericsoftware/kryo/Serializer;->immutable:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public abstract write(Lcom/esotericsoftware/kryo/Kryo;Lcom/esotericsoftware/kryo/io/Output;Ljava/lang/Object;)V
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/esotericsoftware/kryo/Kryo;",
|
|
"Lcom/esotericsoftware/kryo/io/Output;",
|
|
"TT;)V"
|
|
}
|
|
.end annotation
|
|
.end method
|