final class sun.nio.ch.CompletedFuture<V> implements java.util.concurrent.Future<V>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.nio.ch.CompletedFuture
super_class: java.lang.Object
{
private final V result;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: TV;
private final java.lang.Throwable exc;
descriptor: Ljava/lang/Throwable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private void <init>(V, java.lang.Throwable);
descriptor: (Ljava/lang/Object;Ljava/lang/Throwable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield sun.nio.ch.CompletedFuture.result:Ljava/lang/Object;
2: aload 0
aload 2
putfield sun.nio.ch.CompletedFuture.exc:Ljava/lang/Throwable;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/CompletedFuture<TV;>;
0 4 1 result TV;
0 4 2 exc Ljava/lang/Throwable;
Signature: (TV;Ljava/lang/Throwable;)V
MethodParameters:
Name Flags
result
exc
static <V> sun.nio.ch.CompletedFuture<V> withResult(V);
descriptor: (Ljava/lang/Object;)Lsun/nio/ch/CompletedFuture;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new sun.nio.ch.CompletedFuture
dup
aload 0
aconst_null
invokespecial sun.nio.ch.CompletedFuture.<init>:(Ljava/lang/Object;Ljava/lang/Throwable;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 result TV;
Signature: <V:Ljava/lang/Object;>(TV;)Lsun/nio/ch/CompletedFuture<TV;>;
MethodParameters:
Name Flags
result
static <V> sun.nio.ch.CompletedFuture<V> withFailure(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Lsun/nio/ch/CompletedFuture;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
instanceof java.io.IOException
ifne 2
aload 0
instanceof java.lang.SecurityException
ifne 2
1: new java.io.IOException
dup
aload 0
invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
astore 0
2: StackMap locals:
StackMap stack:
new sun.nio.ch.CompletedFuture
dup
aconst_null
aload 0
invokespecial sun.nio.ch.CompletedFuture.<init>:(Ljava/lang/Object;Ljava/lang/Throwable;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 exc Ljava/lang/Throwable;
Signature: <V:Ljava/lang/Object;>(Ljava/lang/Throwable;)Lsun/nio/ch/CompletedFuture<TV;>;
MethodParameters:
Name Flags
exc
static <V> sun.nio.ch.CompletedFuture<V> withResult(V, java.lang.Throwable);
descriptor: (Ljava/lang/Object;Ljava/lang/Throwable;)Lsun/nio/ch/CompletedFuture;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: aload 0
invokestatic sun.nio.ch.CompletedFuture.withResult:(Ljava/lang/Object;)Lsun/nio/ch/CompletedFuture;
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokestatic sun.nio.ch.CompletedFuture.withFailure:(Ljava/lang/Throwable;)Lsun/nio/ch/CompletedFuture;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 result TV;
0 3 1 exc Ljava/lang/Throwable;
Signature: <V:Ljava/lang/Object;>(TV;Ljava/lang/Throwable;)Lsun/nio/ch/CompletedFuture<TV;>;
MethodParameters:
Name Flags
result
exc
public V get();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.CompletedFuture.exc:Ljava/lang/Throwable;
ifnull 2
1: new java.util.concurrent.ExecutionException
dup
aload 0
getfield sun.nio.ch.CompletedFuture.exc:Ljava/lang/Throwable;
invokespecial java.util.concurrent.ExecutionException.<init>:(Ljava/lang/Throwable;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.CompletedFuture.result:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/CompletedFuture<TV;>;
Exceptions:
throws java.util.concurrent.ExecutionException
Signature: ()TV;
public V get(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 3
ifnonnull 2
1: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.CompletedFuture.exc:Ljava/lang/Throwable;
ifnull 4
3: new java.util.concurrent.ExecutionException
dup
aload 0
getfield sun.nio.ch.CompletedFuture.exc:Ljava/lang/Throwable;
invokespecial java.util.concurrent.ExecutionException.<init>:(Ljava/lang/Throwable;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.CompletedFuture.result:Ljava/lang/Object;
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/CompletedFuture<TV;>;
0 5 1 timeout J
0 5 3 unit Ljava/util/concurrent/TimeUnit;
Exceptions:
throws java.util.concurrent.ExecutionException
Signature: (JLjava/util/concurrent/TimeUnit;)TV;
MethodParameters:
Name Flags
timeout
unit
public boolean isCancelled();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/CompletedFuture<TV;>;
public boolean isDone();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/CompletedFuture<TV;>;
public boolean cancel(boolean);
descriptor: (Z)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/CompletedFuture<TV;>;
0 1 1 mayInterruptIfRunning Z
MethodParameters:
Name Flags
mayInterruptIfRunning
}
Signature: <V:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/concurrent/Future<TV;>;
SourceFile: "CompletedFuture.java"