final class io.vertx.junit5.CountingCheckpoint implements io.vertx.junit5.Checkpoint
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.vertx.junit5.CountingCheckpoint
super_class: java.lang.Object
{
private final java.util.function.Consumer<io.vertx.junit5.Checkpoint> satisfactionTrigger;
descriptor: Ljava/util/function/Consumer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/Consumer<Lio/vertx/junit5/Checkpoint;>;
private final java.util.function.Consumer<java.lang.Throwable> overuseTrigger;
descriptor: Ljava/util/function/Consumer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/Consumer<Ljava/lang/Throwable;>;
private final int requiredNumberOfPasses;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.StackTraceElement creationCallSite;
descriptor: Ljava/lang/StackTraceElement;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int numberOfPasses;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean satisfied;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static io.vertx.junit5.CountingCheckpoint laxCountingCheckpoint(java.util.function.Consumer<io.vertx.junit5.Checkpoint>, int);
descriptor: (Ljava/util/function/Consumer;I)Lio/vertx/junit5/CountingCheckpoint;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: new io.vertx.junit5.CountingCheckpoint
dup
aload 0
aconst_null
iload 1
invokespecial io.vertx.junit5.CountingCheckpoint.<init>:(Ljava/util/function/Consumer;Ljava/util/function/Consumer;I)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 satisfactionTrigger Ljava/util/function/Consumer<Lio/vertx/junit5/Checkpoint;>;
0 1 1 requiredNumberOfPasses I
Signature: (Ljava/util/function/Consumer<Lio/vertx/junit5/Checkpoint;>;I)Lio/vertx/junit5/CountingCheckpoint;
MethodParameters:
Name Flags
satisfactionTrigger
requiredNumberOfPasses
static io.vertx.junit5.CountingCheckpoint strictCountingCheckpoint(java.util.function.Consumer<io.vertx.junit5.Checkpoint>, java.util.function.Consumer<java.lang.Throwable>, int);
descriptor: (Ljava/util/function/Consumer;Ljava/util/function/Consumer;I)Lio/vertx/junit5/CountingCheckpoint;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: new io.vertx.junit5.CountingCheckpoint
dup
aload 0
aload 1
iload 2
invokespecial io.vertx.junit5.CountingCheckpoint.<init>:(Ljava/util/function/Consumer;Ljava/util/function/Consumer;I)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 satisfactionTrigger Ljava/util/function/Consumer<Lio/vertx/junit5/Checkpoint;>;
0 2 1 overuseTrigger Ljava/util/function/Consumer<Ljava/lang/Throwable;>;
0 2 2 requiredNumberOfPasses I
Signature: (Ljava/util/function/Consumer<Lio/vertx/junit5/Checkpoint;>;Ljava/util/function/Consumer<Ljava/lang/Throwable;>;I)Lio/vertx/junit5/CountingCheckpoint;
MethodParameters:
Name Flags
satisfactionTrigger
overuseTrigger
requiredNumberOfPasses
private void <init>(java.util.function.Consumer<io.vertx.junit5.Checkpoint>, java.util.function.Consumer<java.lang.Throwable>, );
descriptor: (Ljava/util/function/Consumer;Ljava/util/function/Consumer;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield io.vertx.junit5.CountingCheckpoint.numberOfPasses:I
2: aload 0
iconst_0
putfield io.vertx.junit5.CountingCheckpoint.satisfied:Z
3: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
4: iload 3
ifgt 6
5: new java.lang.IllegalArgumentException
dup
ldc "A checkpoint needs at least 1 pass"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: io.vertx.junit5.CountingCheckpoint java.util.function.Consumer java.util.function.Consumer int
StackMap stack:
aload 0
aload 0
invokevirtual io.vertx.junit5.CountingCheckpoint.findCallSite:()Ljava/lang/StackTraceElement;
putfield io.vertx.junit5.CountingCheckpoint.creationCallSite:Ljava/lang/StackTraceElement;
7: aload 0
aload 1
putfield io.vertx.junit5.CountingCheckpoint.satisfactionTrigger:Ljava/util/function/Consumer;
8: aload 0
aload 2
putfield io.vertx.junit5.CountingCheckpoint.overuseTrigger:Ljava/util/function/Consumer;
9: aload 0
iload 3
putfield io.vertx.junit5.CountingCheckpoint.requiredNumberOfPasses:I
10: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/vertx/junit5/CountingCheckpoint;
0 11 1 satisfactionTrigger Ljava/util/function/Consumer<Lio/vertx/junit5/Checkpoint;>;
0 11 2 overuseTrigger Ljava/util/function/Consumer<Ljava/lang/Throwable;>;
0 11 3 requiredNumberOfPasses I
Signature: (Ljava/util/function/Consumer<Lio/vertx/junit5/Checkpoint;>;Ljava/util/function/Consumer<Ljava/lang/Throwable;>;I)V
MethodParameters:
Name Flags
satisfactionTrigger
overuseTrigger
requiredNumberOfPasses
private java.lang.StackTraceElement findCallSite();
descriptor: ()Ljava/lang/StackTraceElement;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=1
start local 0 0: new java.lang.Exception
dup
invokespecial java.lang.Exception.<init>:()V
invokevirtual java.lang.Exception.getStackTrace:()[Ljava/lang/StackTraceElement;
astore 1
start local 1 1: aload 1
arraylength
iconst_1
isub
istore 2
start local 2 2: goto 6
3: StackMap locals: java.lang.StackTraceElement[] int
StackMap stack:
aload 1
iload 2
aaload
invokevirtual java.lang.StackTraceElement.getClassName:()Ljava/lang/String;
ldc Lio/vertx/junit5/VertxTestContext;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: aload 1
iload 2
iconst_1
iadd
aaload
areturn
5: StackMap locals:
StackMap stack:
iinc 2 -1
StackMap locals:
StackMap stack:
6: iload 2
ifge 3
end local 2 7: aload 1
iconst_1
aaload
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/vertx/junit5/CountingCheckpoint;
1 8 1 stackTrace [Ljava/lang/StackTraceElement;
2 7 2 i I
public void flag();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: aload 0
dup
astore 3
monitorenter
3: aload 0
getfield io.vertx.junit5.CountingCheckpoint.satisfied:Z
ifeq 6
4: iconst_1
istore 2
5: goto 10
6: StackMap locals: int int io.vertx.junit5.CountingCheckpoint
StackMap stack:
aload 0
dup
getfield io.vertx.junit5.CountingCheckpoint.numberOfPasses:I
iconst_1
iadd
putfield io.vertx.junit5.CountingCheckpoint.numberOfPasses:I
7: aload 0
getfield io.vertx.junit5.CountingCheckpoint.numberOfPasses:I
aload 0
getfield io.vertx.junit5.CountingCheckpoint.requiredNumberOfPasses:I
if_icmpne 10
8: iconst_1
istore 1
9: aload 0
iconst_1
putfield io.vertx.junit5.CountingCheckpoint.satisfied:Z
10: StackMap locals:
StackMap stack:
aload 3
monitorexit
11: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
12: aload 3
monitorexit
13: athrow
14: StackMap locals:
StackMap stack:
iload 1
ifeq 17
15: aload 0
getfield io.vertx.junit5.CountingCheckpoint.satisfactionTrigger:Ljava/util/function/Consumer;
aload 0
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
16: goto 19
StackMap locals:
StackMap stack:
17: iload 2
ifeq 19
aload 0
getfield io.vertx.junit5.CountingCheckpoint.overuseTrigger:Ljava/util/function/Consumer;
ifnull 19
18: aload 0
getfield io.vertx.junit5.CountingCheckpoint.overuseTrigger:Ljava/util/function/Consumer;
new java.lang.IllegalStateException
dup
ldc "Strict checkpoint flagged too many times"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
19: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lio/vertx/junit5/CountingCheckpoint;
1 20 1 callSatisfactionTrigger Z
2 20 2 callOveruseTrigger Z
Exception table:
from to target type
3 11 12 any
12 13 12 any
public boolean satisfied();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.junit5.CountingCheckpoint.satisfied:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/junit5/CountingCheckpoint;
public java.lang.StackTraceElement creationCallSite();
descriptor: ()Ljava/lang/StackTraceElement;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.junit5.CountingCheckpoint.creationCallSite:Ljava/lang/StackTraceElement;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/junit5/CountingCheckpoint;
}
SourceFile: "CountingCheckpoint.java"