public class io.vertx.junit5.ScopedObject<T> implements java.util.function.Supplier<T>, org.junit.jupiter.api.extension.ExtensionContext$Store$CloseableResource
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.junit5.ScopedObject
super_class: java.lang.Object
{
private T object;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Signature: TT;
private final io.vertx.junit5.ParameterClosingConsumer<T> cleaner;
descriptor: Lio/vertx/junit5/ParameterClosingConsumer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lio/vertx/junit5/ParameterClosingConsumer<TT;>;
void <init>(T, io.vertx.junit5.ParameterClosingConsumer<T>);
descriptor: (Ljava/lang/Object;Lio/vertx/junit5/ParameterClosingConsumer;)V
flags: (0x0000)
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 1
ldc "The object cannot be null"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
2: aload 0
aload 1
putfield io.vertx.junit5.ScopedObject.object:Ljava/lang/Object;
3: aload 0
aload 2
putfield io.vertx.junit5.ScopedObject.cleaner:Lio/vertx/junit5/ParameterClosingConsumer;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/junit5/ScopedObject<TT;>;
0 5 1 object TT;
0 5 2 cleaner Lio/vertx/junit5/ParameterClosingConsumer<TT;>;
Signature: (TT;Lio/vertx/junit5/ParameterClosingConsumer<TT;>;)V
MethodParameters:
Name Flags
object
cleaner
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.junit5.ScopedObject.cleaner:Lio/vertx/junit5/ParameterClosingConsumer;
aload 0
getfield io.vertx.junit5.ScopedObject.object:Ljava/lang/Object;
invokeinterface io.vertx.junit5.ParameterClosingConsumer.accept:(Ljava/lang/Object;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/junit5/ScopedObject<TT;>;
Exceptions:
throws java.lang.Throwable
public T get();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.junit5.ScopedObject.object:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/junit5/ScopedObject<TT;>;
Signature: ()TT;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/function/Supplier<TT;>;Lorg/junit/jupiter/api/extension/ExtensionContext$Store$CloseableResource;
SourceFile: "ScopedObject.java"
InnerClasses:
public abstract Store = org.junit.jupiter.api.extension.ExtensionContext$Store of org.junit.jupiter.api.extension.ExtensionContext
public abstract CloseableResource = org.junit.jupiter.api.extension.ExtensionContext$Store$CloseableResource of org.junit.jupiter.api.extension.ExtensionContext$Store