Home
last modified time | relevance | path

Searched refs:TypeNames (Results 1 – 25 of 114) sorted by relevance

12345

/external/kotlinpoet/kotlinpoet/src/jvmTest/java/com/squareup/kotlinpoet/
DTypeNameTest.java67 TypeNames.get(recursiveEnum.getReturnType()); in genericType()
68 TypeNames.get(recursiveEnum.getGenericReturnType()); in genericType()
69 TypeName genericTypeName = TypeNames.get(recursiveEnum.getParameterTypes()[0]); in genericType()
70 TypeNames.get(recursiveEnum.getGenericParameterTypes()[0]); in genericType()
78 TypeNames.get(genericStringInner.getReturnType()); in innerClassInGenericType()
79 TypeName genericTypeName = TypeNames.get(genericStringInner.getGenericReturnType()); in innerClassInGenericType()
80 assertNotEquals(TypeNames.get(genericStringInner.getGenericReturnType()), in innerClassInGenericType()
81 TypeNames.get(getClass().getDeclaredMethod("testGenericIntInner").getGenericReturnType())); in innerClassInGenericType()
90 TypeNames.get(genericStringInner.getReturnType()); in innerGenericInGenericType()
91 TypeName genericTypeName = TypeNames.get(genericStringInner.getGenericReturnType()); in innerGenericInGenericType()
[all …]
/external/dagger2/java/dagger/internal/codegen/base/
DFrameworkTypes.java24 import dagger.internal.codegen.javapoet.TypeNames;
35 TypeNames.PROVIDER,
36 TypeNames.JAKARTA_PROVIDER,
37 TypeNames.LAZY,
38 TypeNames.MEMBERS_INJECTOR);
43 ImmutableSet.of(TypeNames.PRODUCED, TypeNames.PRODUCER);
49 ImmutableSet.of(TypeNames.PRODUCED);
53 TypeNames.PRODUCED,
54 TypeNames.PRODUCER,
55 TypeNames.PROVIDER,
[all …]
DRequestKinds.java21 import static dagger.internal.codegen.javapoet.TypeNames.lazyOf;
22 import static dagger.internal.codegen.javapoet.TypeNames.listenableFutureOf;
23 import static dagger.internal.codegen.javapoet.TypeNames.producedOf;
24 import static dagger.internal.codegen.javapoet.TypeNames.producerOf;
25 import static dagger.internal.codegen.javapoet.TypeNames.providerOf;
41 import dagger.internal.codegen.javapoet.TypeNames;
59 return wrapType(TypeNames.PROVIDER, requestType(LAZY, type, processingEnv), processingEnv); in requestType()
62 return wrapType(TypeNames.LISTENABLE_FUTURE, type, processingEnv); in requestType()
102 PROVIDER, TypeNames.PROVIDER,
103 LAZY, TypeNames.LAZY,
[all …]
DComponentCreatorAnnotation.java27 import dagger.internal.codegen.javapoet.TypeNames;
33 COMPONENT_BUILDER(TypeNames.COMPONENT_BUILDER),
34 COMPONENT_FACTORY(TypeNames.COMPONENT_FACTORY),
35 SUBCOMPONENT_BUILDER(TypeNames.SUBCOMPONENT_BUILDER),
36 SUBCOMPONENT_FACTORY(TypeNames.SUBCOMPONENT_FACTORY),
37 PRODUCTION_COMPONENT_BUILDER(TypeNames.PRODUCTION_COMPONENT_BUILDER),
38 PRODUCTION_COMPONENT_FACTORY(TypeNames.PRODUCTION_COMPONENT_FACTORY),
39 PRODUCTION_SUBCOMPONENT_BUILDER(TypeNames.PRODUCTION_SUBCOMPONENT_BUILDER),
40 PRODUCTION_SUBCOMPONENT_FACTORY(TypeNames.PRODUCTION_SUBCOMPONENT_FACTORY),
DComponentKind.java28 import dagger.internal.codegen.javapoet.TypeNames;
33 COMPONENT(TypeNames.COMPONENT),
34 SUBCOMPONENT(TypeNames.SUBCOMPONENT),
35 PRODUCTION_COMPONENT(TypeNames.PRODUCTION_COMPONENT),
36 PRODUCTION_SUBCOMPONENT(TypeNames.PRODUCTION_SUBCOMPONENT),
37 MODULE(TypeNames.MODULE),
38 PRODUCER_MODULE(TypeNames.PRODUCER_MODULE);
DComponentAnnotation.java32 import dagger.internal.codegen.javapoet.TypeNames;
46 ImmutableSet.of(TypeNames.COMPONENT, TypeNames.PRODUCTION_COMPONENT);
50 ImmutableSet.of(TypeNames.SUBCOMPONENT, TypeNames.PRODUCTION_SUBCOMPONENT);
69 TypeNames.PRODUCTION_COMPONENT,
70 TypeNames.PRODUCTION_SUBCOMPONENT,
71 TypeNames.PRODUCER_MODULE);
DContributionType.java20 import dagger.internal.codegen.javapoet.TypeNames;
54 if (element.hasAnnotation(TypeNames.INTO_MAP)) { in fromBindingElement()
56 } else if (element.hasAnnotation(TypeNames.INTO_SET)) { in fromBindingElement()
58 } else if (element.hasAnnotation(TypeNames.ELEMENTS_INTO_SET)) { in fromBindingElement()
DProducerAnnotations.java22 import dagger.internal.codegen.javapoet.TypeNames;
47 .getAnnotation(TypeNames.PRODUCTION_IMPLEMENTATION); in productionImplementationQualifier()
54 return processingEnv.findTypeElement(PRODUCTION_USAGE).getAnnotation(TypeNames.PRODUCTION); in productionQualifier()
63 .getAnnotation(TypeNames.PRODUCTION_SCOPE); in productionScope()
DModuleAnnotation.java33 import dagger.internal.codegen.javapoet.TypeNames;
40 ImmutableSet.of(TypeNames.MODULE, TypeNames.PRODUCER_MODULE);
107 return getAnyAnnotation(element, TypeNames.MODULE, TypeNames.PRODUCER_MODULE) in moduleAnnotation()
/external/dagger2/java/dagger/android/processor/
DAndroidMapKeyProcessingStep.java46 return ImmutableSet.of(TypeNames.ANDROID_INJECTION_KEY, TypeNames.CLASS_KEY); in annotationClassNames()
58 method.getAnnotationsAnnotatedWith(TypeNames.QUALIFIER), in validateMethod()
59 method.getAnnotationsAnnotatedWith(TypeNames.QUALIFIER_JAVAX)) in validateMethod()
71 method.getAnnotationsAnnotatedWith(TypeNames.SCOPE), in validateMethod()
72 method.getAnnotationsAnnotatedWith(TypeNames.SCOPE_JAVAX)) in validateMethod()
79 getOnlyElement(method.getAnnotationsAnnotatedWith(TypeNames.MAP_KEY)); in validateMethod()
89 TypeNames.ANDROID_INJECTOR_FACTORY.canonicalName(), in validateMethod()
99 if (method.hasAnnotation(TypeNames.BINDS) && method.getParameters().size() == 1) { in validateMethod()
161 return processingEnv.requireTypeElement(TypeNames.ANDROID_INJECTOR_FACTORY.canonicalName()); in factoryElement()
DContributesAndroidInjectorProcessingStep.java62 return ImmutableSet.of(TypeNames.CONTRIBUTES_ANDROID_INJECTOR); in annotationClassNames()
87 AnnotationSpec.builder(TypeNames.MODULE) in generate()
139 .addAnnotation(TypeNames.BINDS) in bindAndroidInjectorFactory()
140 .addAnnotation(TypeNames.INTO_MAP) in bindAndroidInjectorFactory()
145 TypeNames.ANDROID_INJECTOR_FACTORY, WildcardTypeName.subtypeOf(TypeName.OBJECT))) in bindAndroidInjectorFactory()
152 return AnnotationSpec.builder(TypeNames.ANDROID_INJECTION_KEY) in androidInjectorMapKey()
156 return AnnotationSpec.builder(TypeNames.CLASS_KEY) in androidInjectorMapKey()
165 AnnotationSpec.Builder subcomponentAnnotation = AnnotationSpec.builder(TypeNames.SUBCOMPONENT); in subcomponent()
175 ParameterizedTypeName.get(TypeNames.ANDROID_INJECTOR, descriptor.injectedType())) in subcomponent()
183 .addAnnotation(TypeNames.SUBCOMPONENT_FACTORY) in subcomponentFactory()
[all …]
DAndroidInjectorDescriptor.java99 if (!enclosingElement.hasAnnotation(TypeNames.MODULE)) { in createIfValid()
112 XAnnotation annotation = method.getAnnotation(TypeNames.CONTRIBUTES_ANDROID_INJECTOR); in createIfValid()
114 if (module.getTypeElement().hasAnnotation(TypeNames.MODULE)) { in createIfValid()
123 method.getAnnotationsAnnotatedWith(TypeNames.SCOPE), in createIfValid()
124 method.getAnnotationsAnnotatedWith(TypeNames.SCOPE_JAVAX))) { in createIfValid()
130 method.getAnnotationsAnnotatedWith(TypeNames.QUALIFIER), in createIfValid()
131 method.getAnnotationsAnnotatedWith(TypeNames.QUALIFIER_JAVAX))) { in createIfValid()
/external/dagger2/java/dagger/internal/codegen/writing/
DMapFactoryCreationExpression.java37 import dagger.internal.codegen.javapoet.TypeNames;
74 useLazyClassKey ? TypeNames.STRING : mapType.keyType().getTypeName(), in creationExpression()
104 return mapType.valuesAreTypeOf(TypeNames.PROVIDER) in lazyMapFactoryClassName()
105 ? TypeNames.LAZY_CLASS_KEY_MAP_PROVIDER_FACTORY in lazyMapFactoryClassName()
106 : TypeNames.LAZY_CLASS_KEY_MAP_FACTORY; in lazyMapFactoryClassName()
109 ? mapType.valuesAreTypeOf(TypeNames.PRODUCER) in lazyMapFactoryClassName()
110 ? TypeNames.LAZY_MAP_OF_PRODUCER_PRODUCER in lazyMapFactoryClassName()
111 : TypeNames.LAZY_MAP_OF_PRODUCED_PRODUCER in lazyMapFactoryClassName()
112 : TypeNames.LAZY_MAP_PRODUCER; in lazyMapFactoryClassName()
DLazyMapKeyProxyGenerator.java36 import dagger.internal.codegen.javapoet.TypeNames;
63 .addAnnotation(TypeNames.IDENTIFIER_NAME_STRING) in lazyClassKeyProxyTypeSpec()
71 .getAnnotation(TypeNames.LAZY_CLASS_KEY) in lazyClassKeyFields()
78 FieldSpec.builder(TypeNames.STRING, LAZY_CLASS_KEY_NAME_FIELD) in lazyClassKeyFields()
93 .addAnnotation(TypeNames.KEEP_FIELD_TYPE) in lazyClassKeyFields()
/external/dagger2/java/dagger/internal/codegen/binding/
DFrameworkType.java30 import dagger.internal.codegen.javapoet.TypeNames;
51 TypeNames.DOUBLE_CHECK, in to()
58 return CodeBlock.of("$T.create($L)", TypeNames.PROVIDER_OF_LAZY, from); in to()
61 return CodeBlock.of("$T.producerFromProvider($L)", TypeNames.PRODUCERS, from); in to()
66 TypeNames.FUTURES, in to()
74 TypeNames.PRODUCED, in to()
101 from.type().rewrapType(TypeNames.LAZY).wrapType(TypeNames.DAGGER_PROVIDER), in to()
105 return Expression.create(from.type().rewrapType(TypeNames.LISTENABLE_FUTURE), codeBlock); in to()
141 from.type().rewrapType(TypeNames.LISTENABLE_FUTURE), in to()
DKeyFactory.java27 import static dagger.internal.codegen.javapoet.TypeNames.isFutureType;
47 import dagger.internal.codegen.javapoet.TypeNames;
77 processingEnv.requireTypeElement(TypeNames.SET), elementType.boxed()); in setOf()
82 processingEnv.requireTypeElement(TypeNames.MAP), keyType.boxed(), valueType.boxed()); in mapOf()
96 processingEnv.requireTypeElement(TypeNames.JDK_OPTIONAL), type.boxed()); in optionalOf()
131 checkArgument(method.hasAnnotation(TypeNames.PROVIDES)); in forProvidesMethod()
132 return forBindingMethod(method, contributingModule, Optional.of(TypeNames.PROVIDER)); in forProvidesMethod()
136 checkArgument(method.hasAnnotation(TypeNames.PRODUCES)); in forProducesMethod()
137 return forBindingMethod(method, contributingModule, Optional.of(TypeNames.PRODUCER)); in forProducesMethod()
142 checkArgument(method.hasAnnotation(TypeNames.BINDS)); in forBindsMethod()
[all …]
DInjectionAnnotations.java52 import dagger.internal.codegen.javapoet.TypeNames;
179 } else if (isMethod(element) && element.hasAnnotation(TypeNames.PROVIDES)) { in getGeneratedNameForScopeMetadata()
309 } else if (isMethod(element) && element.hasAnnotation(TypeNames.PROVIDES)) { in getGeneratedNameForQualifierMetadata()
320 if (isMethod(executableElement) && executableElement.hasAnnotation(TypeNames.PROVIDES)) { in getGeneratedNameForQualifierMetadata()
338 .hasAnyAnnotation(TypeNames.QUALIFIER, TypeNames.QUALIFIER_JAVAX); in hasQualifierAnnotation()
345 .hasAnyAnnotation(TypeNames.SCOPE, TypeNames.SCOPE_JAVAX); in hasScopeAnnotation()
350 return element.hasAnyAnnotation(TypeNames.INJECT, TypeNames.INJECT_JAVAX); in hasInjectAnnotation()
355 TypeNames.INJECT, TypeNames.INJECT_JAVAX, TypeNames.ASSISTED_INJECT); in hasInjectOrAssistedInjectAnnotation()
380 Optional.ofNullable(method.getAnnotation(TypeNames.INJECTED_FIELD_SIGNATURE)) in getQualifiersForKotlinProperty()
403 .getSyntheticPropertyAnnotations(field, TypeNames.QUALIFIER) in getQualifiersForKotlinProperty()
[all …]
DModuleDescriptor.java48 import dagger.internal.codegen.javapoet.TypeNames;
148 if (moduleMethod.hasAnnotation(TypeNames.PROVIDES)) { in createUncached()
151 if (moduleMethod.hasAnnotation(TypeNames.PRODUCES)) { in createUncached()
154 if (moduleMethod.hasAnnotation(TypeNames.BINDS)) { in createUncached()
158 if (moduleMethod.hasAnnotation(TypeNames.MULTIBINDS)) { in createUncached()
163 if (moduleMethod.hasAnnotation(TypeNames.BINDS_OPTIONAL_OF)) { in createUncached()
195 .filter(method -> !method.hasAnnotation(TypeNames.JVM_STATIC)) in collectCompanionModuleBindings()
203 if (method.hasAnnotation(TypeNames.PROVIDES)) { in collectCompanionModuleBindings()
206 if (method.hasAnnotation(TypeNames.PRODUCES)) { in collectCompanionModuleBindings()
/external/dagger2/java/dagger/internal/codegen/processingstep/
DMonitoringModuleGenerator.java24 import static dagger.internal.codegen.javapoet.TypeNames.PRODUCTION_COMPONENT_MONITOR_FACTORY;
25 import static dagger.internal.codegen.javapoet.TypeNames.providerOf;
26 import static dagger.internal.codegen.javapoet.TypeNames.setOf;
42 import dagger.internal.codegen.javapoet.TypeNames;
91 .returns(TypeNames.PRODUCTION_COMPONENT_MONITOR) in monitor()
93 .addAnnotation(TypeNames.PROVIDES) in monitor()
94 .addAnnotation(TypeNames.PRODUCTION_SCOPE) in monitor()
98 "return $T.createMonitorForComponent(component, factories)", TypeNames.MONITORS) in monitor()
DLazyClassKeyProcessingStep.java34 import dagger.internal.codegen.javapoet.TypeNames;
62 return ImmutableSet.of(TypeNames.LAZY_CLASS_KEY); in annotationClassNames()
69 .getAnnotation(TypeNames.LAZY_CLASS_KEY) in process()
85 return element.hasAnnotation(TypeNames.INTO_MAP) in isMapBinding()
86 && (element.hasAnnotation(TypeNames.BINDS) in isMapBinding()
87 || element.hasAnnotation(TypeNames.PROVIDES) in isMapBinding()
88 || element.hasAnnotation(TypeNames.PRODUCES)); in isMapBinding()
93 && (element.hasAnnotation(TypeNames.MODULE) in isModuleOrProducerModule()
94 || element.hasAnnotation(TypeNames.PRODUCER_MODULE)); in isModuleOrProducerModule()
DMultibindingAnnotationsProcessingStep.java25 import dagger.internal.codegen.javapoet.TypeNames;
48 return ImmutableSet.of(TypeNames.INTO_SET, TypeNames.ELEMENTS_INTO_SET, TypeNames.INTO_MAP); in annotationClassNames()
DModuleProcessingStep.java36 import dagger.internal.codegen.javapoet.TypeNames;
82 return ImmutableSet.of(TypeNames.MODULE, TypeNames.PRODUCER_MODULE); in annotationClassNames()
124 if (method.hasAnnotation(TypeNames.PROVIDES)) { in generateForMethodsIn()
126 } else if (method.hasAnnotation(TypeNames.PRODUCES)) { in generateForMethodsIn()
128 } else if (method.hasAnnotation(TypeNames.BINDS)) { in generateForMethodsIn()
DInjectProcessingStep.java31 import dagger.internal.codegen.javapoet.TypeNames;
53 return ImmutableSet.of(TypeNames.INJECT, TypeNames.INJECT_JAVAX, TypeNames.ASSISTED_INJECT); in annotationClassNames()
/external/dagger2/java/dagger/internal/codegen/validation/
DProvidesMethodValidator.java29 import dagger.internal.codegen.javapoet.TypeNames;
43 TypeNames.PROVIDES, in ProvidesMethodValidator()
44 ImmutableSet.of(TypeNames.MODULE, TypeNames.PRODUCER_MODULE), in ProvidesMethodValidator()
DBindsOptionalOfMethodValidator.java31 import dagger.internal.codegen.javapoet.TypeNames;
44 TypeNames.BINDS_OPTIONAL_OF, in BindsOptionalOfMethodValidator()
45 ImmutableSet.of(TypeNames.MODULE, TypeNames.PRODUCER_MODULE), in BindsOptionalOfMethodValidator()

12345