Home
last modified time | relevance | path

Searched refs:moduleElement (Results 1 – 8 of 8) sorted by relevance

/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DModuleDescriptor.java34 return input.moduleElement(); in getModuleElement()
41 abstract TypeElement moduleElement();
68 ModuleDescriptor create(TypeElement moduleElement) {
69 AnnotationMirror moduleAnnotation = getModuleAnnotation(moduleElement).get();
72 for (ExecutableElement moduleMethod : methodsIn(elements.getAllMembers(moduleElement))) {
75 provisionBindingFactory.forProvidesMethod(moduleMethod, moduleElement.asType()));
79 productionBindingFactory.forProducesMethod(moduleMethod, moduleElement.asType()));
84 (componentCanMakeNewInstances(moduleElement)
85 && moduleElement.getTypeParameters().isEmpty())
91 moduleElement,
[all …]
DProductionComponentValidator.java68 TypeElement moduleElement = MoreElements.asType(t.asElement()); in validate()
69 if (!getAnnotationMirror(moduleElement, Module.class).isPresent() in validate()
70 && !getAnnotationMirror(moduleElement, ProducerModule.class).isPresent()) { in validate()
72 moduleElement.getQualifiedName() in validate()
DProducerModuleProcessingStep.java92 for (Element moduleElement : in process()
95 if (SuperficialValidation.validateElement(moduleElement)) { in process()
97 moduleValidator.validate(MoreElements.asType(moduleElement)); in process()
104 ElementFilter.methodsIn(moduleElement.getEnclosedElements()); in process()
136 processedModuleElements.add(moduleElement); in process()
DConfigurationAnnotations.java169 for (TypeElement moduleElement = moduleQueue.poll(); in getTransitiveModules()
170 moduleElement != null; in getTransitiveModules()
171 moduleElement = moduleQueue.poll()) { in getTransitiveModules()
172 Optional<AnnotationMirror> moduleMirror = getAnnotationMirror(moduleElement, Module.class) in getTransitiveModules()
173 .or(getAnnotationMirror(moduleElement, ProducerModule.class)); in getTransitiveModules()
181 addIncludesFromSuperclasses(types, moduleElement, moduleDependenciesBuilder, objectType); in getTransitiveModules()
183 moduleElements.add(moduleElement); in getTransitiveModules()
DModuleValidator.java279 private void validateModuleVisibility(final TypeElement moduleElement, in validateModuleVisibility() argument
281 Visibility moduleVisibility = Visibility.ofElement(moduleElement); in validateModuleVisibility()
283 reportBuilder.addError("Modules cannot be private.", moduleElement); in validateModuleVisibility()
284 } else if (effectiveVisibilityOfElement(moduleElement).equals(PRIVATE)) { in validateModuleVisibility()
285 reportBuilder.addError("Modules cannot be enclosed in private types.", moduleElement); in validateModuleVisibility()
288 switch (moduleElement.getNestingKind()) { in validateModuleVisibility()
297 getAnnotationMirror(moduleElement, moduleClass).get())) in validateModuleVisibility()
316 moduleElement); in validateModuleVisibility()
DModuleProcessingStep.java91 for (Element moduleElement : in process()
94 moduleValidator.validate(MoreElements.asType(moduleElement)); in process()
101 ElementFilter.methodsIn(moduleElement.getEnclosedElements()); in process()
132 processedModuleElements.add(moduleElement); in process()
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/
DKeyTest.java86 TypeElement moduleElement = in forProvidesMethod() local
89 Iterables.getOnlyElement(ElementFilter.methodsIn(moduleElement.getEnclosedElements())); in forProvidesMethod()
108 TypeElement moduleElement = in forProvidesMethod_qualified() local
111 Iterables.getOnlyElement(ElementFilter.methodsIn(moduleElement.getEnclosedElements())); in forProvidesMethod_qualified()
120 TypeElement moduleElement = in qualifiedKeyEquivalents() local
123 Iterables.getOnlyElement(ElementFilter.methodsIn(moduleElement.getEnclosedElements())); in qualifiedKeyEquivalents()
162 TypeElement moduleElement = in forProvidesMethod_sets() local
165 : ElementFilter.methodsIn(moduleElement.getEnclosedElements())) { in forProvidesMethod_sets()
223 TypeElement moduleElement = in forProducesMethod() local
226 : ElementFilter.methodsIn(moduleElement.getEnclosedElements())) { in forProducesMethod()
[all …]
DDependencyRequestMapperTest.java64 TypeElement moduleElement = in sampleProviderParameters() local
67 Iterables.getOnlyElement(ElementFilter.methodsIn(moduleElement.getEnclosedElements())); in sampleProviderParameters()
72 TypeElement moduleElement = in sampleProducerParameters() local
75 Iterables.getOnlyElement(ElementFilter.methodsIn(moduleElement.getEnclosedElements())); in sampleProducerParameters()