今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

376 lines
10 KiB

.class final Lcom/google/common/collect/ComputingConcurrentHashMap$ComputingValueReference;
.super Ljava/lang/Object;
.source "ComputingConcurrentHashMap.java"
# interfaces
.implements Lcom/google/common/collect/MapMakerInternalMap$ValueReference;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/collect/ComputingConcurrentHashMap;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1a
name = "ComputingValueReference"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lcom/google/common/collect/MapMakerInternalMap$ValueReference",
"<TK;TV;>;"
}
.end annotation
# instance fields
.field volatile computedReference:Lcom/google/common/collect/MapMakerInternalMap$ValueReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/collect/MapMakerInternalMap$ValueReference",
"<TK;TV;>;"
}
.end annotation
.annotation build Ljavax/annotation/concurrent/GuardedBy;
value = "ComputingValueReference.this"
.end annotation
.end field
.field final computingFunction:Lcom/google/common/base/Function;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/base/Function",
"<-TK;+TV;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lcom/google/common/base/Function;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/base/Function",
"<-TK;+TV;>;)V"
}
.end annotation
.prologue
.line 291
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 288
invoke-static {}, Lcom/google/common/collect/MapMakerInternalMap;->unset()Lcom/google/common/collect/MapMakerInternalMap$ValueReference;
move-result-object v0
iput-object v0, p0, Lcom/google/common/collect/ComputingConcurrentHashMap$ComputingValueReference;->computedReference:Lcom/google/common/collect/MapMakerInternalMap$ValueReference;
.line 292
iput-object p1, p0, Lcom/google/common/collect/ComputingConcurrentHashMap$ComputingValueReference;->computingFunction:Lcom/google/common/base/Function;
.line 293
return-void
.end method
# virtual methods
.method public clear(Lcom/google/common/collect/MapMakerInternalMap$ValueReference;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/collect/MapMakerInternalMap$ValueReference",
"<TK;TV;>;)V"
}
.end annotation
.prologue
.line 348
invoke-virtual {p0, p1}, Lcom/google/common/collect/ComputingConcurrentHashMap$ComputingValueReference;->setValueReference(Lcom/google/common/collect/MapMakerInternalMap$ValueReference;)V
.line 351
return-void
.end method
.method compute(Ljava/lang/Object;I)Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;I)TV;"
}
.end annotation
.prologue
.line 356
:try_start_0
iget-object v0, p0, Lcom/google/common/collect/ComputingConcurrentHashMap$ComputingValueReference;->computingFunction:Lcom/google/common/base/Function;
invoke-interface {v0, p1}, Lcom/google/common/base/Function;->apply(Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
move-result-object v0
.line 362
new-instance v1, Lcom/google/common/collect/ComputingConcurrentHashMap$ComputedReference;
invoke-direct {v1, v0}, Lcom/google/common/collect/ComputingConcurrentHashMap$ComputedReference;-><init>(Ljava/lang/Object;)V
invoke-virtual {p0, v1}, Lcom/google/common/collect/ComputingConcurrentHashMap$ComputingValueReference;->setValueReference(Lcom/google/common/collect/MapMakerInternalMap$ValueReference;)V
.line 363
return-object v0
.line 357
:catch_0
move-exception v0
.line 358
new-instance v1, Lcom/google/common/collect/ComputingConcurrentHashMap$ComputationExceptionReference;
invoke-direct {v1, v0}, Lcom/google/common/collect/ComputingConcurrentHashMap$ComputationExceptionReference;-><init>(Ljava/lang/Throwable;)V
invoke-virtual {p0, v1}, Lcom/google/common/collect/ComputingConcurrentHashMap$ComputingValueReference;->setValueReference(Lcom/google/common/collect/MapMakerInternalMap$ValueReference;)V
.line 359
new-instance v1, Ljava/util/concurrent/ExecutionException;
invoke-direct {v1, v0}, Ljava/util/concurrent/ExecutionException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method public copyFor(Ljava/lang/ref/ReferenceQueue;Ljava/lang/Object;Lcom/google/common/collect/MapMakerInternalMap$ReferenceEntry;)Lcom/google/common/collect/MapMakerInternalMap$ValueReference;
.locals 0
.param p2 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/ref/ReferenceQueue",
"<TV;>;TV;",
"Lcom/google/common/collect/MapMakerInternalMap$ReferenceEntry",
"<TK;TV;>;)",
"Lcom/google/common/collect/MapMakerInternalMap$ValueReference",
"<TK;TV;>;"
}
.end annotation
.prologue
.line 310
return-object p0
.end method
.method public get()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()TV;"
}
.end annotation
.prologue
.line 299
const/4 v0, 0x0
return-object v0
.end method
.method public getEntry()Lcom/google/common/collect/MapMakerInternalMap$ReferenceEntry;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/collect/MapMakerInternalMap$ReferenceEntry",
"<TK;TV;>;"
}
.end annotation
.prologue
.line 304
const/4 v0, 0x0
return-object v0
.end method
.method public isComputingReference()Z
.locals 1
.prologue
.line 315
const/4 v0, 0x1
return v0
.end method
.method setValueReference(Lcom/google/common/collect/MapMakerInternalMap$ValueReference;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/collect/MapMakerInternalMap$ValueReference",
"<TK;TV;>;)V"
}
.end annotation
.prologue
.line 367
monitor-enter p0
.line 368
:try_start_0
iget-object v0, p0, Lcom/google/common/collect/ComputingConcurrentHashMap$ComputingValueReference;->computedReference:Lcom/google/common/collect/MapMakerInternalMap$ValueReference;
sget-object v1, Lcom/google/common/collect/MapMakerInternalMap;->UNSET:Lcom/google/common/collect/MapMakerInternalMap$ValueReference;
if-ne v0, v1, :cond_0
.line 369
iput-object p1, p0, Lcom/google/common/collect/ComputingConcurrentHashMap$ComputingValueReference;->computedReference:Lcom/google/common/collect/MapMakerInternalMap$ValueReference;
.line 370
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
.line 372
:cond_0
monitor-exit p0
.line 373
return-void
.line 372
:catchall_0
move-exception v0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
.end method
.method public waitForValue()Ljava/lang/Object;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()TV;"
}
.end annotation
.prologue
.line 323
iget-object v0, p0, Lcom/google/common/collect/ComputingConcurrentHashMap$ComputingValueReference;->computedReference:Lcom/google/common/collect/MapMakerInternalMap$ValueReference;
sget-object v1, Lcom/google/common/collect/MapMakerInternalMap;->UNSET:Lcom/google/common/collect/MapMakerInternalMap$ValueReference;
if-ne v0, v1, :cond_1
.line 324
const/4 v1, 0x0
.line 326
:try_start_0
monitor-enter p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
.line 327
:goto_0
:try_start_1
iget-object v0, p0, Lcom/google/common/collect/ComputingConcurrentHashMap$ComputingValueReference;->computedReference:Lcom/google/common/collect/MapMakerInternalMap$ValueReference;
sget-object v2, Lcom/google/common/collect/MapMakerInternalMap;->UNSET:Lcom/google/common/collect/MapMakerInternalMap$ValueReference;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
if-ne v0, v2, :cond_0
.line 329
:try_start_2
invoke-virtual {p0}, Ljava/lang/Object;->wait()V
:try_end_2
.catch Ljava/lang/InterruptedException; {:try_start_2 .. :try_end_2} :catch_0
.catchall {:try_start_2 .. :try_end_2} :catchall_0
goto :goto_0
.line 330
:catch_0
move-exception v0
.line 331
const/4 v1, 0x1
.line 332
goto :goto_0
.line 334
:cond_0
:try_start_3
monitor-exit p0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
.line 336
if-eqz v1, :cond_1
.line 337
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
.line 341
:cond_1
iget-object v0, p0, Lcom/google/common/collect/ComputingConcurrentHashMap$ComputingValueReference;->computedReference:Lcom/google/common/collect/MapMakerInternalMap$ValueReference;
invoke-interface {v0}, Lcom/google/common/collect/MapMakerInternalMap$ValueReference;->waitForValue()Ljava/lang/Object;
move-result-object v0
return-object v0
.line 334
:catchall_0
move-exception v0
:try_start_4
monitor-exit p0
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_0
:try_start_5
throw v0
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_1
.line 336
:catchall_1
move-exception v0
if-eqz v1, :cond_2
.line 337
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
:cond_2
throw v0
.end method