379 lines
14 KiB
Smali
379 lines
14 KiB
Smali
.class public Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;
|
|
.super Lcom/fasterxml/jackson/databind/deser/std/StdDeserializer;
|
|
.source "AtomicReferenceDeserializer.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/fasterxml/jackson/databind/deser/ContextualDeserializer;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/fasterxml/jackson/databind/deser/std/StdDeserializer<",
|
|
"Ljava/util/concurrent/atomic/AtomicReference<",
|
|
"*>;>;",
|
|
"Lcom/fasterxml/jackson/databind/deser/ContextualDeserializer;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final serialVersionUID:J = 0x1L
|
|
|
|
|
|
# instance fields
|
|
.field public final _referencedType:Lcom/fasterxml/jackson/databind/JavaType;
|
|
|
|
.field public final _valueDeserializer:Lcom/fasterxml/jackson/databind/JsonDeserializer;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/fasterxml/jackson/databind/JsonDeserializer<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final _valueTypeDeserializer:Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/fasterxml/jackson/databind/JavaType;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, v0, v0}, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;-><init>(Lcom/fasterxml/jackson/databind/JavaType;Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;Lcom/fasterxml/jackson/databind/JsonDeserializer;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/fasterxml/jackson/databind/JavaType;Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;Lcom/fasterxml/jackson/databind/JsonDeserializer;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/fasterxml/jackson/databind/JavaType;",
|
|
"Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;",
|
|
"Lcom/fasterxml/jackson/databind/JsonDeserializer<",
|
|
"*>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
const-class v0, Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-direct {p0, v0}, Lcom/fasterxml/jackson/databind/deser/std/StdDeserializer;-><init>(Ljava/lang/Class;)V
|
|
|
|
.line 3
|
|
iput-object p1, p0, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->_referencedType:Lcom/fasterxml/jackson/databind/JavaType;
|
|
|
|
.line 4
|
|
iput-object p3, p0, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->_valueDeserializer:Lcom/fasterxml/jackson/databind/JsonDeserializer;
|
|
|
|
.line 5
|
|
iput-object p2, p0, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->_valueTypeDeserializer:Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public createContextual(Lcom/fasterxml/jackson/databind/DeserializationContext;Lcom/fasterxml/jackson/databind/BeanProperty;)Lcom/fasterxml/jackson/databind/JsonDeserializer;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/fasterxml/jackson/databind/DeserializationContext;",
|
|
"Lcom/fasterxml/jackson/databind/BeanProperty;",
|
|
")",
|
|
"Lcom/fasterxml/jackson/databind/JsonDeserializer<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/fasterxml/jackson/databind/JsonMappingException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->_valueDeserializer:Lcom/fasterxml/jackson/databind/JsonDeserializer;
|
|
|
|
.line 2
|
|
iget-object v1, p0, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->_valueTypeDeserializer:Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->_referencedType:Lcom/fasterxml/jackson/databind/JavaType;
|
|
|
|
invoke-virtual {p1, v0, p2}, Lcom/fasterxml/jackson/databind/DeserializationContext;->findContextualValueDeserializer(Lcom/fasterxml/jackson/databind/JavaType;Lcom/fasterxml/jackson/databind/BeanProperty;)Lcom/fasterxml/jackson/databind/JsonDeserializer;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
.line 4
|
|
:cond_0
|
|
iget-object v2, p0, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->_referencedType:Lcom/fasterxml/jackson/databind/JavaType;
|
|
|
|
invoke-virtual {p1, v0, p2, v2}, Lcom/fasterxml/jackson/databind/DeserializationContext;->handleSecondaryContextualization(Lcom/fasterxml/jackson/databind/JsonDeserializer;Lcom/fasterxml/jackson/databind/BeanProperty;Lcom/fasterxml/jackson/databind/JavaType;)Lcom/fasterxml/jackson/databind/JsonDeserializer;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 5
|
|
invoke-virtual {v1, p2}, Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;->forProperty(Lcom/fasterxml/jackson/databind/BeanProperty;)Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;
|
|
|
|
move-result-object v1
|
|
|
|
.line 6
|
|
:cond_1
|
|
invoke-virtual {p0, v1, p1}, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->withResolved(Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;Lcom/fasterxml/jackson/databind/JsonDeserializer;)Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public bridge synthetic deserialize(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/lang/Object;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;,
|
|
Lcom/fasterxml/jackson/core/JsonProcessingException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1, p2}, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->deserialize(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public deserialize(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/util/concurrent/atomic/AtomicReference;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/fasterxml/jackson/core/JsonParser;",
|
|
"Lcom/fasterxml/jackson/databind/DeserializationContext;",
|
|
")",
|
|
"Ljava/util/concurrent/atomic/AtomicReference<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->_valueTypeDeserializer:Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->_valueDeserializer:Lcom/fasterxml/jackson/databind/JsonDeserializer;
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/fasterxml/jackson/databind/JsonDeserializer;->deserialize(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->_valueDeserializer:Lcom/fasterxml/jackson/databind/JsonDeserializer;
|
|
|
|
invoke-virtual {v1, p1, p2, v0}, Lcom/fasterxml/jackson/databind/JsonDeserializer;->deserializeWithType(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
.line 3
|
|
:goto_0
|
|
new-instance p2, Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-direct {p2, p1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
return-object p2
|
|
.end method
|
|
|
|
.method public deserializeWithType(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;)Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Lcom/fasterxml/jackson/core/JsonParser;->getCurrentToken()Lcom/fasterxml/jackson/core/JsonToken;
|
|
|
|
move-result-object p3
|
|
|
|
.line 2
|
|
sget-object v0, Lcom/fasterxml/jackson/core/JsonToken;->VALUE_NULL:Lcom/fasterxml/jackson/core/JsonToken;
|
|
|
|
if-ne p3, v0, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {p0, p2}, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->getNullValue(Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
if-eqz p3, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p3}, Lcom/fasterxml/jackson/core/JsonToken;->isScalarValue()Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
.line 5
|
|
invoke-virtual {p0, p1, p2}, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->deserialize(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 6
|
|
:cond_1
|
|
iget-object p3, p0, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->_valueTypeDeserializer:Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;
|
|
|
|
if-nez p3, :cond_2
|
|
|
|
.line 7
|
|
invoke-virtual {p0, p1, p2}, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->deserialize(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 8
|
|
:cond_2
|
|
new-instance p3, Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
iget-object v0, p0, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->_valueTypeDeserializer:Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;->deserializeTypedFromAny(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p3, p1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
return-object p3
|
|
.end method
|
|
|
|
.method public bridge synthetic getNullValue()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->getNullValue()Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic getNullValue(Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/lang/Object;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/fasterxml/jackson/databind/JsonMappingException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1}, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->getNullValue(Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public getNullValue()Ljava/util/concurrent/atomic/AtomicReference;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/concurrent/atomic/AtomicReference<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 4
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getNullValue(Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/util/concurrent/atomic/AtomicReference;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/fasterxml/jackson/databind/DeserializationContext;",
|
|
")",
|
|
"Ljava/util/concurrent/atomic/AtomicReference<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 3
|
|
new-instance p1, Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public withResolved(Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;Lcom/fasterxml/jackson/databind/JsonDeserializer;)Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;",
|
|
"Lcom/fasterxml/jackson/databind/JsonDeserializer<",
|
|
"*>;)",
|
|
"Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->_valueDeserializer:Lcom/fasterxml/jackson/databind/JsonDeserializer;
|
|
|
|
if-ne p2, v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->_valueTypeDeserializer:Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
return-object p0
|
|
|
|
.line 2
|
|
:cond_0
|
|
new-instance v0, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;
|
|
|
|
iget-object v1, p0, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;->_referencedType:Lcom/fasterxml/jackson/databind/JavaType;
|
|
|
|
invoke-direct {v0, v1, p1, p2}, Lcom/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer;-><init>(Lcom/fasterxml/jackson/databind/JavaType;Lcom/fasterxml/jackson/databind/jsontype/TypeDeserializer;Lcom/fasterxml/jackson/databind/JsonDeserializer;)V
|
|
|
|
return-object v0
|
|
.end method
|