Home
last modified time | relevance | path

Searched refs:moduleAnnotation (Results 1 – 16 of 16) sorted by relevance

/external/dagger2/java/dagger/internal/codegen/binding/
DConfigurationAnnotations.java23 import static dagger.internal.codegen.base.ModuleAnnotation.moduleAnnotation;
73 public static ImmutableList<TypeMirror> getModuleInjects(AnnotationMirror moduleAnnotation) { in getModuleInjects() argument
74 checkNotNull(moduleAnnotation); in getModuleInjects()
75 return getTypeListValue(moduleAnnotation, "injects"); in getModuleInjects()
104 moduleAnnotation(moduleElement) in getTransitiveModules()
106 moduleAnnotation -> { in getTransitiveModules()
109 moduleDependenciesBuilder.addAll(moduleAnnotation.includes()); in getTransitiveModules()
150 moduleAnnotation(element) in addIncludesFromSuperclasses()
151 .ifPresent(moduleAnnotation -> builder.addAll(moduleAnnotation.includes())); in addIncludesFromSuperclasses()
DModuleKind.java82 private final Class<? extends Annotation> moduleAnnotation; field in ModuleKind
84 ModuleKind(Class<? extends Annotation> moduleAnnotation) { in ModuleKind() argument
85 this.moduleAnnotation = moduleAnnotation; in ModuleKind()
94 Optional<AnnotationMirror> result = getAnnotationMirror(element, moduleAnnotation); in getModuleAnnotation()
96 result.isPresent(), "annotation %s is not present on type %s", moduleAnnotation, element); in getModuleAnnotation() local
102 return moduleAnnotation; in annotation()
DSubcomponentDeclaration.java52 public abstract ModuleAnnotation moduleAnnotation(); in moduleAnnotation() method in SubcomponentDeclaration
72 ModuleAnnotation moduleAnnotation = ModuleAnnotation.moduleAnnotation(module).get(); in forModule() local
74 getAnnotationElementAndValue(moduleAnnotation.annotation(), "subcomponents").getKey(); in forModule()
75 for (TypeElement subcomponent : moduleAnnotation.subcomponents()) { in forModule()
83 moduleAnnotation)); in forModule()
DModuleDescriptor.java27 import static dagger.internal.codegen.base.ModuleAnnotation.moduleAnnotation;
231 moduleAnnotation(moduleElement) in collectIncludedModules()
233 moduleAnnotation -> { in collectIncludedModules()
234 includedModules.addAll(moduleAnnotation.includes()); in collectIncludedModules()
DBindingDeclarationFormatter.java104 subcomponentDeclaration.moduleAnnotation().subcomponents(); in formatSubcomponentDeclaration()
121 subcomponentDeclaration.moduleAnnotation().annotationName(), in formatSubcomponentDeclaration()
DComponentCreatorDescriptor.java23 import static dagger.internal.codegen.base.ModuleAnnotation.moduleAnnotation;
219 return moduleAnnotation(asTypeElement(type)).isPresent() in requirement()
DComponentDescriptorFactory.java105 typeElement, ModuleAnnotation::moduleAnnotation, "must have a module annotation"))); in moduleComponentDescriptor()
/external/dagger2/java/dagger/internal/codegen/validation/
DBindsInstanceMethodValidator.java21 import static dagger.internal.codegen.base.ModuleAnnotation.moduleAnnotation;
61 moduleAnnotation(enclosingType) in checkAdditionalProperties()
62 .ifPresent(moduleAnnotation -> report.addError(didYouMeanBinds(moduleAnnotation))); in checkAdditionalProperties()
83 private static String didYouMeanBinds(ModuleAnnotation moduleAnnotation) { in didYouMeanBinds() argument
86 moduleAnnotation.annotationName()); in didYouMeanBinds()
DModuleValidator.java31 import static dagger.internal.codegen.base.ModuleAnnotation.moduleAnnotation;
260 ModuleAnnotation moduleAnnotation = moduleAnnotation(moduleKind.getModuleAnnotation(subject)); in validateReferencedSubcomponents() local
262 moduleAnnotation.subcomponentsAsAnnotationValues()) { in validateReferencedSubcomponents()
271 moduleAnnotation.annotation(), in validateReferencedSubcomponents()
281 attributeType, moduleAnnotation.annotation(), builder); in validateReferencedSubcomponents()
288 moduleAnnotation.annotation(), in validateReferencedSubcomponents()
320 AnnotationMirror moduleAnnotation, in validateSubcomponentHasBuilder() argument
326 moduleSubcomponentsDoesntHaveCreator(subcomponentAttribute, moduleAnnotation), in validateSubcomponentHasBuilder()
328 moduleAnnotation); in validateSubcomponentHasBuilder() local
332 TypeElement subcomponent, AnnotationMirror moduleAnnotation) { in moduleSubcomponentsDoesntHaveCreator() argument
[all …]
DComponentValidator.java30 import static dagger.internal.codegen.base.ModuleAnnotation.moduleAnnotation;
540 if (moduleAnnotation(MoreTypes.asTypeElement(type)).isPresent()) {
/external/dagger2/java/dagger/internal/codegen/base/
DComponentAnnotation.java190 public static ComponentAnnotation fromModuleAnnotation(ModuleAnnotation moduleAnnotation) { in fromModuleAnnotation() argument
191 return new AutoValue_ComponentAnnotation_FictionalComponentAnnotation(moduleAnnotation); in fromModuleAnnotation()
283 return moduleAnnotation().annotation(); in annotation()
293 return ClassName.get(asType(moduleAnnotation().annotation().getAnnotationType().asElement())) in isProduction()
309 return moduleAnnotation().includesAsAnnotationValues(); in moduleValues()
324 public abstract ModuleAnnotation moduleAnnotation(); in moduleAnnotation() method in ComponentAnnotation.FictionalComponentAnnotation
DModuleAnnotation.java111 public static ModuleAnnotation moduleAnnotation(AnnotationMirror annotation) { in moduleAnnotation() method in ModuleAnnotation
123 public static Optional<ModuleAnnotation> moduleAnnotation(TypeElement typeElement) { in moduleAnnotation() method in ModuleAnnotation
125 .map(ModuleAnnotation::moduleAnnotation); in moduleAnnotation()
/external/dagger2/java/dagger/hilt/processor/internal/aggregateddeps/
DAggregatedDepsProcessor.java100 Optional<ClassName> moduleAnnotation = getAnnotation(element, MODULE_ANNOTATIONS); in processEach() local
104 boolean isModule = moduleAnnotation.isPresent(); in processEach()
117 moduleAnnotation.map(ClassName::simpleName).orElse("@Module"), in processEach()
122 processModule(element, installInAnnotation, moduleAnnotation.get()); in processEach()
131 Element element, Optional<ClassName> installInAnnotation, ClassName moduleAnnotation) in processModule() argument
280 moduleAnnotation, in processModule()
/external/dagger2/javatests/dagger/internal/codegen/
DMultibindsValidationTest.java43 public MultibindsValidationTest(Class<? extends Annotation> moduleAnnotation) { in MultibindsValidationTest() argument
44 moduleDeclaration = "@" + moduleAnnotation.getCanonicalName() + " abstract class %s { %s }"; in MultibindsValidationTest()
DBindsMethodValidationTest.java46 public BindsMethodValidationTest(Class<? extends Annotation> moduleAnnotation) { in BindsMethodValidationTest() argument
47 moduleDeclaration = "@" + moduleAnnotation.getCanonicalName() + " abstract class %s { %s }"; in BindsMethodValidationTest()
DBindsOptionalOfMethodValidationTest.java50 public BindsOptionalOfMethodValidationTest(Class<? extends Annotation> moduleAnnotation) { in BindsOptionalOfMethodValidationTest() argument
51 moduleDeclaration = "@" + moduleAnnotation.getCanonicalName() + " abstract class %s { %s }"; in BindsOptionalOfMethodValidationTest()