class com.google.common.eventbus.Subscriber
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.google.common.eventbus.Subscriber
super_class: java.lang.Object
{
private com.google.common.eventbus.EventBus bus;
descriptor: Lcom/google/common/eventbus/EventBus;
flags: (0x0002) ACC_PRIVATE
RuntimeInvisibleAnnotations:
com.google.j2objc.annotations.Weak()
final java.lang.Object target;
descriptor: Ljava/lang/Object;
flags: (0x0010) ACC_FINAL
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
private final java.lang.reflect.Method method;
descriptor: Ljava/lang/reflect/Method;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.Executor executor;
descriptor: Ljava/util/concurrent/Executor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static com.google.common.eventbus.Subscriber create(com.google.common.eventbus.EventBus, java.lang.Object, java.lang.reflect.Method);
descriptor: (Lcom/google/common/eventbus/EventBus;Ljava/lang/Object;Ljava/lang/reflect/Method;)Lcom/google/common/eventbus/Subscriber;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic com.google.common.eventbus.Subscriber.isDeclaredThreadSafe:(Ljava/lang/reflect/Method;)Z
ifeq 2
1: new com.google.common.eventbus.Subscriber
dup
aload 0
aload 1
aload 2
invokespecial com.google.common.eventbus.Subscriber.<init>:(Lcom/google/common/eventbus/EventBus;Ljava/lang/Object;Ljava/lang/reflect/Method;)V
goto 3
2: StackMap locals:
StackMap stack:
new com.google.common.eventbus.Subscriber$SynchronizedSubscriber
dup
aload 0
aload 1
aload 2
invokespecial com.google.common.eventbus.Subscriber$SynchronizedSubscriber.<init>:(Lcom/google/common/eventbus/EventBus;Ljava/lang/Object;Ljava/lang/reflect/Method;)V
3: StackMap locals:
StackMap stack: com.google.common.eventbus.Subscriber
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 bus Lcom/google/common/eventbus/EventBus;
0 4 1 listener Ljava/lang/Object;
0 4 2 method Ljava/lang/reflect/Method;
MethodParameters:
Name Flags
bus
listener
method
private void <init>(com.google.common.eventbus.EventBus, java.lang.Object, java.lang.reflect.Method);
descriptor: (Lcom/google/common/eventbus/EventBus;Ljava/lang/Object;Ljava/lang/reflect/Method;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, 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
aload 1
putfield com.google.common.eventbus.Subscriber.bus:Lcom/google/common/eventbus/EventBus;
2: aload 0
aload 2
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
putfield com.google.common.eventbus.Subscriber.target:Ljava/lang/Object;
3: aload 0
aload 3
putfield com.google.common.eventbus.Subscriber.method:Ljava/lang/reflect/Method;
4: aload 3
iconst_1
invokevirtual java.lang.reflect.Method.setAccessible:(Z)V
5: aload 0
aload 1
invokevirtual com.google.common.eventbus.EventBus.executor:()Ljava/util/concurrent/Executor;
putfield com.google.common.eventbus.Subscriber.executor:Ljava/util/concurrent/Executor;
6: return
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/Subscriber;
0 7 1 bus Lcom/google/common/eventbus/EventBus;
0 7 2 target Ljava/lang/Object;
0 7 3 method Ljava/lang/reflect/Method;
MethodParameters:
Name Flags
bus
target
method
final void dispatchEvent(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.common.eventbus.Subscriber.executor:Ljava/util/concurrent/Executor;
1: new com.google.common.eventbus.Subscriber$1
dup
aload 0
aload 1
invokespecial com.google.common.eventbus.Subscriber$1.<init>:(Lcom/google/common/eventbus/Subscriber;Ljava/lang/Object;)V
2: invokeinterface java.util.concurrent.Executor.execute:(Ljava/lang/Runnable;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/eventbus/Subscriber;
0 4 1 event Ljava/lang/Object;
MethodParameters:
Name Flags
event final
void invokeSubscriberMethod(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0000)
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.common.eventbus.Subscriber.method:Ljava/lang/reflect/Method;
aload 0
getfield com.google.common.eventbus.Subscriber.target:Ljava/lang/Object;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
1: goto 10
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
2: astore 2
start local 2 3: new java.lang.Error
dup
new java.lang.StringBuilder
dup
ldc "Method rejected target/argument: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial java.lang.Error.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 4: StackMap locals:
StackMap stack: java.lang.IllegalAccessException
astore 2
start local 2 5: new java.lang.Error
dup
new java.lang.StringBuilder
dup
ldc "Method became inaccessible: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial java.lang.Error.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 6: StackMap locals:
StackMap stack: java.lang.reflect.InvocationTargetException
astore 2
start local 2 7: aload 2
invokevirtual java.lang.reflect.InvocationTargetException.getCause:()Ljava/lang/Throwable;
instanceof java.lang.Error
ifeq 9
8: aload 2
invokevirtual java.lang.reflect.InvocationTargetException.getCause:()Ljava/lang/Throwable;
checkcast java.lang.Error
athrow
9: StackMap locals: java.lang.reflect.InvocationTargetException
StackMap stack:
aload 2
athrow
end local 2 10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/google/common/eventbus/Subscriber;
0 11 1 event Ljava/lang/Object;
3 4 2 e Ljava/lang/IllegalArgumentException;
5 6 2 e Ljava/lang/IllegalAccessException;
7 10 2 e Ljava/lang/reflect/InvocationTargetException;
Exception table:
from to target type
0 1 2 Class java.lang.IllegalArgumentException
0 1 4 Class java.lang.IllegalAccessException
0 1 6 Class java.lang.reflect.InvocationTargetException
Exceptions:
throws java.lang.reflect.InvocationTargetException
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
MethodParameters:
Name Flags
event
private com.google.common.eventbus.SubscriberExceptionContext context(java.lang.Object);
descriptor: (Ljava/lang/Object;)Lcom/google/common/eventbus/SubscriberExceptionContext;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: new com.google.common.eventbus.SubscriberExceptionContext
dup
aload 0
getfield com.google.common.eventbus.Subscriber.bus:Lcom/google/common/eventbus/EventBus;
aload 1
aload 0
getfield com.google.common.eventbus.Subscriber.target:Ljava/lang/Object;
aload 0
getfield com.google.common.eventbus.Subscriber.method:Ljava/lang/reflect/Method;
invokespecial com.google.common.eventbus.SubscriberExceptionContext.<init>:(Lcom/google/common/eventbus/EventBus;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/reflect/Method;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/eventbus/Subscriber;
0 1 1 event Ljava/lang/Object;
MethodParameters:
Name Flags
event
public final int hashCode();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: bipush 31
aload 0
getfield com.google.common.eventbus.Subscriber.method:Ljava/lang/reflect/Method;
invokevirtual java.lang.reflect.Method.hashCode:()I
iadd
bipush 31
imul
aload 0
getfield com.google.common.eventbus.Subscriber.target:Ljava/lang/Object;
invokestatic java.lang.System.identityHashCode:(Ljava/lang/Object;)I
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/eventbus/Subscriber;
public final boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof com.google.common.eventbus.Subscriber
ifeq 4
1: aload 1
checkcast com.google.common.eventbus.Subscriber
astore 2
start local 2 2: aload 0
getfield com.google.common.eventbus.Subscriber.target:Ljava/lang/Object;
aload 2
getfield com.google.common.eventbus.Subscriber.target:Ljava/lang/Object;
if_acmpne 3
aload 0
getfield com.google.common.eventbus.Subscriber.method:Ljava/lang/reflect/Method;
aload 2
getfield com.google.common.eventbus.Subscriber.method:Ljava/lang/reflect/Method;
invokevirtual java.lang.reflect.Method.equals:(Ljava/lang/Object;)Z
ifeq 3
iconst_1
ireturn
StackMap locals: com.google.common.eventbus.Subscriber
StackMap stack:
3: iconst_0
ireturn
end local 2 4: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/eventbus/Subscriber;
0 5 1 obj Ljava/lang/Object;
2 4 2 that Lcom/google/common/eventbus/Subscriber;
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
obj
private static boolean isDeclaredThreadSafe(java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc Lcom/google/common/eventbus/AllowConcurrentEvents;
invokevirtual java.lang.reflect.Method.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 method Ljava/lang/reflect/Method;
MethodParameters:
Name Flags
method
}
SourceFile: "Subscriber.java"
NestMembers:
com.google.common.eventbus.Subscriber$1 com.google.common.eventbus.Subscriber$SynchronizedSubscriber
InnerClasses:
com.google.common.eventbus.Subscriber$1
final SynchronizedSubscriber = com.google.common.eventbus.Subscriber$SynchronizedSubscriber of com.google.common.eventbus.Subscriber