dagger.internal.codegen.ModuleAdapterProcessor.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for connecting to the Relayr Cloud
???? 2q
???
? ??
??
??
?
? ??????? ??????
???
???
??
??
?????????
?
??
?????
"??
"?
"?
"?
??????
??? ??????????
2?
?? ?? ?? ? ?
???
??? <? ? ? ? < ? ? G
G
?
? ? <
U??
Y? ? ?
? <! ?"#$
f?% ?&'ofpqr(
p)tu*
t+
?,
?-.
t/
?01
t2
?3
t4
t56
t78 ?9 ?:
;<=
t>
t?@A
?B
CD
CE
tFGHIJ
;K
tL
?MNOP ?QRST
;U
tVW
pX
tY
tZ
?[
?\]
t^_`abc ?deL Gf ?g hh
??
Cij
?k
Clmno
?p
?q
tr
t?
st ?uvwxyz{ G| ?} ?~ G ??
??
??
??
?
??
"?
?? G?
??
t?
???????????
t????
C?? ?
t????????? ????
????? InnerClasses BINDINGS_MAP Ljava/lang/String; INVALID_RETURN_TYPES Ljava/util/List; Signature $Ljava/util/List; remainingTypes Ljava/util/LinkedHashMap; kLjava/util/LinkedHashMap;>; ()V Code LineNumberTable LocalVariableTable this 0Ldagger/internal/codegen/ModuleAdapterProcessor; getSupportedSourceVersion "()Ljavax/lang/model/SourceVersion; process @(Ljava/util/Set;Ljavax/annotation/processing/RoundEnvironment;)Z parsedAnnotation Ljava/util/Map; stringWriter Ljava/io/StringWriter; adapterName
sourceFile Ljavax/tools/JavaFileObject; sourceWriter Ljava/io/Writer; e !CodeGenerationIncompleteException @Ldagger/internal/codegen/Util$CodeGenerationIncompleteException; Ljava/io/IOException; typeName type &Ljavax/lang/model/element/TypeElement;
providesTypes i Ljava/util/Iterator; types Ljava/util/Set; env .Ljavax/annotation/processing/RoundEnvironment; LocalVariableTypeTable 5Ljava/util/Map; >Ljava/util/List; (Ljava/util/Iterator; 8Ljava/util/Set<+Ljavax/lang/model/element/TypeElement;>;
StackMapTable??y?????? i(Ljava/util/Set<+Ljavax/lang/model/element/TypeElement;>;Ljavax/annotation/processing/RoundEnvironment;)Z error 7(Ljava/lang/String;Ljavax/lang/model/element/Element;)V msg element "Ljavax/lang/model/element/Element; providerMethodsByClass ?(Ljavax/annotation/processing/RoundEnvironment;)Ljava/util/Map; invalidTypeElement invalidTypeName i$
typeModifiers methodModifiers providerMethodAsExecutable ,Ljavax/lang/model/element/ExecutableElement;
returnType "Ljavax/lang/model/type/TypeMirror; methods providerMethod
moduleType
moduleName module elementUtils Ljavax/lang/model/util/Elements; Ljavax/lang/model/util/Types; result
objectType 4Ljava/util/Set; aLjava/util/Map;>;????A ?(Ljavax/annotation/processing/RoundEnvironment;)Ljava/util/Map;>; findProvidesMethods ?(Ljavax/annotation/processing/RoundEnvironment;)Ljava/util/Set; 3Ljava/util/Set; d(Ljavax/annotation/processing/RoundEnvironment;)Ljava/util/Set<+Ljavax/lang/model/element/Element;>; generateModuleAdapter j(Ljava/io/Writer;Ljava/lang/String;Ljavax/lang/model/element/TypeElement;Ljava/util/Map;Ljava/util/List;)V
typeMirror key injectableType Ljava/lang/Object; arr$ [Ljava/lang/Object; len$ I staticInjection include provides Ldagger/Provides; ioWriter providerMethods staticInjections injects includes overrides Z complete library writer $Lcom/squareup/javawriter/JavaWriter;
multibindings providerMethodDependencies injectsField Ljava/lang/StringBuilder; staticInjectionsField
includesField noArgsConstructor methodToClassName methodNameToNextId OLjava/util/Map; NLjava/util/Map;?*?%
Exceptions ?(Ljava/io/Writer;Ljava/lang/String;Ljavax/lang/model/element/TypeElement;Ljava/util/Map;Ljava/util/List;)V findImports (ZZZ)Ljava/util/Set; providers dependencies imports #Ljava/util/Set; ((ZZZ)Ljava/util/Set; checkForDependencies (Ljava/util/List;)Z A(Ljava/util/List;)Z checkForMultibindings providesType? Type Ldagger/Provides$Type;? bindingClassName ^(Ljavax/lang/model/element/ExecutableElement;Ljava/util/Map;Ljava/util/Map;)Ljava/lang/String; className
methodName suffix id +Ljava/util/concurrent/atomic/AtomicInteger; uppercaseMethodName? ?(Ljavax/lang/model/element/ExecutableElement;Ljava/util/Map;Ljava/util/Map;)Ljava/lang/String; generateProvidesAdapter r(Lcom/squareup/javawriter/JavaWriter;Ljavax/lang/model/element/ExecutableElement;Ljava/util/Map;Ljava/util/Map;Z)V
parameterType parameter parameterKey *Ljavax/lang/model/element/VariableElement;
setOfBindings
parameters dependent singleton args first =Ljava/util/List<+Ljavax/lang/model/element/VariableElement;>; ?(Lcom/squareup/javawriter/JavaWriter;Ljavax/lang/model/element/ExecutableElement;Ljava/util/Map;Ljava/util/Map;Z)V
parameterName 6(Ljavax/lang/model/element/Element;)Ljava/lang/String;
SourceFile ModuleAdapterProcessor.java RuntimeVisibleAnnotations 6Ljavax/annotation/processing/SupportedAnnotationTypes; value * java/util/LinkedHashMap??=>??????????? java/lang/String?????????? java/util/List
dagger/Module??? java/io/StringWriter $$ModuleAdapter?_`?? javax/lang/model/element/Element???????????? >dagger/internal/codegen/Util$CodeGenerationIncompleteException java/io/IOException java/lang/StringBuilder Code gen failed: ??????89??????????? 6Could not find types required by provides methods for ??????? java/util/HashMap[\????????? Unexpected @Provides on ?? $javax/lang/model/element/TypeElement????????? EClasses declaring @Provides methods must not be private or abstract: ? ? ;@Provides methods must not be private, abstract or static: . *javax/lang/model/element/ExecutableElement? 1@Provides methods must not have a throws clause: ??
?? ?
3@Provides method must not return %s directly: %s.%s java/lang/Object? java/util/ArrayList? java.lang.Object Modules must be classes: ,Modules must not extend from other classes: ? java/util/LinkedHashSet dagger/Provides 0 has @Provides methods but no @Module annotation java/lang/Boolean? "com/squareup/javawriter/JavaWriter???? 0Code generated by dagger-compiler. Do not edit. !"#$%??&'() ?A manager of modules and provides adapters allowing for proper linking and
instance provision of types served by {@code @Provides} methods.* class+?,?-./ dagger/internal/ModuleAdapter012 { javax/lang/model/type/TypeMirror345?67689 , } String[] INJECTS.:;<=6 .class,
Class>[] STATIC_INJECTIONS>? Unexpected value: in includes of INCLUDES.?@A hsuper(%s.class, INJECTS, STATIC_INJECTIONS, %s /*overrides*/, INCLUDES, %s /*complete*/, %s /*library*/)BCD E)FGHI java/lang/OverrideJK newModule return new %s() TUsed internally obtain dependency information, such as for cyclical
graph detection. void getBindings ? ? bindings?LM?N?O 6bindings.contributeProvidesBinding(%s, new %s(module))??PO ,SetBinding.add(bindings, %s, new %s(module)) java/lang/AssertionError Unknown @Provides type Q??R)ST? dagger/internal/BindingsGroup javax/inject/Provider dagger/internal/ProvidesBinding dagger/internal/Linker
java/util/Set dagger/internal/Binding dagger/internal/SetBindingUV?W?X )java/util/concurrent/atomic/AtomicIntegerYZ?[\]^_?`ab ProvidesAdaptercde;f?? javax/inject/Singleton super(%s, %s, %s, %s) IS_SINGLETON
NOT_SINGLETON this.module = module setLibrary(%s) dUsed internally to link bindings/providers together at run time
according to their dependency graph. java/lang/SuppressWarnings uncheckedJg attach linker (javax/lang/model/element/VariableElement?h J%s = (%s) linker.requestBinding(%s, %s.class, getClass().getClassLoader())i9
Binding> getDependencies injectMembersBindings getBindings.add(%s) XReturns the fully provisioned instance satisfying the contract for
{@code Provider<%s>}. get %s.get() return module.%s(%s)jkl
parameter_ dagger/Lazymno .dagger/internal/codegen/ModuleAdapterProcessor -javax/annotation/processing/AbstractProcessor 0dagger/internal/codegen/ModuleAdapterProcessor$1 java/util/Iterator ,javax/annotation/processing/RoundEnvironment javax/lang/model/util/Elements javax/lang/model/util/Types
java/util/Map java/io/Writer dagger/Provides$Type javax/lang/model/SourceVersion latestSupported putAll (Ljava/util/Map;)V keySet ()Ljava/util/Set; iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object;
processingEnv 3Ljavax/annotation/processing/ProcessingEnvironment; 1javax/annotation/processing/ProcessingEnvironment getElementUtils "()Ljavax/lang/model/util/Elements; getTypeElement @(Ljava/lang/CharSequence;)Ljavax/lang/model/element/TypeElement; &(Ljava/lang/Object;)Ljava/lang/Object; dagger/internal/codegen/Util
getAnnotation D(Ljava/lang/Class;Ljavax/lang/model/element/Element;)Ljava/util/Map; L(Ljavax/lang/model/element/TypeElement;Ljava/lang/String;)Ljava/lang/String; getFiler %()Ljavax/annotation/processing/Filer; !javax/annotation/processing/Filer createSourceFile Y(Ljava/lang/CharSequence;[Ljavax/lang/model/element/Element;)Ljavax/tools/JavaFileObject; javax/tools/JavaFileObject
openWriter ()Ljava/io/Writer; getBuffer ()Ljava/lang/StringBuffer; append *(Ljava/lang/CharSequence;)Ljava/io/Writer; close -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; remove processingOver size ()I getMessager (()Ljavax/annotation/processing/Messager;p javax/tools/Diagnostic$Kind Kind ERROR Ljavax/tools/Diagnostic$Kind; $javax/annotation/processing/Messager printMessage 8(Ljavax/tools/Diagnostic$Kind;Ljava/lang/CharSequence;)V Z(Ljavax/tools/Diagnostic$Kind;Ljava/lang/CharSequence;Ljavax/lang/model/element/Element;)V getTypeUtils ()Ljavax/lang/model/util/Types; /$SwitchMap$javax$lang$model$element$ElementKind [I getEnclosingElement $()Ljavax/lang/model/element/Element; getKind (()Ljavax/lang/model/element/ElementKind; $javax/lang/model/element/ElementKind ordinal elementToString getModifiers !javax/lang/model/element/Modifier PRIVATE #Ljavax/lang/model/element/Modifier; contains (Ljava/lang/Object;)Z ABSTRACT getQualifiedName !()Ljavax/lang/model/element/Name; STATIC getThrownTypes ()Ljava/util/List; isEmpty
getReturnType $()Ljavax/lang/model/type/TypeMirror; erasure F(Ljavax/lang/model/type/TypeMirror;)Ljavax/lang/model/type/TypeMirror; "()Ljavax/lang/model/type/TypeKind; javax/lang/model/type/TypeKind Ljavax/lang/model/type/TypeKind; equals asType
isSameType G(Ljavax/lang/model/type/TypeMirror;Ljavax/lang/model/type/TypeMirror;)Z format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; add getElementsAnnotatedWith "(Ljava/lang/Class;)Ljava/util/Set; CLASS &Ljavax/lang/model/element/ElementKind;
getSuperclass containsKey addAll (Ljava/util/Collection;)Z booleanValue (Ljava/io/Writer;)V emitSingleLineComment K(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javawriter/JavaWriter;
getPackage M(Ljavax/lang/model/element/Element;)Ljavax/lang/model/element/PackageElement; 'javax/lang/model/element/PackageElement emitPackage 8(Ljava/lang/String;)Lcom/squareup/javawriter/JavaWriter; emitImports <(Ljava/util/Collection;)Lcom/squareup/javawriter/JavaWriter;
emitEmptyLine &()Lcom/squareup/javawriter/JavaWriter; emitJavadoc PUBLIC FINAL java/util/EnumSet of 5(Ljava/lang/Enum;Ljava/lang/Enum;)Ljava/util/EnumSet; 8(Ljava/lang/Class;[Ljava/lang/String;)Ljava/lang/String; beginType ~(Ljava/lang/String;Ljava/lang/String;Ljava/util/Set;Ljava/lang/String;[Ljava/lang/String;)Lcom/squareup/javawriter/JavaWriter; isInterface %(Ljavax/lang/model/type/TypeMirror;)Z %dagger/internal/codegen/GeneratorKeys 6(Ljavax/lang/model/type/TypeMirror;)Ljava/lang/String;
rawMembersKey
stringLiteral &(Ljava/lang/String;)Ljava/lang/String; E(Ljava/lang/Enum;Ljava/lang/Enum;Ljava/lang/Enum;)Ljava/util/EnumSet; emitField k(Ljava/lang/String;Ljava/lang/String;Ljava/util/Set;Ljava/lang/String;)Lcom/squareup/javawriter/JavaWriter; typeToString WARNING %(Ljava/lang/Enum;)Ljava/util/EnumSet; beginMethod l(Ljava/lang/String;Ljava/lang/String;Ljava/util/Set;[Ljava/lang/String;)Lcom/squareup/javawriter/JavaWriter; valueOf (Z)Ljava/lang/Boolean;
emitStatement endMethod getNoArgsConstructor T(Ljavax/lang/model/element/TypeElement;)Ljavax/lang/model/element/ExecutableElement; isCallableConstructor /(Ljavax/lang/model/element/ExecutableElement;)Z emitAnnotation 7(Ljava/lang/Class;)Lcom/squareup/javawriter/JavaWriter; 4(Ljava/lang/Class;)Ljava/lang/annotation/Annotation; $SwitchMap$dagger$Provides$Type ()Ldagger/Provides$Type; @(Ljavax/lang/model/element/ExecutableElement;)Ljava/lang/String; getSetKey (Ljava/lang/Object;)V endType java/lang/Class getCanonicalName
getParameters SET
SET_VALUES
getSimpleName (I)V incrementAndGet charAt (I)C java/lang/Character toUpperCase (C)C (C)Ljava/lang/StringBuilder; substring (I)Ljava/lang/String; 'dagger/internal/codegen/AdapterJavadocs bindingTypeDocs )(Ljava/lang/String;ZZZ)Ljava/lang/String; Y(Ljava/lang/String;Ljava/lang/String;Ljava/util/Set;)Lcom/squareup/javawriter/JavaWriter; I(Ljava/lang/Class;Ljava/lang/Object;)Lcom/squareup/javawriter/JavaWriter; >(Ljavax/lang/model/element/VariableElement;)Ljava/lang/String; compressType javax/lang/model/element/Name
contentEquals (Ljava/lang/CharSequence;)Z java/util/Arrays asList %([Ljava/lang/Object;)Ljava/util/List; javax/tools/Diagnostic 1 ? ? ? ? ? > *? *? Y? ? ?
U Z
. ? ? ^
? *? *,? ? *? ? ? N-?
? ?-? ? :*?
? ? :*? ? ? : ? :? Y? :? : * ? *?
? ? YS? :
? :? ? W? ? $:??i:*? "Y? #$? %? &? '? (-? ) ??D,? * ? 7*? ? +? -*?
? , ? -? "Y? #.? %*? ? ? &? '? / ? M ? ? M ? ? ! ^ b c " d - e ? f M k W n ` o i p w q ? r ? s ? t ? y ? u ? v ? w ? x ? z ? { ? | ? } ?
? W T ` K i B ? ?
? ? ? - ? ? ? ? M ?! ?"# $% &' ( * W T) M ?!* ?"+ $, - = ? .? ? /01.234 5D6? /01 < 7 89 V *?
? , ? -+,? 0 ?
? ?
: ? ;<