Home
last modified time | relevance | path

Searched refs:MoreElements (Results 1 – 25 of 132) sorted by relevance

123456

/external/auto/common/src/test/java/com/google/auto/common/
DMoreElementsTest.java75 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/
DMonitoringModuleProcessingStep.java19 import com.google.auto.common.MoreElements;
40 super(MoreElements::asType); in MonitoringModuleProcessingStep()
53 monitoringModuleGenerator.generate(MoreElements.asType(element), messager); in process()
DBindsInstanceProcessingStep.java19 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()
DBindsInstanceMethodValidator.java24 import com.google.auto.common.MoreElements;
60 TypeElement enclosingType = MoreElements.asType(element.getEnclosingElement()); in checkAdditionalProperties()
76 MoreElements.asExecutable(element).getParameters(); in bindingElementType()
DDependencyRequestValidator.java19 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()
DBindingMethodProcessingStep.java21 import com.google.auto.common.MoreElements;
39 super(MoreElements::asExecutable); in BindingMethodProcessingStep()
/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/
DViewGenerator.java19 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/
DComponents.java21 import com.google.auto.common.MoreElements;
59 && MoreElements.isType(enclosing) in getComponents()
60 && MoreElements.isType(element) in getComponents()
63 MoreElements.asType(element))) { in getComponents()
DProcessorErrorHandler.java19 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/
DScope.java19 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/
DOverrides.java112 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/
DInjectProcessingStep.java19 import com.google.auto.common.MoreElements;
58 MoreElements.asType(fieldElement.getEnclosingElement())); in InjectProcessingStep()
65 MoreElements.asType(methodElement.getEnclosingElement())); in InjectProcessingStep()
DComponentProcessingStep.java19 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()
DComponentHjarProcessingStep.java19 import static com.google.auto.common.MoreElements.asType;
25 import com.google.auto.common.MoreElements;
68 super(MoreElements::asType); in ComponentHjarProcessingStep()
DAssistedProcessingStep.java19 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/
DPkgPrivateMetadata.java21 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/
DMethodSignatureFormatter.java22 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());
DInjectionSiteFactory.java19 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()
DModuleKind.java19 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/
DOptionalish.java18 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/
DAndroidMapKeyValidator.java20 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()
DAndroidInjectorDescriptor.java21 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/
DRoot.java19 import com.google.auto.common.MoreElements;
31 TypeElement rootElement = MoreElements.asType(element); in create()
/external/dagger2/java/dagger/hilt/android/processor/internal/viewmodel/
DViewModelProcessor.kt19 import com.google.auto.common.MoreElements in <lambda>()
47 val typeElement = MoreElements.asType(element) in <lambda>()
/external/dagger2/java/dagger/internal/codegen/langmodel/
DDaggerElements.java19 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);

123456