public class com.google.common.eventbus.EventBus
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.google.common.eventbus.EventBus
super_class: java.lang.Object
{
private static final java.util.logging.Logger logger;
descriptor: Ljava/util/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.lang.String identifier;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.Executor executor;
descriptor: Ljava/util/concurrent/Executor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.google.common.eventbus.SubscriberExceptionHandler exceptionHandler;
descriptor: Lcom/google/common/eventbus/SubscriberExceptionHandler;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.google.common.eventbus.SubscriberRegistry subscribers;
descriptor: Lcom/google/common/eventbus/SubscriberRegistry;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.google.common.eventbus.Dispatcher dispatcher;
descriptor: Lcom/google/common/eventbus/Dispatcher;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lcom/google/common/eventbus/EventBus;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.util.logging.Logger.getLogger:(Ljava/lang/String;)Ljava/util/logging/Logger;
putstatic com.google.common.eventbus.EventBus.logger:Ljava/util/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "default"
invokespecial com.google.common.eventbus.EventBus.<init>:(Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/eventbus/EventBus;
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
1: aload 1
2: invokestatic com.google.common.util.concurrent.MoreExecutors.directExecutor:()Ljava/util/concurrent/Executor;
3: invokestatic com.google.common.eventbus.Dispatcher.perThreadDispatchQueue:()Lcom/google/common/eventbus/Dispatcher;
4: getstatic com.google.common.eventbus.EventBus$LoggingHandler.INSTANCE:Lcom/google/common/eventbus/EventBus$LoggingHandler;
invokespecial com.google.common.eventbus.EventBus.<init>:(Ljava/lang/String;Ljava/util/concurrent/Executor;Lcom/google/common/eventbus/Dispatcher;Lcom/google/common/eventbus/SubscriberExceptionHandler;)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/common/eventbus/EventBus;
0 6 1 identifier Ljava/lang/String;
MethodParameters:
Name Flags
identifier
public void <init>(com.google.common.eventbus.SubscriberExceptionHandler);
descriptor: (Lcom/google/common/eventbus/SubscriberExceptionHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
1: ldc "default"
2: invokestatic com.google.common.util.concurrent.MoreExecutors.directExecutor:()Ljava/util/concurrent/Executor;
3: invokestatic com.google.common.eventbus.Dispatcher.perThreadDispatchQueue:()Lcom/google/common/eventbus/Dispatcher;
4: aload 1
invokespecial com.google.common.eventbus.EventBus.<init>:(Ljava/lang/String;Ljava/util/concurrent/Executor;Lcom/google/common/eventbus/Dispatcher;Lcom/google/common/eventbus/SubscriberExceptionHandler;)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/common/eventbus/EventBus;
0 6 1 exceptionHandler Lcom/google/common/eventbus/SubscriberExceptionHandler;
MethodParameters:
Name Flags
exceptionHandler
void <init>(java.lang.String, java.util.concurrent.Executor, com.google.common.eventbus.Dispatcher, com.google.common.eventbus.SubscriberExceptionHandler);
descriptor: (Ljava/lang/String;Ljava/util/concurrent/Executor;Lcom/google/common/eventbus/Dispatcher;Lcom/google/common/eventbus/SubscriberExceptionHandler;)V
flags: (0x0000)
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new com.google.common.eventbus.SubscriberRegistry
dup
aload 0
invokespecial com.google.common.eventbus.SubscriberRegistry.<init>:(Lcom/google/common/eventbus/EventBus;)V
putfield com.google.common.eventbus.EventBus.subscribers:Lcom/google/common/eventbus/SubscriberRegistry;
2: aload 0
aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
putfield com.google.common.eventbus.EventBus.identifier:Ljava/lang/String;
3: aload 0
aload 2
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.Executor
putfield com.google.common.eventbus.EventBus.executor:Ljava/util/concurrent/Executor;
4: aload 0
aload 3
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.google.common.eventbus.Dispatcher
putfield com.google.common.eventbus.EventBus.dispatcher:Lcom/google/common/eventbus/Dispatcher;
5: aload 0
aload 4
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.google.common.eventbus.SubscriberExceptionHandler
putfield com.google.common.eventbus.EventBus.exceptionHandler:Lcom/google/common/eventbus/SubscriberExceptionHandler;
6: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/google/common/eventbus/EventBus;
0 7 1 identifier Ljava/lang/String;
0 7 2 executor Ljava/util/concurrent/Executor;
0 7 3 dispatcher Lcom/google/common/eventbus/Dispatcher;
0 7 4 exceptionHandler Lcom/google/common/eventbus/SubscriberExceptionHandler;
MethodParameters:
Name Flags
identifier
executor
dispatcher
exceptionHandler
public final java.lang.String identifier();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.eventbus.EventBus.identifier:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/eventbus/EventBus;
final java.util.concurrent.Executor executor();
descriptor: ()Ljava/util/concurrent/Executor;
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.eventbus.EventBus.executor:Ljava/util/concurrent/Executor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/eventbus/EventBus;
void handleSubscriberException(java.lang.Throwable, com.google.common.eventbus.SubscriberExceptionContext);
descriptor: (Ljava/lang/Throwable;Lcom/google/common/eventbus/SubscriberExceptionContext;)V
flags: (0x0000)
Code:
stack=8, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 2
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
getfield com.google.common.eventbus.EventBus.exceptionHandler:Lcom/google/common/eventbus/SubscriberExceptionHandler;
aload 1
aload 2
invokeinterface com.google.common.eventbus.SubscriberExceptionHandler.handleException:(Ljava/lang/Throwable;Lcom/google/common/eventbus/SubscriberExceptionContext;)V
3: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
4: astore 3
start local 3 5: getstatic com.google.common.eventbus.EventBus.logger:Ljava/util/logging/Logger;
6: getstatic java.util.logging.Level.SEVERE:Ljava/util/logging/Level;
7: getstatic java.util.Locale.ROOT:Ljava/util/Locale;
ldc "Exception %s thrown while handling exception: %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
dup
iconst_1
aload 1
aastore
invokestatic java.lang.String.format:(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
8: aload 3
9: invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
end local 3 10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/google/common/eventbus/EventBus;
0 11 1 e Ljava/lang/Throwable;
0 11 2 context Lcom/google/common/eventbus/SubscriberExceptionContext;
5 10 3 e2 Ljava/lang/Throwable;
Exception table:
from to target type
2 3 4 Class java.lang.Throwable
MethodParameters:
Name Flags
e
context
public void register(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.common.eventbus.EventBus.subscribers:Lcom/google/common/eventbus/SubscriberRegistry;
aload 1
invokevirtual com.google.common.eventbus.SubscriberRegistry.register:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/eventbus/EventBus;
0 2 1 object Ljava/lang/Object;
MethodParameters:
Name Flags
object
public void unregister(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.common.eventbus.EventBus.subscribers:Lcom/google/common/eventbus/SubscriberRegistry;
aload 1
invokevirtual com.google.common.eventbus.SubscriberRegistry.unregister:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/eventbus/EventBus;
0 2 1 object Ljava/lang/Object;
MethodParameters:
Name Flags
object
public void post(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.common.eventbus.EventBus.subscribers:Lcom/google/common/eventbus/SubscriberRegistry;
aload 1
invokevirtual com.google.common.eventbus.SubscriberRegistry.getSubscribers:(Ljava/lang/Object;)Ljava/util/Iterator;
astore 2
start local 2 1: aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 4
2: aload 0
getfield com.google.common.eventbus.EventBus.dispatcher:Lcom/google/common/eventbus/Dispatcher;
aload 1
aload 2
invokevirtual com.google.common.eventbus.Dispatcher.dispatch:(Ljava/lang/Object;Ljava/util/Iterator;)V
3: goto 6
StackMap locals: java.util.Iterator
StackMap stack:
4: aload 1
instanceof com.google.common.eventbus.DeadEvent
ifne 6
5: aload 0
new com.google.common.eventbus.DeadEvent
dup
aload 0
aload 1
invokespecial com.google.common.eventbus.DeadEvent.<init>:(Ljava/lang/Object;Ljava/lang/Object;)V
invokevirtual com.google.common.eventbus.EventBus.post:(Ljava/lang/Object;)V
6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/google/common/eventbus/EventBus;
0 7 1 event Ljava/lang/Object;
1 7 2 eventSubscribers Ljava/util/Iterator<Lcom/google/common/eventbus/Subscriber;>;
MethodParameters:
Name Flags
event
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.google.common.base.MoreObjects.toStringHelper:(Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
aload 0
getfield com.google.common.eventbus.EventBus.identifier:Ljava/lang/String;
invokevirtual com.google.common.base.MoreObjects$ToStringHelper.addValue:(Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
invokevirtual com.google.common.base.MoreObjects$ToStringHelper.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/eventbus/EventBus;
}
SourceFile: "EventBus.java"
NestMembers:
com.google.common.eventbus.EventBus$LoggingHandler
InnerClasses:
public final ToStringHelper = com.google.common.base.MoreObjects$ToStringHelper of com.google.common.base.MoreObjects
final LoggingHandler = com.google.common.eventbus.EventBus$LoggingHandler of com.google.common.eventbus.EventBus
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()