
com.google.common.eventbus.SubscriberRegistry.class Maven / Gradle / Ivy
???? 2?
V ?
A ?
? ? V ?
? ? ? V ?
V ? ? ? ? ? $ ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ?
? ?
?
? ? ?
? ?
?
? ?
?
?
K ? ?
A ?
V ?
K ?
? ?
K ?
? ? ? ? ?
?
V
7 ?
1
? V
?
1
1
?
D ? ? ?
7! V"#$
L%
&'
()
(*+
Q ?
(,-
T ?. MethodIdentifier InnerClasses subscribers $Ljava/util/concurrent/ConcurrentMap; Signature ?Ljava/util/concurrent/ConcurrentMap;Ljava/util/concurrent/CopyOnWriteArraySet;>; bus %Lcom/google/common/eventbus/EventBus; RuntimeInvisibleAnnotations $Lcom/google/j2objc/annotations/Weak; subscriberMethodsCache &Lcom/google/common/cache/LoadingCache; ?Lcom/google/common/cache/LoadingCache;Lcom/google/common/collect/ImmutableList;>; flattenHierarchyCache zLcom/google/common/cache/LoadingCache;Lcom/google/common/collect/ImmutableSet;>;>; ((Lcom/google/common/eventbus/EventBus;)V Code LineNumberTable LocalVariableTable this /Lcom/google/common/eventbus/SubscriberRegistry; register (Ljava/lang/Object;)V newSet *Ljava/util/concurrent/CopyOnWriteArraySet; eventType Ljava/lang/Class; eventMethodsInListener Ljava/util/Collection; eventSubscribers entry Entry Ljava/util/Map$Entry; i$ Ljava/util/Iterator; listener Ljava/lang/Object; listenerMethods $Lcom/google/common/collect/Multimap; LocalVariableTypeTable SLjava/util/concurrent/CopyOnWriteArraySet; Ljava/lang/Class<*>; ?Ljava/util/Collection; jLjava/util/Map$Entry;Ljava/util/Collection;>; aLcom/google/common/collect/Multimap;Lcom/google/common/eventbus/Subscriber;>;
StackMapTable/0. ? ? ? ?
unregister listenerMethodsForType currentSubscribers getSubscribersForTesting "(Ljava/lang/Class;)Ljava/util/Set; N(Ljava/lang/Class<*>;)Ljava/util/Set; 1Lcom/google/common/annotations/VisibleForTesting; getSubscribers ((Ljava/lang/Object;)Ljava/util/Iterator; event
eventTypes (Lcom/google/common/collect/ImmutableSet; subscriberIterators Ljava/util/List; >Lcom/google/common/collect/ImmutableSet;>; OLjava/util/List;>;#1 Q(Ljava/lang/Object;)Ljava/util/Iterator; findAllSubscribers 8(Ljava/lang/Object;)Lcom/google/common/collect/Multimap; parameterTypes [Ljava/lang/Class; method Ljava/lang/reflect/Method; methodsInListener clazz [Ljava/lang/Class<*>; u(Ljava/lang/Object;)Lcom/google/common/collect/Multimap;Lcom/google/common/eventbus/Subscriber;>; getAnnotatedMethods <(Ljava/lang/Class;)Lcom/google/common/collect/ImmutableList; [(Ljava/lang/Class<*>;)Lcom/google/common/collect/ImmutableList; getAnnotatedMethodsNotCached ident @Lcom/google/common/eventbus/SubscriberRegistry$MethodIdentifier; arr$ [Ljava/lang/reflect/Method; len$ I supertype
supertypes Ljava/util/Set; identifiers Ljava/util/Map; &Ljava/util/Set<+Ljava/lang/Class<*>;>; kLjava/util/Map; ?2 ? ? flattenHierarchy ;(Ljava/lang/Class;)Lcom/google/common/collect/ImmutableSet; e ?Lcom/google/common/util/concurrent/UncheckedExecutionException;
concreteClass$ T(Ljava/lang/Class<*>;)Lcom/google/common/collect/ImmutableSet;>;
access$000 x0 ()V
SourceFile SubscriberRegistry.java ? ? g ?345 Z [678 #com/google/common/eventbus/EventBus ^ _ ? ?/9:2;<=>0?@AB java/util/Map$EntryCB java/lang/ClassDB java/util/CollectionEF8 (java/util/concurrent/CopyOnWriteArraySetGHIJHKLML "java/lang/IllegalArgumentException java/lang/StringBuilder 5missing event subscriber for an annotated method. Is NONP registered?QR gSTU
java/util/SetVW ? ?XYZ[\1]^_`abcd ? ? java/lang/reflect/Methodefgchij b ckl8 'com/google/common/collect/ImmutableListmTnoqrs<tuvw $com/google/common/eventbus/Subscribexyz@ kMethod %s has @Subscribe annotation but has %s parameters.Subscriber methods must have exactly 1 parameter. java/lang/Object{|}~ >com/google/common/eventbus/SubscriberRegistry$MethodIdentifier g??^iH???? e c &com/google/common/collect/ImmutableSet =com/google/common/util/concurrent/UncheckedExecutionException?????????? /com/google/common/eventbus/SubscriberRegistry$1?? /com/google/common/eventbus/SubscriberRegistry$2 -com/google/common/eventbus/SubscriberRegistry "com/google/common/collect/Multimap java/util/Iterator java/util/List
java/util/Map com/google/common/collect/Maps newConcurrentMap &()Ljava/util/concurrent/ConcurrentMap; $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; asMap ()Ljava/util/Map; entrySet ()Ljava/util/Set; iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; getKey getValue "java/util/concurrent/ConcurrentMap get putIfAbsent 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; "com/google/common/base/MoreObjects firstNonNull addAll (Ljava/util/Collection;)Z removeAll append -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; (Ljava/lang/String;)V of *()Lcom/google/common/collect/ImmutableSet; getClass ()Ljava/lang/Class; size ()I com/google/common/collect/Lists newArrayListWithCapacity (I)Ljava/util/ArrayList; add (Ljava/lang/Object;)Z #com/google/common/collect/Iterators concat *(Ljava/util/Iterator;)Ljava/util/Iterator; &com/google/common/collect/HashMultimap create *()Lcom/google/common/collect/HashMultimap; getParameterTypes ()[Ljava/lang/Class; %com/google/common/eventbus/Subscriber z(Lcom/google/common/eventbus/EventBus;Ljava/lang/Object;Ljava/lang/reflect/Method;)Lcom/google/common/eventbus/Subscriber; put '(Ljava/lang/Object;Ljava/lang/Object;)Z $com/google/common/cache/LoadingCache getUnchecked #com/google/common/reflect/TypeToken 8(Ljava/lang/Class;)Lcom/google/common/reflect/TypeToken; getTypes TypeSet /()Lcom/google/common/reflect/TypeToken$TypeSet; +com/google/common/reflect/TypeToken$TypeSet rawTypes
newHashMap ()Ljava/util/HashMap; getDeclaredMethods ()[Ljava/lang/reflect/Method; isAnnotationPresent (Ljava/lang/Class;)Z isSynthetic java/lang/Integer valueOf (I)Ljava/lang/Integer;
checkArgument )(ZLjava/lang/String;[Ljava/lang/Object;)V (Ljava/lang/reflect/Method;)V containsKey values ()Ljava/util/Collection; copyOf A(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList; getCause ()Ljava/lang/Throwable; !com/google/common/base/Throwables propagate 3(Ljava/lang/Throwable;)Ljava/lang/RuntimeException; $com/google/common/cache/CacheBuilder
newBuilder (()Lcom/google/common/cache/CacheBuilder; weakKeys build M(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache; 0 V A Z [ \ ] ^ _ ` a b c \ d e c \ f g h i W *? *? ? *+? ? ? ? j I A J K k l m ^ _ n o i ? ?*+? M,? ?
? N-? ? f-?
? :? ? :? ? :*? ? ? :? #? Y? :*? ? ? ? :? W???? j . Q S + T 7 U C W S Y X Z a [ x _ ? ` ? a k \ a p q 7 I r s C = t u S - v q + U w y l z { ? l m ? | } ~ ~ ? > a p ? 7 I r ? C = t ? S - v ? + U w ? ~ ~ ? ? : ? ? ?? ` ? ? ? ? ? ? ? ? ?
? ? ? ? o i ? ?*+? M,? ?
? N-? ? h-?
? :? ? :? ? :*? ? ? :?
? ? #? Y? Y? ? +? ? ? !? "????? j &