public class io.vertx.ext.unit.collect.impl.EventBusCollectorImpl implements io.vertx.ext.unit.collect.EventBusCollector, io.vertx.core.Handler<io.vertx.core.eventbus.Message<io.vertx.core.json.JsonObject>>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.unit.collect.impl.EventBusCollectorImpl
super_class: java.lang.Object
{
private final io.vertx.core.Vertx vertx;
descriptor: Lio/vertx/core/Vertx;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.Handler<io.vertx.ext.unit.report.TestSuiteReport> reporter;
descriptor: Lio/vertx/core/Handler;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lio/vertx/core/Handler<Lio/vertx/ext/unit/report/TestSuiteReport;>;
private io.vertx.core.Handler<io.vertx.ext.unit.report.TestCaseReport> testCaseRunnerHandler;
descriptor: Lio/vertx/core/Handler;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/Handler<Lio/vertx/ext/unit/report/TestCaseReport;>;
private io.vertx.core.Handler<java.lang.Throwable> exceptionHandler;
descriptor: Lio/vertx/core/Handler;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/Handler<Ljava/lang/Throwable;>;
private io.vertx.core.Handler<java.lang.Void> endHandler;
descriptor: Lio/vertx/core/Handler;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/Handler<Ljava/lang/Void;>;
private io.vertx.ext.unit.report.TestSuiteReport runner;
descriptor: Lio/vertx/ext/unit/report/TestSuiteReport;
flags: (0x0002) ACC_PRIVATE
private io.vertx.core.Handler<io.vertx.ext.unit.report.TestResult> testCaseHandler;
descriptor: Lio/vertx/core/Handler;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/Handler<Lio/vertx/ext/unit/report/TestResult;>;
public void <init>(io.vertx.core.Vertx, io.vertx.core.Handler<io.vertx.ext.unit.report.TestSuiteReport>);
descriptor: (Lio/vertx/core/Vertx;Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
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 2
putfield io.vertx.ext.unit.collect.impl.EventBusCollectorImpl.reporter:Lio/vertx/core/Handler;
2: aload 0
aload 1
putfield io.vertx.ext.unit.collect.impl.EventBusCollectorImpl.vertx:Lio/vertx/core/Vertx;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/ext/unit/collect/impl/EventBusCollectorImpl;
0 4 1 vertx Lio/vertx/core/Vertx;
0 4 2 reporter Lio/vertx/core/Handler<Lio/vertx/ext/unit/report/TestSuiteReport;>;
Signature: (Lio/vertx/core/Vertx;Lio/vertx/core/Handler<Lio/vertx/ext/unit/report/TestSuiteReport;>;)V
MethodParameters:
Name Flags
vertx
reporter
public void handle(io.vertx.core.eventbus.Message<io.vertx.core.json.JsonObject>);
descriptor: (Lio/vertx/core/eventbus/Message;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=9, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface io.vertx.core.eventbus.Message.body:()Ljava/lang/Object;
checkcast io.vertx.core.json.JsonObject
astore 2
start local 2 1: aload 2
ldc "type"
ldc ""
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 2: aload 2
ldc "name"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 3: aload 3
dup
astore 5
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 5
-1718690109: 4
-1715521502: 5
-1145918091: 6
162263705: 7
1313565415: 8
default: 34
}
StackMap locals: io.vertx.ext.unit.collect.impl.EventBusCollectorImpl io.vertx.core.eventbus.Message io.vertx.core.json.JsonObject java.lang.String java.lang.String java.lang.String
StackMap stack:
4: aload 5
ldc "testSuiteBegin"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 9
goto 34
StackMap locals:
StackMap stack:
5: aload 5
ldc "testSuiteError"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
goto 34
StackMap locals:
StackMap stack:
6: aload 5
ldc "testSuiteEnd"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 32
goto 34
StackMap locals:
StackMap stack:
7: aload 5
ldc "testCaseEnd"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 23
goto 34
StackMap locals:
StackMap stack:
8: aload 5
ldc "testCaseBegin"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 12
goto 34
9: StackMap locals:
StackMap stack:
aload 0
new io.vertx.ext.unit.collect.impl.EventBusCollectorImpl$1
dup
aload 0
aload 4
invokespecial io.vertx.ext.unit.collect.impl.EventBusCollectorImpl$1.<init>:(Lio/vertx/ext/unit/collect/impl/EventBusCollectorImpl;Ljava/lang/String;)V
putfield io.vertx.ext.unit.collect.impl.EventBusCollectorImpl.runner:Lio/vertx/ext/unit/report/TestSuiteReport;
10: aload 0
getfield io.vertx.ext.unit.collect.impl.EventBusCollectorImpl.reporter:Lio/vertx/core/Handler;
aload 0
getfield io.vertx.ext.unit.collect.impl.EventBusCollectorImpl.runner:Lio/vertx/ext/unit/report/TestSuiteReport;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
11: goto 34
12: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.unit.collect.impl.EventBusCollectorImpl.testCaseRunnerHandler:Lio/vertx/core/Handler;
ifnull 34
13: aload 0
getfield io.vertx.ext.unit.collect.impl.EventBusCollectorImpl.testCaseRunnerHandler:Lio/vertx/core/Handler;
new io.vertx.ext.unit.collect.impl.EventBusCollectorImpl$2
dup
aload 0
aload 4
invokespecial io.vertx.ext.unit.collect.impl.EventBusCollectorImpl$2.<init>:(Lio/vertx/ext/unit/collect/impl/EventBusCollectorImpl;Ljava/lang/String;)V
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
14: goto 34
15: StackMap locals:
StackMap stack:
aload 2
ldc "failure"
invokevirtual io.vertx.core.json.JsonObject.getJsonObject:(Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
astore 6
start local 6 16: aload 6
ifnull 34
aload 0
getfield io.vertx.ext.unit.collect.impl.EventBusCollectorImpl.exceptionHandler:Lio/vertx/core/Handler;
ifnull 34
17: new io.vertx.ext.unit.impl.FailureImpl
dup
aload 6
invokespecial io.vertx.ext.unit.impl.FailureImpl.<init>:(Lio/vertx/core/json/JsonObject;)V
astore 7
start local 7 18: aload 7
invokevirtual io.vertx.ext.unit.impl.FailureImpl.cause:()Ljava/lang/Throwable;
astore 8
start local 8 19: aload 8
ifnonnull 21
20: new java.lang.Exception
dup
aload 6
ldc "message"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.lang.Exception.<init>:(Ljava/lang/String;)V
astore 8
21: StackMap locals: io.vertx.core.json.JsonObject io.vertx.ext.unit.impl.FailureImpl java.lang.Throwable
StackMap stack:
aload 0
getfield io.vertx.ext.unit.collect.impl.EventBusCollectorImpl.exceptionHandler:Lio/vertx/core/Handler;
aload 8
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
end local 8 end local 7 22: goto 34
end local 6 23: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.unit.collect.impl.EventBusCollectorImpl.testCaseHandler:Lio/vertx/core/Handler;
ifnull 34
24: aload 2
ldc "failure"
invokevirtual io.vertx.core.json.JsonObject.getJsonObject:(Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
astore 6
start local 6 25: aconst_null
astore 7
start local 7 26: aload 6
ifnull 28
27: new io.vertx.ext.unit.impl.FailureImpl
dup
aload 6
invokespecial io.vertx.ext.unit.impl.FailureImpl.<init>:(Lio/vertx/core/json/JsonObject;)V
astore 7
28: StackMap locals: io.vertx.core.json.JsonObject io.vertx.ext.unit.report.Failure
StackMap stack:
new io.vertx.ext.unit.impl.TestResultImpl
dup
aload 4
aload 2
ldc "beginTime"
lconst_0
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual io.vertx.core.json.JsonObject.getLong:(Ljava/lang/String;Ljava/lang/Long;)Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
aload 2
ldc "durationTime"
lconst_0
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual io.vertx.core.json.JsonObject.getLong:(Ljava/lang/String;Ljava/lang/Long;)Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
aload 7
invokespecial io.vertx.ext.unit.impl.TestResultImpl.<init>:(Ljava/lang/String;JJLio/vertx/ext/unit/report/Failure;)V
astore 8
start local 8 29: aload 0
getfield io.vertx.ext.unit.collect.impl.EventBusCollectorImpl.testCaseHandler:Lio/vertx/core/Handler;
aload 8
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
30: aload 0
aconst_null
putfield io.vertx.ext.unit.collect.impl.EventBusCollectorImpl.testCaseHandler:Lio/vertx/core/Handler;
end local 8 end local 7 end local 6 31: goto 34
32: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.unit.collect.impl.EventBusCollectorImpl.endHandler:Lio/vertx/core/Handler;
ifnull 34
33: aload 0
getfield io.vertx.ext.unit.collect.impl.EventBusCollectorImpl.endHandler:Lio/vertx/core/Handler;
aconst_null
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
34: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Lio/vertx/ext/unit/collect/impl/EventBusCollectorImpl;
0 35 1 event Lio/vertx/core/eventbus/Message<Lio/vertx/core/json/JsonObject;>;
1 35 2 body Lio/vertx/core/json/JsonObject;
2 35 3 type Ljava/lang/String;
3 35 4 name Ljava/lang/String;
16 23 6 failureJson Lio/vertx/core/json/JsonObject;
18 22 7 failure Lio/vertx/ext/unit/impl/FailureImpl;
19 22 8 cause Ljava/lang/Throwable;
25 31 6 failureJson Lio/vertx/core/json/JsonObject;
26 31 7 failure Lio/vertx/ext/unit/report/Failure;
29 31 8 result Lio/vertx/ext/unit/report/TestResult;
Signature: (Lio/vertx/core/eventbus/Message<Lio/vertx/core/json/JsonObject;>;)V
MethodParameters:
Name Flags
event
public io.vertx.core.eventbus.MessageConsumer<io.vertx.core.json.JsonObject> register(java.lang.String);
descriptor: (Ljava/lang/String;)Lio/vertx/core/eventbus/MessageConsumer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.ext.unit.collect.impl.EventBusCollectorImpl.vertx:Lio/vertx/core/Vertx;
invokeinterface io.vertx.core.Vertx.eventBus:()Lio/vertx/core/eventbus/EventBus;
aload 1
aload 0
invokeinterface io.vertx.core.eventbus.EventBus.consumer:(Ljava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/eventbus/MessageConsumer;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/unit/collect/impl/EventBusCollectorImpl;
0 1 1 address Ljava/lang/String;
Signature: (Ljava/lang/String;)Lio/vertx/core/eventbus/MessageConsumer<Lio/vertx/core/json/JsonObject;>;
MethodParameters:
Name Flags
address
public io.vertx.core.Handler<io.vertx.core.eventbus.Message<io.vertx.core.json.JsonObject>> asMessageHandler();
descriptor: ()Lio/vertx/core/Handler;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/unit/collect/impl/EventBusCollectorImpl;
Signature: ()Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<Lio/vertx/core/json/JsonObject;>;>;
public void handle(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast io.vertx.core.eventbus.Message
invokevirtual io.vertx.ext.unit.collect.impl.EventBusCollectorImpl.handle:(Lio/vertx/core/eventbus/Message;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lio/vertx/ext/unit/collect/EventBusCollector;Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<Lio/vertx/core/json/JsonObject;>;>;
SourceFile: "EventBusCollectorImpl.java"
NestMembers:
io.vertx.ext.unit.collect.impl.EventBusCollectorImpl$1 io.vertx.ext.unit.collect.impl.EventBusCollectorImpl$2
InnerClasses:
io.vertx.ext.unit.collect.impl.EventBusCollectorImpl$1
io.vertx.ext.unit.collect.impl.EventBusCollectorImpl$2