MappingIterator.smali
.class public Lcom/fasterxml/jackson/databind/MappingIterator;
.super Ljava/lang/Object;
.source "MappingIterator.java"
# interfaces
.implements Ljava/io/Closeable;
.implements Ljava/util/Iterator;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Ljava/io/Closeable;",
"Ljava/util/Iterator",
"<TT;>;"
}
.end annotation
# static fields
.field protected static final EMPTY_ITERATOR:Lcom/fasterxml/jackson/databind/MappingIterator;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/fasterxml/jackson/databind/MappingIterator",
"<*>;"
}
.end annotation
.end field
# instance fields
.field protected final _closeParser:Z
.field protected final _context:Lcom/fasterxml/jackson/databind/DeserializationContext;
.field protected final _deserializer:Lcom/fasterxml/jackson/databind/JsonDeserializer;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/fasterxml/jackson/databind/JsonDeserializer",
"<TT;>;"
}
.end annotation
.end field
.field protected final _parser:Lcom/fasterxml/jackson/core/JsonParser;
.field protected final _seqContext:Lcom/fasterxml/jackson/core/JsonStreamContext;
.field protected _state:I
.field protected final _type:Lcom/fasterxml/jackson/databind/JavaType;
.field protected final _updatedValue:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 7
.prologue
const/4 v1, 0x0
.line 16
new-instance v0, Lcom/fasterxml/jackson/databind/MappingIterator;
const/4 v5, 0x0
move-object v2, v1
move-object v3, v1
move-object v4, v1
move-object v6, v1
invoke-direct/range {v0 .. v6}, Lcom/fasterxml/jackson/databind/MappingIterator;-><init>(Lcom/fasterxml/jackson/databind/JavaType;Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;Lcom/fasterxml/jackson/databind/JsonDeserializer;ZLjava/lang/Object;)V
sput-object v0, Lcom/fasterxml/jackson/databind/MappingIterator;->EMPTY_ITERATOR:Lcom/fasterxml/jackson/databind/MappingIterator;
return-void
.end method
.method protected constructor <init>(Lcom/fasterxml/jackson/databind/JavaType;Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;Lcom/fasterxml/jackson/databind/JsonDeserializer;ZLjava/lang/Object;)V
.registers 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/fasterxml/jackson/databind/JavaType;",
"Lcom/fasterxml/jackson/core/JsonParser;",
"Lcom/fasterxml/jackson/databind/DeserializationContext;",
"Lcom/fasterxml/jackson/databind/JsonDeserializer",
"<*>;Z",
"Ljava/lang/Object;",
")V"
}
.end annotation
.prologue
const/4 v0, 0x0
.line 121
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 122
iput-object p1, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_type:Lcom/fasterxml/jackson/databind/JavaType;
.line 123
iput-object p2, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_parser:Lcom/fasterxml/jackson/core/JsonParser;
.line 124
iput-object p3, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_context:Lcom/fasterxml/jackson/databind/DeserializationContext;
.line 125
iput-object p4, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_deserializer:Lcom/fasterxml/jackson/databind/JsonDeserializer;
.line 126
iput-boolean p5, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_closeParser:Z
.line 127
if-nez p6, :cond_1a
.line 128
iput-object v0, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_updatedValue:Ljava/lang/Object;
.line 143
:goto_12
if-nez p2, :cond_1d
.line 144
iput-object v0, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_seqContext:Lcom/fasterxml/jackson/core/JsonStreamContext;
.line 145
const/4 v0, 0x0
iput v0, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_state:I
.line 163
:goto_19
return-void
.line 130
:cond_1a
iput-object p6, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_updatedValue:Ljava/lang/Object;
goto :goto_12
.line 147
:cond_1d
invoke-virtual {p2}, Lcom/fasterxml/jackson/core/JsonParser;->getParsingContext()Lcom/fasterxml/jackson/core/JsonStreamContext;
move-result-object v0
.line 148
if-eqz p5, :cond_32
invoke-virtual {p2}, Lcom/fasterxml/jackson/core/JsonParser;->isExpectedStartArrayToken()Z
move-result v1
if-eqz v1, :cond_32
.line 150
invoke-virtual {p2}, Lcom/fasterxml/jackson/core/JsonParser;->clearCurrentToken()V
.line 160
:cond_2c
:goto_2c
iput-object v0, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_seqContext:Lcom/fasterxml/jackson/core/JsonStreamContext;
.line 161
const/4 v0, 0x2
iput v0, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_state:I
goto :goto_19
.line 155
:cond_32
invoke-virtual {p2}, Lcom/fasterxml/jackson/core/JsonParser;->getCurrentToken()Lcom/fasterxml/jackson/core/JsonToken;
move-result-object v1
.line 156
sget-object v2, Lcom/fasterxml/jackson/core/JsonToken;->START_OBJECT:Lcom/fasterxml/jackson/core/JsonToken;
if-eq v1, v2, :cond_3e
sget-object v2, Lcom/fasterxml/jackson/core/JsonToken;->START_ARRAY:Lcom/fasterxml/jackson/core/JsonToken;
if-ne v1, v2, :cond_2c
.line 157
:cond_3e
invoke-virtual {v0}, Lcom/fasterxml/jackson/core/JsonStreamContext;->getParent()Lcom/fasterxml/jackson/core/JsonStreamContext;
move-result-object v0
goto :goto_2c
.end method
# virtual methods
.method protected _handleIOException(Ljava/io/IOException;)Ljava/lang/Object;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<R:",
"Ljava/lang/Object;",
">(",
"Ljava/io/IOException;",
")TR;"
}
.end annotation
.prologue
.line 414
new-instance v0, Ljava/lang/RuntimeException;
invoke-virtual {p1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v0
.end method
.method protected _handleMappingException(Lcom/fasterxml/jackson/databind/JsonMappingException;)Ljava/lang/Object;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<R:",
"Ljava/lang/Object;",
">(",
"Lcom/fasterxml/jackson/databind/JsonMappingException;",
")TR;"
}
.end annotation
.prologue
.line 410
new-instance v0, Lcom/fasterxml/jackson/databind/RuntimeJsonMappingException;
invoke-virtual {p1}, Lcom/fasterxml/jackson/databind/JsonMappingException;->getMessage()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1, p1}, Lcom/fasterxml/jackson/databind/RuntimeJsonMappingException;-><init>(Ljava/lang/String;Lcom/fasterxml/jackson/databind/JsonMappingException;)V
throw v0
.end method
.method protected _resync()V
.registers 4
.prologue
.line 384
iget-object v0, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_parser:Lcom/fasterxml/jackson/core/JsonParser;
.line 386
invoke-virtual {v0}, Lcom/fasterxml/jackson/core/JsonParser;->getParsingContext()Lcom/fasterxml/jackson/core/JsonStreamContext;
move-result-object v1
iget-object v2, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_seqContext:Lcom/fasterxml/jackson/core/JsonStreamContext;
if-ne v1, v2, :cond_16
.line 400
:goto_a
return-void
.line 397
:cond_b
sget-object v2, Lcom/fasterxml/jackson/core/JsonToken;->START_ARRAY:Lcom/fasterxml/jackson/core/JsonToken;
if-eq v1, v2, :cond_13
sget-object v2, Lcom/fasterxml/jackson/core/JsonToken;->START_OBJECT:Lcom/fasterxml/jackson/core/JsonToken;
if-ne v1, v2, :cond_2e
.line 398
:cond_13
invoke-virtual {v0}, Lcom/fasterxml/jackson/core/JsonParser;->skipChildren()Lcom/fasterxml/jackson/core/JsonParser;
.line 391
:cond_16
invoke-virtual {v0}, Lcom/fasterxml/jackson/core/JsonParser;->nextToken()Lcom/fasterxml/jackson/core/JsonToken;
move-result-object v1
.line 392
sget-object v2, Lcom/fasterxml/jackson/core/JsonToken;->END_ARRAY:Lcom/fasterxml/jackson/core/JsonToken;
if-eq v1, v2, :cond_22
sget-object v2, Lcom/fasterxml/jackson/core/JsonToken;->END_OBJECT:Lcom/fasterxml/jackson/core/JsonToken;
if-ne v1, v2, :cond_b
.line 393
:cond_22
invoke-virtual {v0}, Lcom/fasterxml/jackson/core/JsonParser;->getParsingContext()Lcom/fasterxml/jackson/core/JsonStreamContext;
move-result-object v1
iget-object v2, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_seqContext:Lcom/fasterxml/jackson/core/JsonStreamContext;
if-ne v1, v2, :cond_16
.line 394
invoke-virtual {v0}, Lcom/fasterxml/jackson/core/JsonParser;->clearCurrentToken()V
goto :goto_a
.line 399
:cond_2e
if-nez v1, :cond_16
goto :goto_a
.end method
.method protected _throwNoSuchElement()Ljava/lang/Object;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<R:",
"Ljava/lang/Object;",
">()TR;"
}
.end annotation
.prologue
.line 406
new-instance v0, Ljava/util/NoSuchElementException;
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
throw v0
.end method
.method public close()V
.registers 2
.prologue
.line 207
iget v0, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_state:I
if-eqz v0, :cond_10
.line 208
const/4 v0, 0x0
iput v0, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_state:I
.line 209
iget-object v0, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_parser:Lcom/fasterxml/jackson/core/JsonParser;
if-eqz v0, :cond_10
.line 210
iget-object v0, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_parser:Lcom/fasterxml/jackson/core/JsonParser;
invoke-virtual {v0}, Lcom/fasterxml/jackson/core/JsonParser;->close()V
.line 213
:cond_10
return-void
.end method
.method public hasNext()Z
.registers 2
.prologue
.line 180
:try_start_0
invoke-virtual {p0}, Lcom/fasterxml/jackson/databind/MappingIterator;->hasNextValue()Z
:try_end_3
.catch Lcom/fasterxml/jackson/databind/JsonMappingException; {:try_start_0 .. :try_end_3} :catch_5
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_3} :catch_11
move-result v0
.line 184
:goto_4
return v0
.line 181
:catch_5
move-exception v0
.line 182
invoke-virtual {p0, v0}, Lcom/fasterxml/jackson/databind/MappingIterator;->_handleMappingException(Lcom/fasterxml/jackson/databind/JsonMappingException;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
goto :goto_4
.line 183
:catch_11
move-exception v0
.line 184
invoke-virtual {p0, v0}, Lcom/fasterxml/jackson/databind/MappingIterator;->_handleIOException(Ljava/io/IOException;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
goto :goto_4
.end method
.method public hasNextValue()Z
.registers 5
.prologue
const/4 v1, 0x1
const/4 v0, 0x0
.line 231
iget v2, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_state:I
packed-switch v2, :pswitch_data_36
move v0, v1
.line 255
:cond_8
:goto_8
:pswitch_8
return v0
.line 235
:pswitch_9
invoke-virtual {p0}, Lcom/fasterxml/jackson/databind/MappingIterator;->_resync()V
.line 238
:pswitch_c
iget-object v2, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_parser:Lcom/fasterxml/jackson/core/JsonParser;
invoke-virtual {v2}, Lcom/fasterxml/jackson/core/JsonParser;->getCurrentToken()Lcom/fasterxml/jackson/core/JsonToken;
move-result-object v2
.line 239
if-nez v2, :cond_30
.line 240
iget-object v2, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_parser:Lcom/fasterxml/jackson/core/JsonParser;
invoke-virtual {v2}, Lcom/fasterxml/jackson/core/JsonParser;->nextToken()Lcom/fasterxml/jackson/core/JsonToken;
move-result-object v2
.line 242
if-eqz v2, :cond_20
sget-object v3, Lcom/fasterxml/jackson/core/JsonToken;->END_ARRAY:Lcom/fasterxml/jackson/core/JsonToken;
if-ne v2, v3, :cond_30
.line 243
:cond_20
iput v0, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_state:I
.line 244
iget-boolean v1, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_closeParser:Z
if-eqz v1, :cond_8
iget-object v1, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_parser:Lcom/fasterxml/jackson/core/JsonParser;
if-eqz v1, :cond_8
.line 245
iget-object v1, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_parser:Lcom/fasterxml/jackson/core/JsonParser;
invoke-virtual {v1}, Lcom/fasterxml/jackson/core/JsonParser;->close()V
goto :goto_8
.line 250
:cond_30
const/4 v0, 0x3
iput v0, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_state:I
move v0, v1
.line 251
goto :goto_8
.line 231
nop
:pswitch_data_36
.packed-switch 0x0
:pswitch_8
:pswitch_9
:pswitch_c
.end packed-switch
.end method
.method public next()Ljava/lang/Object;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.prologue
.line 192
:try_start_0
invoke-virtual {p0}, Lcom/fasterxml/jackson/databind/MappingIterator;->nextValue()Ljava/lang/Object;
:try_end_3
.catch Lcom/fasterxml/jackson/databind/JsonMappingException; {:try_start_0 .. :try_end_3} :catch_5
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_3} :catch_10
move-result-object v0
return-object v0
.line 193
:catch_5
move-exception v0
.line 194
new-instance v1, Lcom/fasterxml/jackson/databind/RuntimeJsonMappingException;
invoke-virtual {v0}, Lcom/fasterxml/jackson/databind/JsonMappingException;->getMessage()Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2, v0}, Lcom/fasterxml/jackson/databind/RuntimeJsonMappingException;-><init>(Ljava/lang/String;Lcom/fasterxml/jackson/databind/JsonMappingException;)V
throw v1
.line 195
:catch_10
move-exception v0
.line 196
new-instance v1, Ljava/lang/RuntimeException;
invoke-virtual {v0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
.end method
.method public nextValue()Ljava/lang/Object;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.prologue
.line 260
iget v0, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_state:I
packed-switch v0, :pswitch_data_44
.line 276
:cond_5
:try_start_5
iget-object v0, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_updatedValue:Ljava/lang/Object;
if-nez v0, :cond_2c
.line 277
iget-object v0, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_deserializer:Lcom/fasterxml/jackson/databind/JsonDeserializer;
iget-object v1, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_parser:Lcom/fasterxml/jackson/core/JsonParser;
iget-object v2, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_context:Lcom/fasterxml/jackson/databind/DeserializationContext;
invoke-virtual {v0, v1, v2}, Lcom/fasterxml/jackson/databind/JsonDeserializer;->deserialize(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/lang/Object;
:try_end_12
.catchall {:try_start_5 .. :try_end_12} :catchall_3a
move-result-object v0
.line 285
:goto_13
const/4 v1, 0x2
iput v1, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_state:I
.line 290
iget-object v1, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_parser:Lcom/fasterxml/jackson/core/JsonParser;
invoke-virtual {v1}, Lcom/fasterxml/jackson/core/JsonParser;->clearCurrentToken()V
:goto_1b
return-object v0
.line 262
:pswitch_1c
invoke-virtual {p0}, Lcom/fasterxml/jackson/databind/MappingIterator;->_throwNoSuchElement()Ljava/lang/Object;
move-result-object v0
goto :goto_1b
.line 265
:pswitch_21
invoke-virtual {p0}, Lcom/fasterxml/jackson/databind/MappingIterator;->hasNextValue()Z
move-result v0
if-nez v0, :cond_5
.line 266
invoke-virtual {p0}, Lcom/fasterxml/jackson/databind/MappingIterator;->_throwNoSuchElement()Ljava/lang/Object;
move-result-object v0
goto :goto_1b
.line 279
:cond_2c
:try_start_2c
iget-object v0, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_deserializer:Lcom/fasterxml/jackson/databind/JsonDeserializer;
iget-object v1, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_parser:Lcom/fasterxml/jackson/core/JsonParser;
iget-object v2, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_context:Lcom/fasterxml/jackson/databind/DeserializationContext;
iget-object v3, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_updatedValue:Ljava/lang/Object;
invoke-virtual {v0, v1, v2, v3}, Lcom/fasterxml/jackson/databind/JsonDeserializer;->deserialize(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;Ljava/lang/Object;)Ljava/lang/Object;
.line 280
iget-object v0, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_updatedValue:Ljava/lang/Object;
:try_end_39
.catchall {:try_start_2c .. :try_end_39} :catchall_3a
goto :goto_13
.line 285
:catchall_3a
move-exception v0
const/4 v1, 0x1
iput v1, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_state:I
.line 290
iget-object v1, p0, Lcom/fasterxml/jackson/databind/MappingIterator;->_parser:Lcom/fasterxml/jackson/core/JsonParser;
invoke-virtual {v1}, Lcom/fasterxml/jackson/core/JsonParser;->clearCurrentToken()V
throw v0
.line 260
:pswitch_data_44
.packed-switch 0x0
:pswitch_1c
:pswitch_21
:pswitch_21
.end packed-switch
.end method
.method public remove()V
.registers 2
.prologue
.line 202
new-instance v0, Ljava/lang/UnsupportedOperationException;
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw v0
.end method