/external/dagger2/java/dagger/hilt/processor/internal/ |
D | Components.java | 51 if (Processors.hasAnnotation(element, ClassNames.INSTALL_IN) in getComponents() 52 || Processors.hasAnnotation(element, ClassNames.TEST_INSTALL_IN)) { in getComponents() 61 && Processors.hasAnnotation(enclosing, ClassNames.MODULE) in getComponents() 66 if (Processors.hasErrorTypeAnnotation(element)) { in getComponents() 92 Processors.hasAnnotation(element, ClassNames.INSTALL_IN) in getHiltInstallInComponents() 93 || Processors.hasAnnotation(element, ClassNames.TEST_INSTALL_IN)); in getHiltInstallInComponents() 97 Processors.hasAnnotation(element, ClassNames.INSTALL_IN) in getHiltInstallInComponents() 98 ? Processors.getAnnotationClassValues( in getHiltInstallInComponents() 100 Processors.getAnnotationMirror(element, ClassNames.INSTALL_IN), in getHiltInstallInComponents() 102 : Processors.getAnnotationClassValues( in getHiltInstallInComponents() [all …]
|
D | ComponentNames.java | 31 return Processors.append(Processors.getEnclosedClassName(root), "_HiltComponents"); in generatedComponentsWrapper() 51 return Processors.getEnclosedName(component).replaceAll("Component$", "C"); in componentName()
|
/external/dagger2/java/dagger/hilt/android/processor/internal/customtestapplication/ |
D | CustomTestApplicationMetadata.java | 29 import dagger.hilt.processor.internal.Processors; 49 return Processors.append( in appName() 50 Processors.getEnclosedClassName(ClassName.get(element())), "_Application"); in appName() 55 Processors.hasAnnotation(element, ClassNames.CUSTOM_TEST_APPLICATION), in of() 75 Processors.getAnnotationClassValue( in getBaseElement() 77 Processors.getAnnotationMirror(element, ClassNames.CUSTOM_TEST_APPLICATION), in getBaseElement() 83 !Processors.hasAnnotation(baseSuperclassElement, ClassNames.HILT_ANDROID_APP), in getBaseElement() 92 .filter(field -> Processors.hasAnnotation(field, ClassNames.INJECT)) in getBaseElement() 105 .filter(method -> Processors.hasAnnotation(method, ClassNames.INJECT)) in getBaseElement() 118 .filter(method -> Processors.hasAnnotation(method, ClassNames.INJECT)) in getBaseElement() [all …]
|
/external/dagger2/java/dagger/hilt/processor/internal/aggregateddeps/ |
D | PkgPrivateMetadata.java | 27 import dagger.hilt.processor.internal.Processors; 58 return Processors.prepend( in generatedClassName() 59 Processors.getEnclosedClassName(ClassName.get(getTypeElement())), PREFIX); in generatedClassName() 73 if (Processors.hasAnnotation(element, ClassNames.INSTALL_IN)) { in of() 74 installIn = Optional.of(Processors.getAnnotationMirror(element, ClassNames.INSTALL_IN)); in of() 75 } else if (Processors.hasAnnotation(element, ClassNames.TEST_INSTALL_IN)) { in of() 76 installIn = Optional.of(Processors.getAnnotationMirror(element, ClassNames.TEST_INSTALL_IN)); in of() 86 if (Processors.requiresModuleInstance(elements, MoreElements.asType(element))) { in of()
|
D | AggregatedDepsProcessor.java | 42 import dagger.hilt.processor.internal.Processors; 156 Processors.isTopLevel(module) in processModule() 159 || Processors.hasAnnotation(module.getEnclosingElement(), ClassNames.HILT_ANDROID_TEST), in processModule() 177 .filter(method -> !Processors.hasDaggerAbstractMethodAnnotation(method)) in processModule() 188 if (Processors.hasAnnotation(module, ClassNames.TEST_INSTALL_IN)) { in processModule() 201 Processors.getAnnotationMirror(module, ClassNames.TEST_INSTALL_IN); in processModule() 203 Processors.getAnnotationClassValues(getElementUtils(), testInstallIn, "replaces"); in processModule() 215 !Processors.hasAnnotation(replacedModule, ClassNames.INSTALL_IN)) in processModule() 295 !Processors.hasAnnotation(element, ClassNames.TEST_INSTALL_IN), in processEntryPoint() 348 .filter(annotation -> Processors.hasAnnotation(element, annotation)) in getAnnotation() [all …]
|
D | PkgPrivateEntryPointGenerator.java | 22 import dagger.hilt.processor.internal.Processors; 60 .addAnnotation(Processors.getOriginatingElementAnnotation(metadata.getTypeElement())) in generate() 65 Processors.addGeneratedAnnotation(entryPointInterfaceBuilder, env, getClass()); in generate()
|
D | PkgPrivateModuleGenerator.java | 22 import dagger.hilt.processor.internal.Processors; 57 .addAnnotation(Processors.getOriginatingElementAnnotation(metadata.getTypeElement())) in generate() 67 Processors.addGeneratedAnnotation(builder, env, getClass()); in generate()
|
/external/dagger2/java/dagger/hilt/processor/internal/root/ |
D | TestRootMetadata.java | 24 import dagger.hilt.processor.internal.Processors; 51 return Processors.append(Processors.getEnclosedClassName(testName()), "_Application"); in appName() 56 return Processors.append(Processors.getEnclosedClassName(testName()), "_GeneratedInjector"); in testInjectorName() 66 !Processors.hasAnnotation(element, ClassNames.ANDROID_ENTRY_POINT), in of() 71 Processors.hasAnnotation(element, ClassNames.HILT_ANDROID_TEST), in of()
|
D | TestComponentDataGenerator.java | 36 import dagger.hilt.processor.internal.Processors; 55 Processors.append( in TestComponentDataGenerator() 56 Processors.getEnclosedClassName(rootMetadata.testRootMetadata().testName()), in TestComponentDataGenerator() 91 Processors.addGeneratedAnnotation( in generate() 126 Processors.prepend(Processors.getEnclosedClassName(component), "Dagger"), in getMethod() 157 Processors.upperToLowerCamel(className.simpleName()), in getAddModuleStatement() 164 Processors.upperToLowerCamel(className.simpleName()), in getAddModuleStatement()
|
D | RootType.java | 21 import dagger.hilt.processor.internal.Processors; 51 if (Processors.hasAnnotation(element, ClassNames.HILT_ANDROID_APP)) { in of() 53 } else if (Processors.hasAnnotation(element, ClassNames.HILT_ANDROID_TEST)) { in of() 55 } else if (Processors.hasAnnotation(element, ClassNames.INTERNAL_TEST_ROOT)) { in of()
|
D | TestInjectorGenerator.java | 26 import dagger.hilt.processor.internal.Processors; 49 .addAnnotation(Processors.getOriginatingElementAnnotation(metadata.testElement())) in generate() 64 Processors.upperToLowerCamel(metadata.testName().simpleName())) in generate() 67 Processors.addGeneratedAnnotation(builder, env, getClass()); in generate()
|
D | TestComponentDataSupplierGenerator.java | 34 import dagger.hilt.processor.internal.Processors; 88 Processors.addGeneratedAnnotation( in generate() 102 Processors.append(Processors.getEnclosedClassName(testName), "_ComponentDataHolder"); in constructor()
|
/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/ |
D | AndroidEntryPointMetadata.java | 40 import dagger.hilt.processor.internal.Processors; 101 return Processors.hasAnnotation(element(), AndroidClassNames.OPTIONAL_INJECT); in allowsOptionalInjection() 126 return Processors.append( in injectorClassName() 127 Processors.getEnclosedClassName(elementClassName()), "_GeneratedInjector"); in injectorClassName() 135 return "inject" + Processors.getEnclosedName(elementClassName()); in injectMethodName() 162 return Processors.prepend(Processors.getEnclosedClassName(ClassName.get(element)), prefix); in generatedClassName() 241 Processors.getAnnotationClassValue( in of() 243 Processors.getAnnotationMirror(androidEntryPointElement, annotationClassName), in of() 447 if (Processors.hasAnnotation(element, AndroidClassNames.HILT_ANDROID_APP)) { in of() 455 Processors.isAssignableFrom(baseElement, AndroidClassNames.APPLICATION), in forHiltAndroidApp() [all …]
|
D | InjectorEntryPointGenerator.java | 24 import dagger.hilt.processor.internal.Processors; 50 .addAnnotation(Processors.getOriginatingElementAnnotation(metadata.element())) in generate() 59 Processors.upperToLowerCamel(metadata.elementClassName().simpleName())) in generate() 62 Processors.addGeneratedAnnotation(builder, env, getClass()); in generate()
|
D | ViewGenerator.java | 28 import dagger.hilt.processor.internal.Processors; 71 Processors.addGeneratedAnnotation(builder, env, getClass()); in generate() 171 && Processors.getPrimitiveType(type).getKind() == TypeKind.INT; in isFourthRestrictedParameter() 176 && Processors.getPrimitiveType(type).getKind() == TypeKind.INT; in isThirdRestrictedParameter() 181 && Processors.isAssignableFrom( in isSecondRestrictedParameter() 187 && Processors.isAssignableFrom(MoreElements.asType(element), AndroidClassNames.CONTEXT); in isFirstRestrictedParameter()
|
/external/dagger2/java/dagger/hilt/android/processor/internal/uninstallmodules/ |
D | UninstallModulesProcessor.java | 29 import dagger.hilt.processor.internal.Processors; 52 && Processors.hasAnnotation(element, ClassNames.HILT_ANDROID_TEST), in processEach() 60 Processors.getAnnotationClassValues( in processEach() 62 Processors.getAnnotationMirror(element, ClassNames.IGNORE_MODULES), in processEach() 67 !(Processors.hasAnnotation(module, ClassNames.MODULE) in processEach() 68 && Processors.hasAnnotation(module, ClassNames.INSTALL_IN))) in processEach()
|
/external/dagger2/java/dagger/hilt/processor/internal/originatingelement/ |
D | OriginatingElementProcessor.java | 27 import dagger.hilt.processor.internal.Processors; 49 MoreElements.isType(element) && Processors.isTopLevel(element), in processEach() 56 Processors.getAnnotationClassValue( in processEach() 58 Processors.getAnnotationMirror(element, ClassNames.ORIGINATING_ELEMENT), in processEach() 63 Processors.isTopLevel(originatingElementValue), in processEach()
|
/external/dagger2/java/dagger/hilt/processor/internal/aliasof/ |
D | AliasOfProcessor.java | 26 import dagger.hilt.processor.internal.Processors; 46 Processors.hasAnnotation(element, ClassNames.SCOPE), in processEach() 52 Processors.getAnnotationMirror(element, ClassNames.ALIAS_OF); in processEach() 55 Processors.getAnnotationClassValue(getElementUtils(), annotationMirror, "value"); in processEach()
|
D | AliasOfPropagatedDataGenerator.java | 23 import dagger.hilt.processor.internal.Processors; 44 TypeSpec.classBuilder(Processors.getFullEnclosedName(aliasScope)) in generate() 53 Processors.addGeneratedAnnotation(generator, processingEnv, getClass()); in generate()
|
D | AliasOfs.java | 28 import dagger.hilt.processor.internal.Processors; 79 Processors.getAnnotationMirror(element, ClassNames.ALIAS_OF_PROPAGATED_DATA); in getAliases() 93 Processors.getAnnotationClassValue(elements, annotationMirror, "defineComponentScope"); in getAliases() 94 TypeElement alias = Processors.getAnnotationClassValue(elements, annotationMirror, "alias"); in getAliases()
|
/external/dagger2/java/dagger/hilt/android/processor/internal/viewmodel/ |
D | ViewModelMetadata.kt | 24 import dagger.hilt.processor.internal.Processors in <lambda>() 64 !Processors.hasAnnotation(constructor, ClassNames.ASSISTED_INJECT), in <lambda>() 68 Processors.hasAnnotation(constructor, ClassNames.INJECT) in <lambda>() 93 Processors.getScopeAnnotations(typeElement).let { scopeAnnotations -> in <lambda>()
|
/external/dagger2/java/dagger/hilt/processor/internal/definecomponent/ |
D | DefineComponentMetadatas.java | 33 import dagger.hilt.processor.internal.Processors; 80 Processors.hasAnnotation(element, ClassNames.DEFINE_COMPONENT), in getUncached() 124 Processors.getScopeAnnotations(component).stream() in getUncached() 130 Processors.getAnnotationsAnnotatedWith(component, ClassNames.ALIAS_OF); in getUncached() 140 Processors.getAnnotationMirror(component, ClassNames.DEFINE_COMPONENT); in getUncached() 155 || Processors.hasAnnotation(parent, ClassNames.DEFINE_COMPONENT), in getUncached()
|
/external/dagger2/javatests/dagger/hilt/processor/internal/ |
D | ProcessorsTest.java | 51 MethodSpec methodCopy = Processors.copyMethodSpecWithoutBody(method).build(); in testCopyMethodSpecWithoutBodyForMethod() 56 MethodSpec methodCopyWithBody = Processors.copyMethodSpecWithoutBody(methodWithBody).build(); in testCopyMethodSpecWithoutBodyForMethod() 77 MethodSpec methodCopy = Processors.copyMethodSpecWithoutBody(method).build(); in testCopyMethodSpecWithoutBodyForConstructor() 82 MethodSpec methodCopyWithBody = Processors.copyMethodSpecWithoutBody(methodWithBody).build(); in testCopyMethodSpecWithoutBodyForConstructor()
|
/external/dagger2/java/dagger/hilt/processor/internal/generatesrootinput/ |
D | GeneratesRootInputPropagatedDataGenerator.java | 23 import dagger.hilt.processor.internal.Processors; 40 TypeSpec.classBuilder(Processors.getFullEnclosedName(element)) in generate() 50 Processors.addGeneratedAnnotation(generator, processingEnv, getClass()); in generate()
|
/external/dagger2/java/dagger/hilt/android/processor/internal/bindvalue/ |
D | BindValueMetadata.java | 29 import dagger.hilt.processor.internal.Processors; 128 !Processors.hasAnnotation(element, Inject.class), in create() 134 ImmutableList<AnnotationMirror> qualifiers = Processors.getQualifierAnnotations(element); in create() 142 ImmutableList<AnnotationMirror> mapKeys = Processors.getMapKeyAnnotations(element); in create() 160 ImmutableList<AnnotationMirror> scopes = Processors.getScopeAnnotations(element); in create()
|