/external/auto/common/src/main/java/com/google/auto/common/ |
D | MoreTypes.java | 186 Element aElement = a.asElement(); in visitDeclared() 187 Element bElement = b.asElement(); in visitDeclared() 238 TypeParameterElement aElement = (TypeParameterElement) a.asElement(); in visitTypeVariable() 239 TypeParameterElement bElement = (TypeParameterElement) b.asElement(); in visitTypeVariable() 254 && a.asElement().getSimpleName().equals(b.asElement().getSimpleName()); in visitTypeVariable() 324 || t.asElement().getModifiers().contains(Modifier.STATIC)) { in enclosingType() 379 Element element = t.asElement(); in visitDeclared() 387 result += t.asElement().hashCode(); in visitDeclared() 414 TypeParameterElement element = (TypeParameterElement) t.asElement(); in visitTypeVariable() 474 p.add(MoreElements.asType(t.asElement())); in visitDeclared() [all …]
|
D | AnnotationMirrors.java | 89 ElementFilter.methodsIn(annotation.getAnnotationType().asElement().getEnclosedElements())) { in getAnnotationValuesWithDefaults() 135 MoreElements.asType(annotationMirror.getAnnotationType().asElement()).getQualifiedName(), in getAnnotationElementAndValue() 149 return isAnnotationPresent(input.getAnnotationType().asElement(), annotationType); in getAnnotatedAnnotations()
|
D | Overrides.java | 261 TypeElement element = MoreElements.asType(declared.asElement()); in erasedParameterTypes() 283 Element element = typeUtils.asElement(t); in visitTypeVariable() 394 return MoreElements.asType(typeUtils.asElement(sup)); in superclass() 403 types.add(MoreElements.asType(typeUtils.asElement(sup))); in superinterfaces() 410 Element element = declaredType.asElement(); in asTypeElement()
|
/external/auto/value/src/main/java/com/google/auto/value/processor/ |
D | TypeSimplifier.java | 120 TypeElement typeElement = MoreElements.asType(type.asElement()); in simplifiedClassName() 215 TypeElement typeElement = (TypeElement) typeUtils.asElement(type); in findImports() 269 .map(typeMirror -> MoreElements.asType(typeUtil.asElement(typeMirror))) in topLevelTypes() 285 ElementFilter.typesIn(typeUtils.asElement(type).getEnclosedElements()); in nonPrivateDeclaredTypes() 305 String simpleName = typeUtils.asElement(type).getSimpleName().toString(); in ambiguousNames() 311 Name qualifiedName = ((QualifiedNameable) typeUtils.asElement(type)).getQualifiedName(); in ambiguousNames() 374 TypeElement typeElement = (TypeElement) declaredType.asElement(); in isJavaLangObject()
|
D | Optionalish.java | 50 this.className = MoreElements.asType(optionalType.asElement()).getQualifiedName().toString(); in Optionalish() 72 TypeElement typeElement = MoreElements.asType(declaredType.asElement()); in isOptional() 121 String simpleName = optionalType.asElement().getSimpleName().toString(); in getContainedPrimitiveType()
|
D | GwtCompatibility.java | 37 Name name = annotation.getAnnotationType().asElement().getSimpleName(); in GwtCompatibility() 59 TypeElement annotationElement = (TypeElement) annotation.getAnnotationType().asElement(); in gwtCompatibleAnnotationString()
|
D | EclipseHack.java | 101 .map(t -> MoreTypes.asTypeVariable(t).asElement().getSimpleName()) in getEnclosingType() 176 TypeElement autoValueType = MoreElements.asType(typeUtils.asElement(in)); in noArgMethodsIn()
|
D | TypeEncoder.java | 144 return MoreElements.asType(declaredType.asElement()).getQualifiedName().toString(); in className() 257 sb.append(".").append(type.asElement().getSimpleName()); in appendTypeName() 342 return sb.append(type.asElement().getSimpleName()); in visitTypeVariable() 379 sb.append(type.asElement().getSimpleName()); in visitDeclared()
|
/external/turbine/javatests/com/google/turbine/processing/ |
D | TurbineTypesUnaryTest.java | 137 public void asElement() { in asElement() method in TurbineTypesUnaryTest 141 String expected = String.valueOf(javacTypes.asElement(javacA)); in asElement() 142 String actual = String.valueOf(turbineTypes.asElement(turbineA)); in asElement()
|
D | TurbineAnnotationMirrorTest.java | 62 .filter(x -> x.getAnnotationType().asElement().getSimpleName().contentEquals(name)) in getAnnotation() 160 .map(anno -> anno.getAnnotationType().asElement().getSimpleName().toString()); 220 ((TypeElement) a.getAnnotationType().asElement()).getQualifiedName().contentEquals("A");
|
D | TurbineElementTest.java | 85 ((TypeElement) ((DeclaredType) e.getSuperclass()).asElement()) in superClass() 92 ((TypeElement) ((DeclaredType) e.getSuperclass()).asElement()) in superClass() 105 ((TypeElement) ((DeclaredType) i).asElement()) in interfaces()
|
/external/dagger2/java/dagger/hilt/android/processor/internal/viewmodel/ |
D | ViewModelValidationPlugin.kt | 19 import com.google.auto.common.MoreTypes.asElement in <lambda>() 73 hasAnnotation(asElement(target.key().type()), AndroidClassNames.HILT_VIEW_MODEL) in <lambda>()
|
/external/auto/common/src/test/java/com/google/auto/common/ |
D | AnnotationValuesTest.java | 159 assertThat(AnnotationValues.getTypeMirror(value).asElement()).isEqualTo(insideClassA); in getTypeMirror() 167 assertThat(AnnotationValues.getTypeMirror(gvalue).asElement()).isEqualTo(genericClass); in getTypeMirrorGenericClass() 188 assertThat(annotationMirror.getAnnotationType().asElement()).isEqualTo(insideAnnotation); in getAnnotationMirror() 203 .map(DeclaredType::asElement) in getAnnotationMirrors()
|
D | MoreTypesTest.java | 293 MoreTypes.asElement(javaDotLang); in asElement_throws() 300 public void asElement() { in asElement() method in MoreTypesTest 303 assertThat(MoreTypes.asElement(stringElement.asType())).isEqualTo(stringElement); in asElement() 306 assertThat(MoreTypes.asElement(setParameterElement.asType())).isEqualTo(setParameterElement); in asElement() 429 public Element asElement() {
|
/external/auto/factory/src/main/java/com/google/auto/factory/processor/ |
D | TypeVariables.java | 58 if (!visited.add(t.asElement())) { in visitDeclared() 71 if (!visited.add(t.asElement())) { in visitTypeVariable()
|
/external/dagger2/java/dagger/internal/codegen/binding/ |
D | InjectionSiteFactory.java | 74 ancestors.add(MoreElements.asType(type.asElement())); in getInjectionSites() 75 for (Element enclosedElement : type.asElement().getEnclosedElements()) { in getInjectionSites()
|
D | ConfigurationAnnotations.java | 82 if (mirror.getAnnotationType().asElement().getSimpleName().contentEquals("Nullable")) { in getNullableType() 149 element = MoreElements.asType(types.asElement(superclass)); in addIncludesFromSuperclasses()
|
D | MapKeys.java | 84 MapKey mapKeyAnnotation = mapKey.getAnnotationType().asElement().getAnnotation(MapKey.class); in unwrapValue() 114 getOnlyElement(methodsIn(mapKeyAnnotationType.asElement().getEnclosedElements())); in getUnwrappedMapKeyType()
|
/external/dagger2/java/dagger/internal/codegen/langmodel/ |
D | DaggerTypes.java | 106 TypeElement typeElement = MoreElements.asType(declaredType.asElement()); in unwrapTypeOrDefault() 264 public Element asElement(TypeMirror t) { 265 return types.asElement(t);
|
D | Accessibility.java | 106 if (!isElementAccessibleFrom(type.asElement(), packageName)) { in visitDeclared() 261 return isElementAccessibleFrom(t.asElement(), requestingPackage);
|
/external/javapoet/src/main/java/com/squareup/javapoet/ |
D | TypeVariableName.java | 104 return get((TypeParameterElement) mirror.asElement()); in get() 117 TypeParameterElement element = (TypeParameterElement) mirror.asElement(); in get()
|
/external/auto/value/src/main/java/com/google/auto/value/extension/memoized/processor/ |
D | MemoizeExtension.java | 269 return ((QualifiedNameable) annotation.getAnnotationType().asElement()) in getAnnotationFqName() 276 Element annotationElement = annotation.getAnnotationType().asElement(); in annotationVisibleFrom() 375 .filter(a -> isAnnotationPresent(a.getAnnotationType().asElement(), Inherited.class)) in getAnnotationsMarkedWithInherited() 494 MoreElements.asType(annotation.getAnnotationType().asElement()) in pullDownMethodAnnotation() 590 .map(a -> a.getAnnotationType().asElement().getSimpleName()) in containsNullable()
|
/external/dagger2/java/dagger/internal/codegen/writing/ |
D | GwtCompatibility.java | 54 Name simpleName = annotation.getAnnotationType().asElement().getSimpleName(); in isGwtIncompatible()
|
/external/dagger2/java/dagger/internal/codegen/base/ |
D | MoreAnnotationMirrors.java | 58 return annotationMirror.getAnnotationType().asElement().getSimpleName(); in simpleName()
|
/external/dagger2/java/dagger/internal/codegen/validation/ |
D | ComponentValidator.java | 317 referencedSubcomponents.put(MoreTypes.asElement(returnType), method); in validateSubcomponentFactoryMethod() 347 if (isAnnotationPresent(t.asElement(), moduleKind.annotation())) { in validateSubcomponentFactoryMethod() 385 referencedSubcomponents.put(MoreTypes.asElement(returnType).getEnclosingElement(), method); in validateSubcomponentCreatorMethod() 553 return getAnyAnnotation(t.asElement(), annotations); in checkForAnnotations()
|