/external/dagger2/java/dagger/internal/codegen/writing/ |
D | ModuleProxies.java | 81 public ClassName nameGeneratedType(TypeElement moduleElement) { in nameGeneratedType() argument 82 return moduleProxies.constructorProxyTypeName(moduleElement); in nameGeneratedType() 86 public Element originatingElement(TypeElement moduleElement) { in originatingElement() argument 87 return moduleElement; in originatingElement() 91 public Optional<TypeSpec.Builder> write(TypeElement moduleElement) { in write() argument 92 ModuleKind.checkIsModule(moduleElement, metadataUtil); in write() 93 return moduleProxies.nonPublicNullaryConstructor(moduleElement).isPresent() in write() 94 ? Optional.of(buildProxy(moduleElement)) in write() 98 private TypeSpec.Builder buildProxy(TypeElement moduleElement) { in buildProxy() argument 99 return classBuilder(nameGeneratedType(moduleElement)) in buildProxy() [all …]
|
D | ComponentRequirementExpressions.java | 173 private final TypeElement moduleElement; field in ComponentRequirementExpressions.InstantiableModuleField 179 this.moduleElement = module.typeElement(); in InstantiableModuleField() 187 moduleProxies.newModuleInstance(moduleElement, componentImplementation.name())); in fieldInitialization()
|
/external/dagger2/java/dagger/internal/codegen/binding/ |
D | ModuleDescriptor.java | 69 public abstract TypeElement moduleElement(); in moduleElement() method in ModuleDescriptor 137 public ModuleDescriptor create(TypeElement moduleElement) { in create() argument 138 return reentrantComputeIfAbsent(cache, moduleElement, this::createUncached); in create() 141 public ModuleDescriptor createUncached(TypeElement moduleElement) { in createUncached() argument 149 for (ExecutableElement moduleMethod : methodsIn(elements.getAllMembers(moduleElement))) { in createUncached() 151 bindings.add(bindingFactory.providesMethodBinding(moduleMethod, moduleElement)); in createUncached() 154 bindings.add(bindingFactory.producesMethodBinding(moduleMethod, moduleElement)); in createUncached() 157 delegates.add(bindingDelegateDeclarationFactory.create(moduleMethod, moduleElement)); in createUncached() 161 multibindingDeclarationFactory.forMultibindsMethod(moduleMethod, moduleElement)); in createUncached() 165 optionalBindingDeclarationFactory.forMethod(moduleMethod, moduleElement)); in createUncached() [all …]
|
D | ModuleKind.java | 72 public static void checkIsModule(TypeElement moduleElement, KotlinMetadataUtil metadataUtil) { in checkIsModule() argument 75 if (metadataUtil.isCompanionObjectClass(moduleElement)) { in checkIsModule() 76 checkArgument(forAnnotatedElement(asType(moduleElement.getEnclosingElement())).isPresent()); in checkIsModule() 78 checkArgument(forAnnotatedElement(moduleElement).isPresent()); in checkIsModule()
|
D | MultibindingDeclaration.java | 85 ExecutableElement moduleMethod, TypeElement moduleElement) { in forMultibindsMethod() argument 90 types.asMemberOf(MoreTypes.asDeclared(moduleElement.asType()), moduleMethod)), in forMultibindsMethod() 91 moduleElement); in forMultibindsMethod()
|
D | ConfigurationAnnotations.java | 103 for (TypeElement moduleElement : consumingIterable(moduleQueue)) { in getTransitiveModules() 104 moduleAnnotation(moduleElement) in getTransitiveModules() 114 types, moduleElement, moduleDependenciesBuilder, objectType); in getTransitiveModules() 116 moduleElements.add(moduleElement); in getTransitiveModules()
|
D | ComponentDescriptor.java | 122 return modules().stream().map(ModuleDescriptor::moduleElement).collect(toImmutableSet()); in moduleTypes() 143 .map(module -> ComponentRequirement.forModule(module.moduleElement().asType())) in requirements()
|
D | BindingGraph.java | 233 return ownedModules.stream().map(ModuleDescriptor::moduleElement).collect(toImmutableSet()); in ownedModuleTypes()
|
/external/dagger2/javatests/dagger/internal/codegen/ |
D | KeyFactoryTest.java | 90 TypeElement moduleElement = in forProvidesMethod() local 93 Iterables.getOnlyElement(ElementFilter.methodsIn(moduleElement.getEnclosedElements())); in forProvidesMethod() 94 Key key = keyFactory.forProvidesMethod(providesMethod, moduleElement); in forProvidesMethod() 110 TypeElement moduleElement = in forProvidesMethod_qualified() local 113 Iterables.getOnlyElement(ElementFilter.methodsIn(moduleElement.getEnclosedElements())); in forProvidesMethod_qualified() 114 Key key = keyFactory.forProvidesMethod(providesMethod, moduleElement); in forProvidesMethod_qualified() 132 TypeElement moduleElement = in qualifiedKeyEquivalents() local 135 Iterables.getOnlyElement(ElementFilter.methodsIn(moduleElement.getEnclosedElements())); in qualifiedKeyEquivalents() 136 Key provisionKey = keyFactory.forProvidesMethod(providesMethod, moduleElement); in qualifiedKeyEquivalents() 199 TypeElement moduleElement = in forProvidesMethod_sets() local [all …]
|
/external/dagger2/java/dagger/internal/codegen/validation/ |
D | ModuleValidator.java | 541 final TypeElement moduleElement, in validateModuleVisibility() argument 545 moduleAnnotation(getAnnotationMirror(moduleElement, moduleKind.annotation()).get()); in validateModuleVisibility() 546 Visibility moduleVisibility = Visibility.ofElement(moduleElement); in validateModuleVisibility() 547 Visibility moduleEffectiveVisibility = effectiveVisibilityOfElement(moduleElement); in validateModuleVisibility() 549 reportBuilder.addError("Modules cannot be private.", moduleElement); in validateModuleVisibility() 551 reportBuilder.addError("Modules cannot be enclosed in private types.", moduleElement); in validateModuleVisibility() 554 switch (moduleElement.getNestingKind()) { in validateModuleVisibility() 573 moduleElement); in validateModuleVisibility()
|
D | ComponentHierarchyValidator.java | 205 .appendTo(error, Iterables.transform(entry.getValue(), m -> m.moduleElement())); in validateProductionModuleUniqueness() 258 .append(conflictingModule.moduleElement().getQualifiedName()) in repeatedModulesWithScopeError()
|
D | ComponentDescriptorValidator.java | 252 if (module.moduleElement().getModifiers().contains(Modifier.ABSTRACT)) { in validateModules() 278 module.moduleElement(), methodAnnotations); in abstractModuleHasInstanceBindingMethodsError()
|
/external/dagger2/java/dagger/internal/codegen/componentgenerator/ |
D | ComponentHjarGenerator.java | 203 !module.moduleElement().getModifiers().contains(ABSTRACT) in componentRequirements() 205 module.moduleElement(), in componentRequirements() 207 .map(module -> ComponentRequirement.forModule(module.moduleElement().asType()))); in componentRequirements()
|
/external/auto/common/src/test/java/com/google/auto/common/ |
D | VisibilityTest.java | 56 Element moduleElement = in moduleVisibility() local 58 assertThat(Visibility.ofElement(moduleElement)).isEqualTo(PUBLIC); in moduleVisibility()
|
/external/dagger2/java/dagger/internal/codegen/kythe/ |
D | DaggerKythePlugin.java | 142 Optional<VName> moduleNode = jvmNode(module.moduleElement(), "module"); in addModuleEdges()
|