public class io.vertx.ext.unit.report.impl.DefaultReporterFactory implements io.vertx.ext.unit.report.ReporterFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.unit.report.impl.DefaultReporterFactory
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/unit/report/impl/DefaultReporterFactory;
public io.vertx.ext.unit.report.Reporter reporter(io.vertx.core.Vertx, io.vertx.ext.unit.report.ReportOptions);
descriptor: (Lio/vertx/core/Vertx;Lio/vertx/ext/unit/report/ReportOptions;)Lio/vertx/ext/unit/report/Reporter;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=11, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual io.vertx.ext.unit.report.ReportOptions.getTo:()Ljava/lang/String;
astore 3
start local 3 1: aload 3
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
istore 6
start local 6 2: iload 6
iconst_m1
if_icmpeq 6
3: aload 3
iconst_0
iload 6
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
start local 4 4: aload 3
iload 6
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 5
start local 5 5: goto 8
end local 5 end local 4 6: StackMap locals: io.vertx.ext.unit.report.impl.DefaultReporterFactory io.vertx.core.Vertx io.vertx.ext.unit.report.ReportOptions java.lang.String top top int
StackMap stack:
aload 3
astore 4
start local 4 7: aconst_null
astore 5
start local 5 8: StackMap locals: io.vertx.ext.unit.report.impl.DefaultReporterFactory io.vertx.core.Vertx io.vertx.ext.unit.report.ReportOptions java.lang.String java.lang.String java.lang.String int
StackMap stack:
aload 4
ldc "bus"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 14
9: aload 5
ifnonnull 11
10: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid bus report configuration: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " must follow bus: + address"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
aload 1
ifnonnull 13
12: new java.lang.IllegalArgumentException
dup
ldc "No vertx provided for event bus reporting"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
new io.vertx.ext.unit.report.impl.EventBusReporter
dup
aload 1
aload 5
invokespecial io.vertx.ext.unit.report.impl.EventBusReporter.<init>:(Lio/vertx/core/Vertx;Ljava/lang/String;)V
areturn
14: StackMap locals:
StackMap stack:
aload 4
dup
astore 8
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 3
107332: 15
3143036: 16
951510359: 17
default: 31
}
StackMap locals: io.vertx.ext.unit.report.impl.DefaultReporterFactory io.vertx.core.Vertx io.vertx.ext.unit.report.ReportOptions java.lang.String java.lang.String java.lang.String int top java.lang.String
StackMap stack:
15: aload 8
ldc "log"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 20
goto 31
StackMap locals:
StackMap stack:
16: aload 8
ldc "file"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 25
goto 31
StackMap locals:
StackMap stack:
17: aload 8
ldc "console"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 18
goto 31
18: StackMap locals:
StackMap stack:
aload 0
invokedynamic apply(Lio/vertx/ext/unit/report/impl/DefaultReporterFactory;)Ljava/util/function/BiFunction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
io/vertx/ext/unit/report/impl/DefaultReporterFactory.lambda$0(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/ext/unit/report/impl/ReportStream; (7)
(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/ext/unit/report/impl/ReportStream;
astore 7
start local 7 19: goto 32
end local 7 20: StackMap locals:
StackMap stack:
aload 5
ifnonnull 22
21: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid log report configuration: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " must follow log: + address"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
22: StackMap locals:
StackMap stack:
aload 5
invokestatic io.vertx.core.impl.logging.LoggerFactory.getLogger:(Ljava/lang/String;)Lio/vertx/core/impl/logging/Logger;
astore 9
start local 9 23: aload 0
aload 9
invokedynamic apply(Lio/vertx/ext/unit/report/impl/DefaultReporterFactory;Lio/vertx/core/impl/logging/Logger;)Ljava/util/function/BiFunction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
io/vertx/ext/unit/report/impl/DefaultReporterFactory.lambda$1(Lio/vertx/core/impl/logging/Logger;Ljava/lang/String;Ljava/lang/String;)Lio/vertx/ext/unit/report/impl/ReportStream; (7)
(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/ext/unit/report/impl/ReportStream;
astore 7
start local 7 24: goto 32
end local 9 end local 7 25: StackMap locals:
StackMap stack:
aload 5
ifnonnull 27
26: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid file report configuration: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " must follow file: + address"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
27: StackMap locals:
StackMap stack:
aload 1
ifnonnull 29
28: new java.lang.IllegalArgumentException
dup
ldc "No vertx provided for filesystem reporting"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
29: StackMap locals:
StackMap stack:
aload 0
aload 5
aload 1
invokedynamic apply(Lio/vertx/ext/unit/report/impl/DefaultReporterFactory;Ljava/lang/String;Lio/vertx/core/Vertx;)Ljava/util/function/BiFunction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
io/vertx/ext/unit/report/impl/DefaultReporterFactory.lambda$2(Ljava/lang/String;Lio/vertx/core/Vertx;Ljava/lang/String;Ljava/lang/String;)Lio/vertx/ext/unit/report/impl/ReportStream; (7)
(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/ext/unit/report/impl/ReportStream;
astore 7
start local 7 30: goto 32
end local 7 31: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Illegal reporter name <"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ">"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
start local 7 32: StackMap locals: io.vertx.ext.unit.report.impl.DefaultReporterFactory io.vertx.core.Vertx io.vertx.ext.unit.report.ReportOptions java.lang.String java.lang.String java.lang.String int java.util.function.BiFunction
StackMap stack:
aload 2
invokevirtual io.vertx.ext.unit.report.ReportOptions.getFormat:()Ljava/lang/String;
astore 9
start local 9 33: aload 9
dup
astore 10
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 2
-902286926: 34
101487854: 35
default: 38
}
StackMap locals: io.vertx.ext.unit.report.impl.DefaultReporterFactory io.vertx.core.Vertx io.vertx.ext.unit.report.ReportOptions java.lang.String java.lang.String java.lang.String int java.util.function.BiFunction top java.lang.String java.lang.String
StackMap stack:
34: aload 10
ldc "simple"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 36
goto 38
StackMap locals:
StackMap stack:
35: aload 10
ldc "junit"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 37
goto 38
36: StackMap locals:
StackMap stack:
new io.vertx.ext.unit.report.impl.SimpleFormatter
dup
aload 7
invokedynamic apply(Ljava/util/function/BiFunction;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
io/vertx/ext/unit/report/impl/DefaultReporterFactory.lambda$3(Ljava/util/function/BiFunction;Ljava/lang/String;)Lio/vertx/ext/unit/report/impl/ReportStream; (6)
(Ljava/lang/String;)Lio/vertx/ext/unit/report/impl/ReportStream;
invokespecial io.vertx.ext.unit.report.impl.SimpleFormatter.<init>:(Ljava/util/function/Function;)V
areturn
37: StackMap locals:
StackMap stack:
new io.vertx.ext.unit.report.impl.JunitXmlFormatter
dup
aload 7
invokedynamic apply(Ljava/util/function/BiFunction;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
io/vertx/ext/unit/report/impl/DefaultReporterFactory.lambda$4(Ljava/util/function/BiFunction;Ljava/lang/String;)Lio/vertx/ext/unit/report/impl/ReportStream; (6)
(Ljava/lang/String;)Lio/vertx/ext/unit/report/impl/ReportStream;
invokespecial io.vertx.ext.unit.report.impl.JunitXmlFormatter.<init>:(Ljava/util/function/Function;)V
areturn
38: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid format <"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 9
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ">"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 9 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 39 0 this Lio/vertx/ext/unit/report/impl/DefaultReporterFactory;
0 39 1 vertx Lio/vertx/core/Vertx;
0 39 2 options Lio/vertx/ext/unit/report/ReportOptions;
1 39 3 to Ljava/lang/String;
4 6 4 prefix Ljava/lang/String;
7 39 4 prefix Ljava/lang/String;
5 6 5 location Ljava/lang/String;
8 39 5 location Ljava/lang/String;
2 39 6 pos I
19 20 7 streamFactory Ljava/util/function/BiFunction<Ljava/lang/String;Ljava/lang/String;Lio/vertx/ext/unit/report/impl/ReportStream;>;
24 25 7 streamFactory Ljava/util/function/BiFunction<Ljava/lang/String;Ljava/lang/String;Lio/vertx/ext/unit/report/impl/ReportStream;>;
30 31 7 streamFactory Ljava/util/function/BiFunction<Ljava/lang/String;Ljava/lang/String;Lio/vertx/ext/unit/report/impl/ReportStream;>;
32 39 7 streamFactory Ljava/util/function/BiFunction<Ljava/lang/String;Ljava/lang/String;Lio/vertx/ext/unit/report/impl/ReportStream;>;
23 25 9 log Lio/vertx/core/impl/logging/Logger;
33 39 9 format Ljava/lang/String;
MethodParameters:
Name Flags
vertx
options
private io.vertx.ext.unit.report.impl.ReportStream lambda$0(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lio/vertx/ext/unit/report/impl/ReportStream;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new io.vertx.ext.unit.report.impl.DefaultReporterFactory$1
dup
aload 0
invokespecial io.vertx.ext.unit.report.impl.DefaultReporterFactory$1.<init>:(Lio/vertx/ext/unit/report/impl/DefaultReporterFactory;)V
1: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/unit/report/impl/DefaultReporterFactory;
0 2 1 name Ljava/lang/String;
0 2 2 ext Ljava/lang/String;
private io.vertx.ext.unit.report.impl.ReportStream lambda$1(io.vertx.core.impl.logging.Logger, java.lang.String, java.lang.String);
descriptor: (Lio/vertx/core/impl/logging/Logger;Ljava/lang/String;Ljava/lang/String;)Lio/vertx/ext/unit/report/impl/ReportStream;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 2 start local 3 0: new io.vertx.ext.unit.report.impl.DefaultReporterFactory$2
dup
aload 0
aload 1
invokespecial io.vertx.ext.unit.report.impl.DefaultReporterFactory$2.<init>:(Lio/vertx/ext/unit/report/impl/DefaultReporterFactory;Lio/vertx/core/impl/logging/Logger;)V
1: areturn
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/unit/report/impl/DefaultReporterFactory;
0 2 2 name Ljava/lang/String;
0 2 3 ext Ljava/lang/String;
private io.vertx.ext.unit.report.impl.ReportStream lambda$2(java.lang.String, io.vertx.core.Vertx, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Lio/vertx/core/Vertx;Ljava/lang/String;Ljava/lang/String;)Lio/vertx/ext/unit/report/impl/ReportStream;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=8, args_size=5
start local 0 start local 3 start local 4 0: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
start local 5 1: aload 2
invokeinterface io.vertx.core.Vertx.fileSystem:()Lio/vertx/core/file/FileSystem;
aload 5
new io.vertx.core.file.OpenOptions
dup
invokespecial io.vertx.core.file.OpenOptions.<init>:()V
invokeinterface io.vertx.core.file.FileSystem.openBlocking:(Ljava/lang/String;Lio/vertx/core/file/OpenOptions;)Lio/vertx/core/file/AsyncFile;
astore 6
start local 6 2: new java.io.PrintWriter
dup
new io.vertx.ext.unit.report.impl.DefaultReporterFactory$3
dup
aload 0
aload 6
invokespecial io.vertx.ext.unit.report.impl.DefaultReporterFactory$3.<init>:(Lio/vertx/ext/unit/report/impl/DefaultReporterFactory;Lio/vertx/core/file/AsyncFile;)V
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
astore 7
start local 7 3: new io.vertx.ext.unit.report.impl.DefaultReporterFactory$4
dup
aload 0
aload 6
aload 7
invokespecial io.vertx.ext.unit.report.impl.DefaultReporterFactory$4.<init>:(Lio/vertx/ext/unit/report/impl/DefaultReporterFactory;Lio/vertx/core/file/AsyncFile;Ljava/io/PrintWriter;)V
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/ext/unit/report/impl/DefaultReporterFactory;
0 4 3 name Ljava/lang/String;
0 4 4 ext Ljava/lang/String;
1 4 5 fileName Ljava/lang/String;
2 4 6 file Lio/vertx/core/file/AsyncFile;
3 4 7 writer Ljava/io/PrintWriter;
private static io.vertx.ext.unit.report.impl.ReportStream lambda$3(java.util.function.BiFunction, java.lang.String);
descriptor: (Ljava/util/function/BiFunction;Ljava/lang/String;)Lio/vertx/ext/unit/report/impl/ReportStream;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 1 0: aload 0
aload 1
ldc "txt"
invokeinterface java.util.function.BiFunction.apply:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.vertx.ext.unit.report.impl.ReportStream
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 name Ljava/lang/String;
private static io.vertx.ext.unit.report.impl.ReportStream lambda$4(java.util.function.BiFunction, java.lang.String);
descriptor: (Ljava/util/function/BiFunction;Ljava/lang/String;)Lio/vertx/ext/unit/report/impl/ReportStream;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 1 0: aload 0
aload 1
ldc "xml"
invokeinterface java.util.function.BiFunction.apply:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.vertx.ext.unit.report.impl.ReportStream
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 name Ljava/lang/String;
}
SourceFile: "DefaultReporterFactory.java"
NestMembers:
io.vertx.ext.unit.report.impl.DefaultReporterFactory$1 io.vertx.ext.unit.report.impl.DefaultReporterFactory$2 io.vertx.ext.unit.report.impl.DefaultReporterFactory$3 io.vertx.ext.unit.report.impl.DefaultReporterFactory$4
InnerClasses:
io.vertx.ext.unit.report.impl.DefaultReporterFactory$1
io.vertx.ext.unit.report.impl.DefaultReporterFactory$2
io.vertx.ext.unit.report.impl.DefaultReporterFactory$3
io.vertx.ext.unit.report.impl.DefaultReporterFactory$4
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles