Home
last modified time | relevance | path

Searched refs:isTypeOf (Results 1 – 16 of 16) sorted by relevance

/external/auto/common/src/test/java/com/google/auto/common/
DMoreTypesIsTypeOfTest.java55 .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/
DSuperficialValidation.java210 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);
DMoreTypes.java810 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/
DComponentAnnotation.java22 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()
DSetType.java65 return MoreTypes.isType(elementType()) && MoreTypes.isTypeOf(clazz, elementType()); in elementsAreTypeOf()
92 return MoreTypes.isType(type) && MoreTypes.isTypeOf(Set.class, type); in isSet()
DMapType.java81 return MoreTypes.isType(valueType()) && MoreTypes.isTypeOf(clazz, valueType()); in valuesAreTypeOf()
130 return MoreTypes.isType(type) && MoreTypes.isTypeOf(Map.class, type); in isMap()
DRequestKinds.java21 import static com.google.auto.common.MoreTypes.isTypeOf;
115 if (isTypeOf(frameworkClass(kind), type)) { in getRequestKind()
DFrameworkTypes.java58 if (MoreTypes.isTypeOf(clazz, type)) { in typeIsOneOf()
/external/dagger2/java/dagger/android/processor/
DDuplicateAndroidInjectorsChecker.java70 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/
DDependencyRequestFactory.java19 import static com.google.auto.common.MoreTypes.isTypeOf;
166 if (isTypeOf(ListenableFuture.class, type)) { in forComponentProductionMethod()
DBindingGraphFactory.java21 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/
DMirrors.java55 return MoreTypes.isType(type) && MoreTypes.isTypeOf(Provider.class, type);
/external/dagger2/java/dagger/internal/codegen/validation/
DProducesMethodValidator.java128 if (MoreTypes.isType(type) && MoreTypes.isTypeOf(ListenableFuture.class, type)) { in unwrapListenableFuture()
DDependencyRequestValidator.java144 if (MoreTypes.isType(keyType) && MoreTypes.isTypeOf(MembersInjector.class, keyType)) { in checkType()
/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/
DAndroidEntryPointMetadata.java249 && MoreTypes.isTypeOf(Void.class, androidEntryPointClassValue.asType()); in of()
271 !MoreTypes.isTypeOf(Void.class, baseElement.asType()), in of()
/external/dagger2/java/dagger/internal/codegen/langmodel/
DDaggerTypes.java224 return FUTURE_TYPES.stream().anyMatch(t -> MoreTypes.isTypeOf(t, type)); in isFutureType()