/external/auto/common/src/test/java/com/google/auto/common/ |
D | MoreElementsTest.java | 75 assertThat(MoreElements.getPackage(stringElement)).isEqualTo(javaLangPackageElement); in getPackage() 77 assertThat(MoreElements.getPackage(childElement)).isEqualTo(javaLangPackageElement); in getPackage() 83 assertThat(MoreElements.asPackage(javaLangPackageElement)) in asPackage() 90 MoreElements.asPackage(stringElement); in asPackage_illegalArgument() 98 assertTrue(MoreElements.isType(typeElement)); in asTypeElement() 99 assertThat(MoreElements.asType(typeElement)).isEqualTo(typeElement); in asTypeElement() 106 assertFalse(MoreElements.isType(e)); in asTypeElement_notATypeElement() 108 MoreElements.asType(e); in asTypeElement_notATypeElement() 123 assertThat(MoreElements.asTypeParameter(typeParameterElement)).isEqualTo(typeParameterElement); in asTypeParameterElement() 129 MoreElements.asTypeParameter(javaLangPackageElement); in asTypeParameterElement_illegalArgument() [all …]
|
/external/dagger2/java/dagger/internal/codegen/validation/ |
D | MonitoringModuleProcessingStep.java | 19 import com.google.auto.common.MoreElements; 40 super(MoreElements::asType); in MonitoringModuleProcessingStep() 53 monitoringModuleGenerator.generate(MoreElements.asType(element), messager); in process()
|
D | BindsInstanceProcessingStep.java | 19 import com.google.auto.common.MoreElements; 57 parameterValidator.validate(MoreElements.asVariable(element)).printMessagesTo(messager); in process() 60 methodValidator.validate(MoreElements.asExecutable(element)).printMessagesTo(messager); in process()
|
D | BindsInstanceMethodValidator.java | 24 import com.google.auto.common.MoreElements; 60 TypeElement enclosingType = MoreElements.asType(element.getEnclosingElement()); in checkAdditionalProperties() 76 MoreElements.asExecutable(element).getParameters(); in bindingElementType()
|
D | DependencyRequestValidator.java | 19 import static com.google.auto.common.MoreElements.asType; 20 import static com.google.auto.common.MoreElements.asVariable; 29 import com.google.auto.common.MoreElements; 76 if (MoreElements.isAnnotationPresent(requestElement, Assisted.class)) { in validateDependencyRequest()
|
D | BindingMethodProcessingStep.java | 21 import com.google.auto.common.MoreElements; 39 super(MoreElements::asExecutable); in BindingMethodProcessingStep()
|
/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/ |
D | ViewGenerator.java | 19 import com.google.auto.common.MoreElements; 182 MoreElements.asType(element), AndroidClassNames.ATTRIBUTE_SET); in isSecondRestrictedParameter() 187 && Processors.isAssignableFrom(MoreElements.asType(element), AndroidClassNames.CONTEXT); in isFirstRestrictedParameter() 191 return MoreElements.getPackage(constructorElement) in isInOurPackage() 192 .equals(MoreElements.getPackage(metadata.element())); in isInOurPackage()
|
/external/dagger2/java/dagger/hilt/processor/internal/ |
D | Components.java | 21 import com.google.auto.common.MoreElements; 59 && MoreElements.isType(enclosing) in getComponents() 60 && MoreElements.isType(element) in getComponents() 63 MoreElements.asType(element))) { in getComponents()
|
D | ProcessorErrorHandler.java | 19 import com.google.auto.common.MoreElements; 85 if (MoreElements.isType(element)) { in checkErrors() 93 MoreElements.asType(element).getQualifiedName().toString()); in checkErrors()
|
/external/dagger2/java/dagger/model/ |
D | Scope.java | 19 import static com.google.auto.common.MoreElements.isAnnotationPresent; 23 import com.google.auto.common.MoreElements; 62 return isScope(MoreElements.asType(scopeAnnotation.getAnnotationType().asElement())); in isScope()
|
/external/auto/common/src/main/java/com/google/auto/common/ |
D | Overrides.java | 112 if (!MoreElements.methodVisibleFromPackage(overridden, MoreElements.getPackage(overrider))) { in overrides() 122 overriddenType = MoreElements.asType(overridden.getEnclosingElement()); in overrides() 261 TypeElement element = MoreElements.asType(declared.asElement()); in erasedParameterTypes() 334 TypeElement methodContainer = MoreElements.asType(method.getEnclosingElement()); in methodFromSuperinterfaces() 394 return MoreElements.asType(typeUtils.asElement(sup)); in superclass() 403 types.add(MoreElements.asType(typeUtils.asElement(sup))); in superinterfaces() 411 return MoreElements.asType(element); in asTypeElement()
|
/external/dagger2/java/dagger/internal/codegen/ |
D | InjectProcessingStep.java | 19 import com.google.auto.common.MoreElements; 58 MoreElements.asType(fieldElement.getEnclosingElement())); in InjectProcessingStep() 65 MoreElements.asType(methodElement.getEnclosingElement())); in InjectProcessingStep()
|
D | ComponentProcessingStep.java | 19 import static com.google.auto.common.MoreElements.asType; 28 import com.google.auto.common.MoreElements; 73 super(MoreElements::asType); in ComponentProcessingStep() 136 creatorValidator.validate(MoreElements.asType(creator)).printMessagesTo(messager); in processCreator()
|
D | ComponentHjarProcessingStep.java | 19 import static com.google.auto.common.MoreElements.asType; 25 import com.google.auto.common.MoreElements; 68 super(MoreElements::asType); in ComponentHjarProcessingStep()
|
D | AssistedProcessingStep.java | 19 import static com.google.auto.common.MoreElements.isAnnotationPresent; 22 import com.google.auto.common.MoreElements; 60 super(MoreElements::asVariable); in AssistedProcessingStep()
|
/external/dagger2/java/dagger/hilt/processor/internal/aggregateddeps/ |
D | PkgPrivateMetadata.java | 21 import com.google.auto.common.MoreElements; 86 if (Processors.requiresModuleInstance(elements, MoreElements.asType(element))) { in of() 91 new AutoValue_PkgPrivateMetadata(MoreElements.asType(element), installIn, annotation)); in of()
|
/external/dagger2/java/dagger/internal/codegen/binding/ |
D | MethodSignatureFormatter.java | 22 import com.google.auto.common.MoreElements; 60 MoreElements.asType(method.getEnclosingElement())); in typedFormatter() 75 TypeElement type = MoreElements.asType(method.getEnclosingElement()); 79 type = MoreElements.asType(container.get().asElement());
|
D | InjectionSiteFactory.java | 19 import static com.google.auto.common.MoreElements.isAnnotationPresent; 24 import com.google.auto.common.MoreElements; 74 ancestors.add(MoreElements.asType(type.asElement())); in getInjectionSites() 114 TypeElement enclosingType = MoreElements.asType(method.getEnclosingElement()); in visitExecutableAsMethod()
|
D | ModuleKind.java | 19 import static com.google.auto.common.MoreElements.asType; 24 import com.google.auto.common.MoreElements; 60 if (MoreElements.isAnnotationPresent(element, kind.annotation())) { in forAnnotatedElement()
|
/external/auto/value/src/main/java/com/google/auto/value/processor/ |
D | Optionalish.java | 18 import com.google.auto.common.MoreElements; 50 this.className = MoreElements.asType(optionalType.asElement()).getQualifiedName().toString(); in Optionalish() 72 TypeElement typeElement = MoreElements.asType(declaredType.asElement()); in isOptional()
|
/external/dagger2/java/dagger/android/processor/ |
D | AndroidMapKeyValidator.java | 20 import static com.google.auto.common.MoreElements.getAnnotationMirror; 21 import static com.google.auto.common.MoreElements.isAnnotationPresent; 26 import com.google.auto.common.MoreElements; 78 validateMethod(entry.getKey(), MoreElements.asExecutable(entry.getValue())); in process()
|
D | AndroidInjectorDescriptor.java | 21 import static com.google.auto.common.MoreElements.getAnnotationMirror; 22 import static com.google.auto.common.MoreElements.isAnnotationPresent; 26 import com.google.auto.common.MoreElements; 109 TypeElement enclosingElement = MoreElements.asType(method.getEnclosingElement()); in createIfValid()
|
/external/dagger2/java/dagger/hilt/processor/internal/root/ |
D | Root.java | 19 import com.google.auto.common.MoreElements; 31 TypeElement rootElement = MoreElements.asType(element); in create()
|
/external/dagger2/java/dagger/hilt/android/processor/internal/viewmodel/ |
D | ViewModelProcessor.kt | 19 import com.google.auto.common.MoreElements in <lambda>() 47 val typeElement = MoreElements.asType(element) in <lambda>()
|
/external/dagger2/java/dagger/internal/codegen/langmodel/ |
D | DaggerElements.java | 19 import static com.google.auto.common.MoreElements.asExecutable; 20 import static com.google.auto.common.MoreElements.getLocalAndInheritedMethods; 21 import static com.google.auto.common.MoreElements.hasModifiers; 28 import com.google.auto.common.MoreElements; 165 if (MoreElements.isAnnotationPresent(element, annotation)) { in isAnyAnnotationPresent() 229 return Optional.ofNullable(MoreElements.getAnnotationMirror(element, annotationClass).orNull()); in getAnnotationMirror() 380 TypeElement typeElement = MoreElements.asType(element);
|