ClientInterceptors$CheckedForwardingClientCall.smali
.class public abstract Lio/grpc/ClientInterceptors$CheckedForwardingClientCall;
.super Lio/grpc/ForwardingClientCall;
.source "ClientInterceptors.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/grpc/ClientInterceptors;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x409
name = "CheckedForwardingClientCall"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<ReqT:",
"Ljava/lang/Object;",
"RespT:",
"Ljava/lang/Object;",
">",
"Lio/grpc/ForwardingClientCall<",
"TReqT;TRespT;>;"
}
.end annotation
# instance fields
.field private delegate:Lio/grpc/ClientCall;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/grpc/ClientCall<",
"TReqT;TRespT;>;"
}
.end annotation
.end field
# direct methods
.method protected constructor <init>(Lio/grpc/ClientCall;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/grpc/ClientCall<",
"TReqT;TRespT;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Lio/grpc/ForwardingClientCall;-><init>()V
.line 2
iput-object p1, p0, Lio/grpc/ClientInterceptors$CheckedForwardingClientCall;->delegate:Lio/grpc/ClientCall;
return-void
.end method
# virtual methods
.method protected abstract checkedStart(Lio/grpc/ClientCall$Listener;Lio/grpc/Metadata;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/grpc/ClientCall$Listener<",
"TRespT;>;",
"Lio/grpc/Metadata;",
")V"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.end method
.method protected final delegate()Lio/grpc/ClientCall;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lio/grpc/ClientCall<",
"TReqT;TRespT;>;"
}
.end annotation
.line 1
iget-object v0, p0, Lio/grpc/ClientInterceptors$CheckedForwardingClientCall;->delegate:Lio/grpc/ClientCall;
return-object v0
.end method
.method public final start(Lio/grpc/ClientCall$Listener;Lio/grpc/Metadata;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/grpc/ClientCall$Listener<",
"TRespT;>;",
"Lio/grpc/Metadata;",
")V"
}
.end annotation
.line 1
:try_start_0
invoke-virtual {p0, p1, p2}, Lio/grpc/ClientInterceptors$CheckedForwardingClientCall;->checkedStart(Lio/grpc/ClientCall$Listener;Lio/grpc/Metadata;)V
:try_end_3
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_3} :catch_4
goto :goto_17
:catch_4
move-exception p2
.line 2
# getter for: Lio/grpc/ClientInterceptors;->NOOP_CALL:Lio/grpc/ClientCall;
invoke-static {}, Lio/grpc/ClientInterceptors;->access$100()Lio/grpc/ClientCall;
move-result-object v0
iput-object v0, p0, Lio/grpc/ClientInterceptors$CheckedForwardingClientCall;->delegate:Lio/grpc/ClientCall;
.line 3
invoke-static {p2}, Lio/grpc/Status;->fromThrowable(Ljava/lang/Throwable;)Lio/grpc/Status;
move-result-object p2
new-instance v0, Lio/grpc/Metadata;
invoke-direct {v0}, Lio/grpc/Metadata;-><init>()V
invoke-virtual {p1, p2, v0}, Lio/grpc/ClientCall$Listener;->onClose(Lio/grpc/Status;Lio/grpc/Metadata;)V
:goto_17
return-void
.end method