Home
last modified time | relevance | path

Searched refs:asElement (Results 1 – 25 of 32) sorted by relevance

12

/external/dagger2/java/dagger/internal/codegen/langmodel/
DDaggerTypes.java106 TypeElement typeElement = MoreElements.asType(declaredType.asElement()); in unwrapTypeOrDefault()
264 public Element asElement(TypeMirror t) {
265 return types.asElement(t);
DAccessibility.java106 if (!isElementAccessibleFrom(type.asElement(), packageName)) { in visitDeclared()
261 return isElementAccessibleFrom(t.asElement(), requestingPackage);
/external/javapoet/src/main/java/com/squareup/javapoet/
DTypeVariableName.java104 return get((TypeParameterElement) mirror.asElement()); in get()
117 TypeParameterElement element = (TypeParameterElement) mirror.asElement(); in get()
DTypeName.java273 ClassName rawType = ClassName.get((TypeElement) t.asElement()); in get()
277 && !t.asElement().getModifiers().contains(Modifier.STATIC) in get()
/external/dagger2/java/dagger/internal/codegen/
DConfigurationAnnotations.java82 if (mirror.getAnnotationType().asElement().getSimpleName().contentEquals("Nullable")) { in getNullableType()
149 element = MoreElements.asType(types.asElement(superclass)); in addIncludesFromSuperclasses()
DInjectionSiteFactory.java103 ancestors.add(MoreElements.asType(type.asElement())); in getInjectionSites()
104 for (Element enclosedElement : type.asElement().getEnclosedElements()) { in getInjectionSites()
DGwtCompatibility.java53 Name simpleName = annotation.getAnnotationType().asElement().getSimpleName(); in isGwtIncompatible()
DMapKeys.java87 MapKey mapKeyAnnotation = mapKey.getAnnotationType().asElement().getAnnotation(MapKey.class); in unwrapValue()
117 getOnlyElement(methodsIn(mapKeyAnnotationType.asElement().getEnclosedElements())); in getUnwrappedMapKeyType()
DMoreAnnotationMirrors.java58 return annotationMirror.getAnnotationType().asElement().getSimpleName(); in simpleName()
DComponentValidator.java235 referencedSubcomponents.put(MoreTypes.asElement(returnType), method); in validate()
246 MoreTypes.asElement(returnType).getEnclosingElement(), method); in validate()
430 if (isAnnotationPresent(t.asElement(), moduleKind.annotation())) { in validateSubcomponentMethod()
517 return getAnyAnnotation(t.asElement(), annotations); in checkForAnnotations()
DKeys.java66 TypeElement element = MoreElements.asType(type.asElement()); in isValidImplicitProvisionKey()
DBindsOptionalOfMethodValidator.java77 && !injectedConstructors(MoreElements.asType(MoreTypes.asDeclared(keyType).asElement())) in checkKeyType()
DMapKeyProcessingStep.java86 return unwrappedMapKeyType.asElement().getKind(); in unwrappedValueKind()
DKeyVariableNamer.java100 builder.append(key.qualifier().get().getAnnotationType().asElement().getSimpleName()); in name()
DOptionalType.java98 Name qualifiedName = MoreElements.asType(t.asElement()).getQualifiedName();
DMembersInjectionValidator.java92 if (!MoreElements.asType(type.asElement()).getTypeParameters().isEmpty()) {
DTypeProtoConverter.java98 typesIn(enclosingType.asElement().getEnclosedElements()).stream() in fromProto()
DMethodSignatureFormatter.java78 type = MoreElements.asType(container.get().asElement());
DAnnotationExpression.java77 MoreElements.asType(annotation.getAnnotationType().asElement())), in getAnnotationInstanceExpression()
/external/dagger2/java/dagger/model/
DScope.java62 return isScope(MoreElements.asType(scopeAnnotation.getAnnotationType().asElement())); in isScope()
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/
DHelpers.java250 public Element asElement(TypeMirror typeMirror) { in asElement() method in Helpers
251 return types.asElement(typeMirror); in asElement()
DRobolectricModel.java100 String baseClassName = type.asElement().getQualifiedName().toString(); in addShadowType()
245 TypeElement boundElement = TYPE_ELEMENT_VISITOR.visit(helpers.asElement(bound)); in registerType()
255 return referentMap.get(t.asElement());
/external/desugar/java/com/google/devtools/common/options/processor/
DProcessorUtils.java88 ((TypeElement) ((DeclaredType) annotationField).asElement()) in getClassTypeFromAnnotationField()
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/validator/
DFoundOnImplementsValidator.java39 p = superclass == null ? null : types.asElement(superclass); in init()
DImplementsValidator.java126 actualType = Helpers.getAnnotationTypeMirrorValue(types.asElement(value)); in visitType()
163 : (TypeElement) types.asElement(shadowPickerTypeMirror)); in visitType()

12