Home
last modified time | relevance | path

Searched refs:asTypeElement (Results 1 – 25 of 62) sorted by relevance

123

/external/dagger2/java/dagger/internal/codegen/base/
DModuleAnnotation.java20 import static com.google.auto.common.MoreTypes.asTypeElement;
64 .map(MoreTypes::asTypeElement) in includes()
83 .map(MoreTypes::asTypeElement) in subcomponents()
97 .anyMatch(asTypeElement(annotation.getAnnotationType()).getQualifiedName()::contentEquals); in isModuleAnnotation()
/external/dagger2/java/dagger/hilt/android/processor/internal/
DMoreTypes.java66 public static TypeElement asTypeElement(TypeMirror type) {
67 return asTypeElement(getDeclaredType(type));
71 public static TypeElement asTypeElement(DeclaredType type) {
118 classElement = MoreTypes.asTypeElement(classElement.getSuperclass());
/external/dagger2/java/dagger/internal/codegen/writing/
DMembersInjectorProviderCreationExpression.java55 TypeElement injectedTypeElement = MoreTypes.asTypeElement(membersInjectedType); in creationExpression()
60 injectedTypeElement = MoreTypes.asTypeElement(injectedTypeElement.getSuperclass()); in creationExpression()
/external/dagger2/java/dagger/hilt/processor/internal/definecomponent/
DDefineComponentMetadatas.java21 import static com.google.auto.common.MoreTypes.asTypeElement;
126 .map(MoreTypes::asTypeElement) in getUncached()
151 TypeElement parent = asTypeElement(AnnotationValues.getTypeMirror(parentValue)); in getUncached()
DDefineComponentBuilderMetadatas.java124 MoreTypes.asTypeElement(component), ClassNames.DEFINE_COMPONENT), in getUncached()
150 componentMetadatas.get(MoreTypes.asTypeElement(component))); in getUncached()
/external/dagger2/java/dagger/internal/codegen/validation/
DDependencyRequestValidator.java21 import static com.google.auto.common.MoreTypes.asTypeElement;
120 TypeElement typeElement = asTypeElement(keyType); in checkType()
169 MoreTypes.asTypeElement(requestType).getSimpleName()), in checkNotProducer()
DBindsOptionalOfMethodValidator.java19 import static com.google.auto.common.MoreTypes.asTypeElement;
84 && !injectedConstructors(asTypeElement(keyType)).isEmpty()) { in checkKeyType()
DComponentValidator.java24 import static com.google.auto.common.MoreTypes.asTypeElement;
225 creator -> report.addSubreport(creatorValidator.validate(asTypeElement(creator)))); in validateCreators()
320 ComponentKind.forAnnotatedElement(MoreTypes.asTypeElement(returnType)).get(); in validateSubcomponentFactoryMethod()
348 return Optional.of(MoreTypes.asTypeElement(t)); in validateSubcomponentFactoryMethod()
370 MoreTypes.asTypeElement(returnType).getQualifiedName()), in validateSubcomponentFactoryMethod()
391 TypeElement creatorElement = MoreTypes.asTypeElement(returnType); in validateSubcomponentCreatorMethod()
540 if (moduleAnnotation(MoreTypes.asTypeElement(type)).isPresent()) {
DBindingElementValidator.java19 import static com.google.auto.common.MoreTypes.asTypeElement;
221 TypeElement keyElement = asTypeElement(keyType); in checkNotAssistedInject()
/external/auto/value/src/main/java/com/google/auto/value/extension/memoized/processor/
DMemoizedValidator.java72 .map(annotation -> MoreTypes.asTypeElement(annotation.getAnnotationType())) in isAutoValue()
78 TypeElement annotationElement = MoreTypes.asTypeElement(annotation.getAnnotationType()); in getAnnotationMirror()
/external/dagger2/java/dagger/internal/codegen/binding/
DComponentRequirement.java100 return MoreTypes.asTypeElement(type()); in typeElement()
215 simpleVariableName(MoreTypes.asTypeElement(type))); in forDependency()
224 simpleVariableName(MoreTypes.asTypeElement(type))); in forModule()
DComponentCreatorDescriptor.java20 import static com.google.auto.common.MoreTypes.asTypeElement;
161 TypeElement typeElement = asTypeElement(type); in create()
219 return moduleAnnotation(asTypeElement(type)).isPresent() in requirement()
DAssistedInjectionAnnotations.java23 import static com.google.auto.common.MoreTypes.asTypeElement;
172 TypeElement factoryElement = asTypeElement(factoryType); in create()
181 asTypeElement(assistedInjectType), in create()
272 getOnlyElement(assistedInjectedConstructors(asTypeElement(assistedInjectType))); in assistedInjectAssistedParameters()
DAnnotationExpression.java62 MoreTypes.asTypeElement(annotation.getAnnotationType())); in AnnotationExpression()
200 return ClassName.get(MoreTypes.asTypeElement(t));
DMapKeys.java109 MoreTypes.asTypeElement(mapKeyAnnotationType).getKind() == ElementKind.ANNOTATION_TYPE, in getUnwrappedMapKeyType()
173 if (MoreTypes.asTypeElement(mapKey.getAnnotationType()) in directMapKeyExpression()
DDependencyVariableNamer.java42 return simpleVariableName(MoreTypes.asTypeElement(dependency.key().type())); in name()
DComponentDescriptorFactory.java20 import static com.google.auto.common.MoreTypes.asTypeElement;
228 TypeElement returnTypeElement = asTypeElement(returnType); in getDescriptorForComponentMethod()
/external/dagger2/java/dagger/grpc/server/processor/
DGrpcServiceModel.java147 ClassName serviceClassName = ClassName.get(MoreTypes.asTypeElement(service));
184 return MoreTypes.asTypeElement(t);
/external/dagger2/java/dagger/hilt/processor/internal/
DProcessors.java188 .map(MoreTypes::asTypeElement) in getOptionalAnnotationClassValue()
197 .map(MoreTypes::asTypeElement) in getOptionalAnnotationClassValues()
628 if (isAssignableFromAnyOf(MoreTypes.asTypeElement(superClass), classNames)) {
641 if (isAssignableFromAnyOf(MoreTypes.asTypeElement(iface), classNames)) {
693 TypeElement superclassElement = MoreTypes.asTypeElement(superclass);
697 builder.addAll(getAllMethods(MoreTypes.asTypeElement(iface)));
712 TypeElement interfaceElement = MoreTypes.asTypeElement(interfaceMirror);
/external/dagger2/java/dagger/android/processor/
DAndroidMapKeys.java39 TypeElement type = MoreTypes.asTypeElement((TypeMirror) mapKeyClass); in injectedTypeFromMapKey()
/external/dagger2/java/dagger/internal/codegen/
DAssistedFactoryProcessingStep.java21 import static com.google.auto.common.MoreTypes.asTypeElement;
218 && AssistedInjectionAnnotations.isAssistedInjectionType(asTypeElement(type)); in isAssistedInjectionType()
346 getOnlyElement(assistedInjectedConstructors(asTypeElement(assistedInjectType))), in delegateFactoryTypeName()
/external/dagger2/java/dagger/internal/codegen/bindinggraphvalidation/
DInjectBindingValidator.java56 injectValidator.validateType(MoreTypes.asTypeElement(node.key().type())); in validateInjectionBinding()
/external/dagger2/java/dagger/model/
DScope.java47 return MoreTypes.asTypeElement(scopeAnnotation().getAnnotationType()); in scopeAnnotationElement()
/external/auto/value/src/main/java/com/google/auto/value/extension/serializable/serializer/impl/
DOptionalSerializerExtension.java95 return MoreTypes.asTypeElement(type).getQualifiedName().contentEquals("java.util.Optional"); in isOptional()
/external/auto/common/src/main/java/com/google/auto/common/
DMoreTypes.java540 public static TypeElement asTypeElement(TypeMirror mirror) { in asTypeElement() method in MoreTypes
548 builder.add(asTypeElement(mirror)); in asTypeElements()
883 TypeMirror superclassType = asTypeElement(type).getSuperclass(); in nonObjectSuperclass()
905 return asTypeElement(type).getQualifiedName().contentEquals("java.lang.Object"); in isObjectType()
1013 TypeElement typeElement = asTypeElement(type); in isJavaLangObject()

123