/external/auto/common/src/test/java/com/google/auto/common/ |
D | MoreTypesIsTypeOfTest.java | 55 .that(MoreTypes.isTypeOf(TestType.class, typeElementFor(TestType.class).asType())) in isTypeOf_DeclaredType() 58 .that(MoreTypes.isTypeOf(String.class, typeElementFor(TestType.class).asType())) in isTypeOf_DeclaredType() 70 .that(MoreTypes.isTypeOf(String[].class, type)) in isTypeOf_ArrayType() 81 assertWithMessage("mirror of a boolean").that(MoreTypes.isTypeOf(Boolean.TYPE, type)).isTrue(); in isTypeOf_PrimitiveBoolean() 91 assertWithMessage("mirror of a byte").that(MoreTypes.isTypeOf(Byte.TYPE, type)).isTrue(); in isTypeOf_PrimitiveByte() 101 assertWithMessage("mirror of a char").that(MoreTypes.isTypeOf(Character.TYPE, type)).isTrue(); in isTypeOf_PrimitiveChar() 111 assertWithMessage("mirror of a double").that(MoreTypes.isTypeOf(Double.TYPE, type)).isTrue(); in isTypeOf_PrimitiveDouble() 121 assertWithMessage("mirror of a float").that(MoreTypes.isTypeOf(Float.TYPE, type)).isTrue(); in isTypeOf_PrimitiveFloat() 131 assertWithMessage("mirror of a int").that(MoreTypes.isTypeOf(Integer.TYPE, type)).isTrue(); in isTypeOf_PrimitiveInt() 141 assertWithMessage("mirror of a long").that(MoreTypes.isTypeOf(Long.TYPE, type)).isTrue(); in isTypeOf_PrimitiveLong() [all …]
|
/external/auto/common/src/main/java/com/google/auto/common/ |
D | SuperficialValidation.java | 210 return MoreTypes.isTypeOf(o.getClass(), expectedType); 247 return MoreTypes.isTypeOf(Boolean.TYPE, expectedType); 251 return MoreTypes.isTypeOf(Byte.TYPE, expectedType); 255 return MoreTypes.isTypeOf(Character.TYPE, expectedType); 259 return MoreTypes.isTypeOf(Double.TYPE, expectedType); 263 return MoreTypes.isTypeOf(Float.TYPE, expectedType); 267 return MoreTypes.isTypeOf(Integer.TYPE, expectedType); 271 return MoreTypes.isTypeOf(Long.TYPE, expectedType); 275 return MoreTypes.isTypeOf(Short.TYPE, expectedType);
|
D | MoreTypes.java | 810 public static boolean isTypeOf(final Class<?> clazz, TypeMirror type) { in isTypeOf() method in MoreTypes 861 return clazz.isArray() && isTypeOf(clazz.getComponentType(), array.getComponentType()); in visitArray()
|
/external/dagger2/java/dagger/internal/codegen/base/ |
D | ComponentAnnotation.java | 22 import static com.google.auto.common.MoreTypes.isTypeOf; 163 .anyMatch(annotationClass -> isTypeOf(annotationClass, annotation.getAnnotationType())); in isComponentAnnotation() 171 if (isTypeOf(Component.class, annotation.getAnnotationType())) { in componentAnnotation() 174 if (isTypeOf(Subcomponent.class, annotation.getAnnotationType())) { in componentAnnotation() 177 if (isTypeOf(ProductionComponent.class, annotation.getAnnotationType())) { in componentAnnotation() 180 if (isTypeOf(ProductionSubcomponent.class, annotation.getAnnotationType())) { in componentAnnotation()
|
D | SetType.java | 65 return MoreTypes.isType(elementType()) && MoreTypes.isTypeOf(clazz, elementType()); in elementsAreTypeOf() 92 return MoreTypes.isType(type) && MoreTypes.isTypeOf(Set.class, type); in isSet()
|
D | MapType.java | 81 return MoreTypes.isType(valueType()) && MoreTypes.isTypeOf(clazz, valueType()); in valuesAreTypeOf() 130 return MoreTypes.isType(type) && MoreTypes.isTypeOf(Map.class, type); in isMap()
|
D | RequestKinds.java | 21 import static com.google.auto.common.MoreTypes.isTypeOf; 115 if (isTypeOf(frameworkClass(kind), type)) { in getRequestKind()
|
D | FrameworkTypes.java | 58 if (MoreTypes.isTypeOf(clazz, type)) { in typeIsOneOf()
|
/external/dagger2/java/dagger/android/processor/ |
D | DuplicateAndroidInjectorsChecker.java | 70 return MoreTypes.isTypeOf(DispatchingAndroidInjector.class, key.type()) in isDispatchingAndroidInjector() 121 if (!MoreTypes.isTypeOf(Provider.class, valueType) in injectorMapDependencies() 126 return MoreTypes.isTypeOf(AndroidInjector.Factory.class, providedType); in injectorMapDependencies()
|
/external/dagger2/java/dagger/internal/codegen/binding/ |
D | DependencyRequestFactory.java | 19 import static com.google.auto.common.MoreTypes.isTypeOf; 166 if (isTypeOf(ListenableFuture.class, type)) { in forComponentProductionMethod()
|
D | BindingGraphFactory.java | 21 import static com.google.auto.common.MoreTypes.isTypeOf; 413 if (isType(requestKey.type()) && isTypeOf(MembersInjector.class, requestKey.type())) { in lookUpBindings()
|
/external/auto/factory/src/main/java/com/google/auto/factory/processor/ |
D | Mirrors.java | 55 return MoreTypes.isType(type) && MoreTypes.isTypeOf(Provider.class, type);
|
/external/dagger2/java/dagger/internal/codegen/validation/ |
D | ProducesMethodValidator.java | 128 if (MoreTypes.isType(type) && MoreTypes.isTypeOf(ListenableFuture.class, type)) { in unwrapListenableFuture()
|
D | DependencyRequestValidator.java | 144 if (MoreTypes.isType(keyType) && MoreTypes.isTypeOf(MembersInjector.class, keyType)) { in checkType()
|
/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/ |
D | AndroidEntryPointMetadata.java | 249 && MoreTypes.isTypeOf(Void.class, androidEntryPointClassValue.asType()); in of() 271 !MoreTypes.isTypeOf(Void.class, baseElement.asType()), in of()
|
/external/dagger2/java/dagger/internal/codegen/langmodel/ |
D | DaggerTypes.java | 224 return FUTURE_TYPES.stream().anyMatch(t -> MoreTypes.isTypeOf(t, type)); in isFutureType()
|