com.google.common.eventbus.AnnotatedHandlerFinder.class Maven / Gradle / Ivy
???? 2
9 ?
: ?
? ?
: ?
9 ?
? ? ? ? ? ?
?
9 ? ? ? 9 ? ? ? ? ?
?
? ?
? ?
? ?
? ?
? ? ? ? ?
? ?
? ? ?
? ?
?
? ?
? ?
?
? ?
' ? ? ? ? ? ? ?
?
9 ? ?
. ? ?
0 ? ?
?
? ?
? ? ?
6 ?
? ? ? ? ? MethodIdentifier InnerClasses handlerMethodsCache &Lcom/google/common/cache/LoadingCache; Signature ?Lcom/google/common/cache/LoadingCache;Lcom/google/common/collect/ImmutableList;>; ()V Code LineNumberTable LocalVariableTable this 3Lcom/google/common/eventbus/AnnotatedHandlerFinder; findAllHandlers 8(Ljava/lang/Object;)Lcom/google/common/collect/Multimap; parameterTypes [Ljava/lang/Class; eventType Ljava/lang/Class; handler )Lcom/google/common/eventbus/EventHandler; method Ljava/lang/reflect/Method; i$ Ljava/util/Iterator; listener Ljava/lang/Object; methodsInListener $Lcom/google/common/collect/Multimap; clazz LocalVariableTypeTable [Ljava/lang/Class<*>; Ljava/lang/Class<*>; cLcom/google/common/collect/Multimap;Lcom/google/common/eventbus/EventHandler;>;
StackMapTable ? ? ? w(Ljava/lang/Object;)Lcom/google/common/collect/Multimap;Lcom/google/common/eventbus/EventHandler;>; getAnnotatedMethods <(Ljava/lang/Class;)Lcom/google/common/collect/ImmutableList; e ?Lcom/google/common/util/concurrent/UncheckedExecutionException; ? [(Ljava/lang/Class<*>;)Lcom/google/common/collect/ImmutableList; getAnnotatedMethodsInternal ident DLcom/google/common/eventbus/AnnotatedHandlerFinder$MethodIdentifier; superClazzMethod arr$ [Ljava/lang/reflect/Method; len$ I
superClazz supers Ljava/util/Set; identifiers Ljava/util/Map; &Ljava/util/Set<+Ljava/lang/Class<*>;>; oLjava/util/Map; ? ? o ? M makeHandler W(Ljava/lang/Object;Ljava/lang/reflect/Method;)Lcom/google/common/eventbus/EventHandler; wrapper ? methodIsDeclaredThreadSafe (Ljava/lang/reflect/Method;)Z
access$000 x0
SourceFile AnnotatedHandlerFinder.java j e C D ? ? ? ? ? d e ? ? ? ? ? ? ? java/lang/reflect/Method ? ? ~ ? ? ? ? @ ? ? ? 'com/google/common/collect/ImmutableList =com/google/common/util/concurrent/UncheckedExecutionException ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? java/lang/Class ? ? $com/google/common/eventbus/Subscribe ? ? "java/lang/IllegalArgumentException java/lang/StringBuilder Method ? ? ? ? ) has @Subscribe annotation, but requires ? ? B arguments. Event handler methods must require a single argument. ? ? C ? Bcom/google/common/eventbus/AnnotatedHandlerFinder$MethodIdentifier C ? ? ? ? ? ? ? 'com/google/common/eventbus/EventHandler C 3com/google/common/eventbus/SynchronizedEventHandler 0com/google/common/eventbus/AllowConcurrentEvents
3com/google/common/eventbus/AnnotatedHandlerFinder$1
1com/google/common/eventbus/AnnotatedHandlerFinder java/lang/Object 1com/google/common/eventbus/HandlerFindingStrategy "com/google/common/collect/Multimap java/util/Iterator
java/util/Set
java/util/Map &com/google/common/collect/HashMultimap create *()Lcom/google/common/collect/HashMultimap; getClass ()Ljava/lang/Class; iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; getParameterTypes ()[Ljava/lang/Class; put '(Ljava/lang/Object;Ljava/lang/Object;)Z $com/google/common/cache/LoadingCache getUnchecked &(Ljava/lang/Object;)Ljava/lang/Object; getCause ()Ljava/lang/Throwable; !com/google/common/base/Throwables propagate 3(Ljava/lang/Throwable;)Ljava/lang/RuntimeException; #com/google/common/reflect/TypeToken of 8(Ljava/lang/Class;)Lcom/google/common/reflect/TypeToken; getTypes TypeSet /()Lcom/google/common/reflect/TypeToken$TypeSet; +com/google/common/reflect/TypeToken$TypeSet rawTypes ()Ljava/util/Set; com/google/common/collect/Maps
newHashMap ()Ljava/util/HashMap;
getMethods ()[Ljava/lang/reflect/Method; isAnnotationPresent (Ljava/lang/Class;)Z append -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; (Ljava/lang/String;)V (Ljava/lang/reflect/Method;)V containsKey (Ljava/lang/Object;)Z 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; values ()Ljava/util/Collection; copyOf A(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList; /(Ljava/lang/Object;Ljava/lang/reflect/Method;)V
getAnnotation 4(Ljava/lang/Class;)Ljava/lang/annotation/Annotation; $com/google/common/cache/CacheBuilder
newBuilder (()Lcom/google/common/cache/CacheBuilder; weakKeys build M(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache; 9 : ; ? @ A B C D E 3 *? ? F
. Y G H I J K E . M? M+? N-? ? :? ? 2? ? :?
:2:+? :,? W???,? F &