Home
last modified time | relevance | path

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

1234

/external/auto/common/src/main/java/com/google/auto/common/
DMoreTypes.java186 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 …]
DAnnotationMirrors.java89 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()
DOverrides.java261 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/
DTypeSimplifier.java120 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()
DOptionalish.java50 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()
DGwtCompatibility.java37 Name name = annotation.getAnnotationType().asElement().getSimpleName(); in GwtCompatibility()
59 TypeElement annotationElement = (TypeElement) annotation.getAnnotationType().asElement(); in gwtCompatibleAnnotationString()
DEclipseHack.java101 .map(t -> MoreTypes.asTypeVariable(t).asElement().getSimpleName()) in getEnclosingType()
176 TypeElement autoValueType = MoreElements.asType(typeUtils.asElement(in)); in noArgMethodsIn()
DTypeEncoder.java144 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/
DTurbineTypesUnaryTest.java137 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()
DTurbineAnnotationMirrorTest.java62 .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");
DTurbineElementTest.java85 ((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/
DViewModelValidationPlugin.kt19 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/
DAnnotationValuesTest.java159 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()
DMoreTypesTest.java293 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/
DTypeVariables.java58 if (!visited.add(t.asElement())) { in visitDeclared()
71 if (!visited.add(t.asElement())) { in visitTypeVariable()
/external/dagger2/java/dagger/internal/codegen/binding/
DInjectionSiteFactory.java74 ancestors.add(MoreElements.asType(type.asElement())); in getInjectionSites()
75 for (Element enclosedElement : type.asElement().getEnclosedElements()) { in getInjectionSites()
DConfigurationAnnotations.java82 if (mirror.getAnnotationType().asElement().getSimpleName().contentEquals("Nullable")) { in getNullableType()
149 element = MoreElements.asType(types.asElement(superclass)); in addIncludesFromSuperclasses()
DMapKeys.java84 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/
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()
/external/auto/value/src/main/java/com/google/auto/value/extension/memoized/processor/
DMemoizeExtension.java269 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/
DGwtCompatibility.java54 Name simpleName = annotation.getAnnotationType().asElement().getSimpleName(); in isGwtIncompatible()
/external/dagger2/java/dagger/internal/codegen/base/
DMoreAnnotationMirrors.java58 return annotationMirror.getAnnotationType().asElement().getSimpleName(); in simpleName()
/external/dagger2/java/dagger/internal/codegen/validation/
DComponentValidator.java317 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()

1234