/external/auto/common/src/test/java/com/google/auto/common/ |
D | MoreTypesIsTypeOfTest.java | 53 assertTrue(MoreTypes.isType(typeElementFor(TestType.class).asType())); in isTypeOf_DeclaredType() 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() 67 assertTrue(MoreTypes.isType(typeElementFor(ArrayType.class).asType())); in isTypeOf_ArrayType() 70 .that(MoreTypes.isTypeOf(String[].class, type)) in isTypeOf_ArrayType() 79 assertTrue(MoreTypes.isType(typeElementFor(PrimitiveBoolean.class).asType())); in isTypeOf_PrimitiveBoolean() 81 assertWithMessage("mirror of a boolean").that(MoreTypes.isTypeOf(Boolean.TYPE, type)).isTrue(); in isTypeOf_PrimitiveBoolean() 89 assertTrue(MoreTypes.isType(typeElementFor(PrimitiveByte.class).asType())); in isTypeOf_PrimitiveByte() 91 assertWithMessage("mirror of a byte").that(MoreTypes.isTypeOf(Byte.TYPE, type)).isTrue(); in isTypeOf_PrimitiveByte() 99 assertTrue(MoreTypes.isType(typeElementFor(PrimitiveChar.class).asType())); in isTypeOf_PrimitiveChar() [all …]
|
D | MoreTypesTest.java | 93 EquivalenceTester<TypeMirror> tester = EquivalenceTester.<TypeMirror>of(MoreTypes.equivalence()) in equivalence() 242 assertThat(MoreTypes.referencedTypes(fieldIndex.get("f1").asType())) in testReferencedTypes() 244 assertThat(MoreTypes.referencedTypes(fieldIndex.get("f2").asType())) in testReferencedTypes() 246 assertThat(MoreTypes.referencedTypes(fieldIndex.get("f3").asType())) in testReferencedTypes() 248 assertThat(MoreTypes.referencedTypes(fieldIndex.get("f4").asType())) in testReferencedTypes() 250 assertThat(MoreTypes.referencedTypes(fieldIndex.get("f5").asType())) in testReferencedTypes() 252 assertThat(MoreTypes.referencedTypes(fieldIndex.get("f6").asType())) in testReferencedTypes() 254 assertThat(MoreTypes.referencedTypes(fieldIndex.get("f7").asType())) in testReferencedTypes() 256 assertThat(MoreTypes.referencedTypes(fieldIndex.get("f8").asType())) in testReferencedTypes() 258 assertThat(MoreTypes.referencedTypes(fieldIndex.get("f9").asType())) in testReferencedTypes() [all …]
|
/external/dagger2/java/dagger/internal/codegen/base/ |
D | SetType.java | 21 import com.google.auto.common.MoreTypes; 65 return MoreTypes.isType(elementType()) && MoreTypes.isTypeOf(clazz, elementType()); in elementsAreTypeOf() 85 return MoreTypes.asDeclared(elementType()).getTypeArguments().get(0); in unwrappedElementType() 92 return MoreTypes.isType(type) && MoreTypes.isTypeOf(Set.class, type); in isSet() 109 return new AutoValue_SetType(MoreTypes.equivalence().wrap(MoreTypes.asDeclared(type))); in from()
|
D | MapType.java | 22 import com.google.auto.common.MoreTypes; 81 return MoreTypes.isType(valueType()) && MoreTypes.isTypeOf(clazz, valueType()); in valuesAreTypeOf() 123 return MoreTypes.asDeclared(valueType()).getTypeArguments().get(0); in uncheckedUnwrappedValueType() 130 return MoreTypes.isType(type) && MoreTypes.isTypeOf(Map.class, type); in isMap() 147 return new AutoValue_MapType(MoreTypes.equivalence().wrap(MoreTypes.asDeclared(type))); in from()
|
D | ModuleAnnotation.java | 20 import static com.google.auto.common.MoreTypes.asTypeElement; 26 import com.google.auto.common.MoreTypes; 64 .map(MoreTypes::asTypeElement) in includes() 83 .map(MoreTypes::asTypeElement) in subcomponents()
|
D | FrameworkTypes.java | 19 import static com.google.auto.common.MoreTypes.isType; 21 import com.google.auto.common.MoreTypes; 58 if (MoreTypes.isTypeOf(clazz, type)) { in typeIsOneOf()
|
/external/auto/common/src/main/java/com/google/auto/common/ |
D | SuperficialValidation.java | 210 return MoreTypes.isTypeOf(o.getClass(), expectedType); 219 return MoreTypes.equivalence().equivalent(a.getAnnotationType(), expectedType) 228 TypeMirror componentType = MoreTypes.asArray(expectedType).getComponentType(); 234 return MoreTypes.equivalence().equivalent(enumConstant.asType(), 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); [all …]
|
/external/guice/core/test/com/google/inject/internal/ |
D | MoreTypesTest.java | 35 MoreTypes.typeToString(innerString.getType())); in testParameterizedTypeToString() 40 MoreTypes.typeToString(mapInnerInteger.getType())); in testParameterizedTypeToString() 47 MoreTypes.typeToString(mapInnerLongToSetInnerLong.getType())); in testParameterizedTypeToString() 52 assertTrue(MoreTypes.equals(new TypeLiteral<T>() {}.getType(), type)); in testEquals_typeVariable() 60 assertEquals(Object.class, MoreTypes.getRawType(wildcard)); in testGetRawType_wildcard()
|
/external/guice/core/src/com/google/inject/util/ |
D | Types.java | 20 import com.google.inject.internal.MoreTypes; 21 import com.google.inject.internal.MoreTypes.GenericArrayTypeImpl; 22 import com.google.inject.internal.MoreTypes.ParameterizedTypeImpl; 23 import com.google.inject.internal.MoreTypes.WildcardTypeImpl; 79 return new WildcardTypeImpl(new Type[] {bound}, MoreTypes.EMPTY_TYPE_ARRAY); in subtypeOf()
|
/external/auto/value/src/main/java/com/google/auto/value/processor/ |
D | EclipseHack.java | 21 import com.google.auto.common.MoreTypes; 94 DeclaredType declared = MoreTypes.asDeclared(enclosing); in getEnclosingType() 101 .map(t -> MoreTypes.asTypeVariable(t).asElement().getSimpleName()) in getEnclosingType() 103 TypeElement enclosingElement = MoreTypes.asTypeElement(declared); in getEnclosingType() 113 enclosing = MoreTypes.asDeclared(enclosing).getEnclosingType(); in getEnclosingType() 125 return MoreTypes.asExecutable(methodMirror).getReturnType(); in methodReturnType() 152 returnType = MoreTypes.asExecutable(methodMirror).getReturnType(); in methodReturnTypes()
|
D | TypeVariables.java | 19 import com.google.auto.common.MoreTypes; 146 MoreTypes.asDeclared(targetType).getTypeArguments(); in canAssignStaticMethodResult() 152 TypeVariable v = MoreTypes.asTypeVariable(typeParameters.get(i).asType()); in canAssignStaticMethodResult() 153 typeVariables.put(MoreTypes.equivalence().wrap(v), targetTypeArguments.get(i)); in canAssignStaticMethodResult() 162 WildcardType wildcard = MoreTypes.asWildcard(substitutedParameterType); in canAssignStaticMethodResult() 190 TypeMirror substituted = typeVariables.get(MoreTypes.equivalence().wrap(t)); in visitTypeVariable() 230 comp = MoreTypes.asWildcard(comp).getExtendsBound(); in visitArray()
|
/external/auto/factory/src/main/java/com/google/auto/factory/processor/ |
D | Key.java | 24 import com.google.auto.common.MoreTypes; 82 ? MoreTypes.asDeclared(type).getTypeArguments().get(0) in create() 85 MoreTypes.equivalence().wrap(keyType), in create() 95 ? types.boxedClass(MoreTypes.asPrimitiveType(type)).asType() in boxedType() 101 String typeQualifiedName = MoreTypes.asTypeElement(type().get()).toString(); in toString()
|
/external/guice/core/src/com/google/inject/ |
D | TypeLiteral.java | 21 import static com.google.inject.internal.MoreTypes.canonicalize; 24 import com.google.inject.internal.MoreTypes; 76 this.rawType = (Class<? super T>) MoreTypes.getRawType(type); in TypeLiteral() 84 this.rawType = (Class<? super T>) MoreTypes.getRawType(this.type); in TypeLiteral() 135 return o instanceof TypeLiteral<?> && MoreTypes.equals(type, ((TypeLiteral) o).type); in equals() 140 return MoreTypes.typeToString(type); in toString() 172 toResolve = MoreTypes.resolveTypeVariable(type, rawType, original); in resolveType() 240 return resolve(MoreTypes.getGenericSupertype(type, rawType, supertype)); in getSupertype()
|
/external/dagger2/java/dagger/android/processor/ |
D | DuplicateAndroidInjectorsChecker.java | 26 import com.google.auto.common.MoreTypes; 70 return MoreTypes.isTypeOf(DispatchingAndroidInjector.class, key.type()) in isDispatchingAndroidInjector() 120 MoreTypes.asDeclared(requestedBinding.key().type()).getTypeArguments().get(1); in injectorMapDependencies() 121 if (!MoreTypes.isTypeOf(Provider.class, valueType) in injectorMapDependencies() 125 TypeMirror providedType = MoreTypes.asDeclared(valueType).getTypeArguments().get(0); in injectorMapDependencies() 126 return MoreTypes.isTypeOf(AndroidInjector.Factory.class, providedType); in injectorMapDependencies()
|
/external/dagger2/java/dagger/internal/codegen/binding/ |
D | ComponentRequirement.java | 30 import com.google.auto.common.MoreTypes; 100 return MoreTypes.asTypeElement(type()); in typeElement() 212 MoreTypes.equivalence().wrap(checkNotNull(type)), in forDependency() 215 simpleVariableName(MoreTypes.asTypeElement(type))); in forDependency() 221 MoreTypes.equivalence().wrap(checkNotNull(type)), in forModule() 224 simpleVariableName(MoreTypes.asTypeElement(type))); in forModule() 230 MoreTypes.equivalence().wrap(key.type()), in forBoundInstance()
|
D | BindsTypeChecker.java | 22 import com.google.auto.common.MoreTypes; 71 return methodParameterType(MoreTypes.asDeclared(leftHandSide), "addAll"); in desiredAssignableType() 87 MoreElements.getLocalAndInheritedMethods(MoreTypes.asTypeElement(type), types, elements)) { in methodParameterTypes() 94 MoreTypes.asExecutable(types.asMemberOf(type, method)).getParameterTypes()); in methodParameterTypes()
|
D | BindingFactory.java | 20 import static com.google.auto.common.MoreTypes.asDeclared; 51 import com.google.auto.common.MoreTypes; 127 ExecutableType constructorType = MoreTypes.asExecutable(constructorElement.asType()); in injectionBinding() 129 MoreTypes.asDeclared(constructorElement.getEnclosingElement().asType()); in injectionBinding() 132 DeclaredType resolved = MoreTypes.asDeclared(resolvedType.get()); in injectionBinding() 139 constructorType = MoreTypes.asExecutable(types.asMemberOf(resolved, constructorElement)); in injectionBinding() 180 DeclaredType factoryType = MoreTypes.asDeclared(factory.asType()); in assistedFactoryBinding() 182 DeclaredType resolved = MoreTypes.asDeclared(resolvedType.get()); in assistedFactoryBinding() 196 MoreTypes.asExecutable(types.asMemberOf(factoryType, factoryMethod)); in assistedFactoryBinding() 264 MoreTypes.asExecutable( in setMethodBindingProperties() [all …]
|
/external/dagger2/java/dagger/internal/codegen/writing/ |
D | MembersInjectorProviderCreationExpression.java | 25 import com.google.auto.common.MoreTypes; 48 getOnlyElement(MoreTypes.asDeclared(binding.key().type()).getTypeArguments()); in creationExpression() 55 TypeElement injectedTypeElement = MoreTypes.asTypeElement(membersInjectedType); in creationExpression() 60 injectedTypeElement = MoreTypes.asTypeElement(injectedTypeElement.getSuperclass()); in creationExpression()
|
/external/dagger2/java/dagger/internal/codegen/validation/ |
D | DependencyRequestValidator.java | 21 import static com.google.auto.common.MoreTypes.asTypeElement; 30 import com.google.auto.common.MoreTypes; 144 if (MoreTypes.isType(keyType) && MoreTypes.isTypeOf(MembersInjector.class, keyType)) { in checkType() 145 DeclaredType membersInjectorType = MoreTypes.asDeclared(keyType); in checkType() 169 MoreTypes.asTypeElement(requestType).getSimpleName()), in checkNotProducer()
|
D | TypeHierarchyValidator.java | 19 import com.google.auto.common.MoreTypes; 43 queued.add(MoreTypes.equivalence().wrap(type)); in validateTypeHierarchy() 50 if (queued.add(MoreTypes.equivalence().wrap(superType))) { in validateTypeHierarchy()
|
D | ProducesMethodValidator.java | 25 import com.google.auto.common.MoreTypes; 128 if (MoreTypes.isType(type) && MoreTypes.isTypeOf(ListenableFuture.class, type)) { in unwrapListenableFuture() 129 DeclaredType declaredType = MoreTypes.asDeclared(type); in unwrapListenableFuture()
|
/external/dagger2/java/dagger/internal/codegen/langmodel/ |
D | DaggerTypes.java | 24 import com.google.auto.common.MoreTypes; 67 return Optional.ofNullable(MoreTypes.nonObjectSuperclass(types, elements, type).orNull()); in nonObjectSuperclass() 105 DeclaredType declaredType = MoreTypes.asDeclared(type); in unwrapTypeOrDefault() 136 List<? extends TypeMirror> typeArguments = MoreTypes.asDeclared(type).getTypeArguments(); in rewrapType() 186 return getDeclaredType(MoreTypes.asTypeElement(type)); in accessibleType() 224 return FUTURE_TYPES.stream().anyMatch(t -> MoreTypes.isTypeOf(t, type)); in isFutureType() 258 return MoreTypes.asExecutable(asMemberOf(MoreTypes.asDeclared(containerType), element));
|
/external/guice/core/src/com/google/inject/internal/ |
D | MoreTypes.java | 44 public class MoreTypes { class 48 private MoreTypes() {} in MoreTypes() method in MoreTypes 388 if (ownerType != null && !MoreTypes.isFullySpecified(ownerType)) { in isFullySpecified() 392 if (!MoreTypes.isFullySpecified(rawType)) { in isFullySpecified() 397 if (!MoreTypes.isFullySpecified(type)) { in isFullySpecified() 408 && MoreTypes.equals(this, (ParameterizedType) other); in equals() 464 return MoreTypes.isFullySpecified(componentType); in isFullySpecified() 469 return o instanceof GenericArrayType && MoreTypes.equals(this, (GenericArrayType) o); in equals() 525 return MoreTypes.isFullySpecified(upperBound) in isFullySpecified() 526 && (lowerBound == null || MoreTypes.isFullySpecified(lowerBound)); in isFullySpecified() [all …]
|
/external/guice/core/test/com/google/inject/util/ |
D | TypesTest.java | 26 import com.google.inject.internal.MoreTypes; 164 Assert.assertEquals("java.lang.String", MoreTypes.typeToString(String.class)); in testToString() 165 assertEquals("java.util.Set<java.lang.String>[][]", MoreTypes.typeToString(setStringArray)); in testToString() 168 MoreTypes.typeToString(mapStringInteger)); in testToString() 171 MoreTypes.typeToString(listSetStringArray)); in testToString() 172 assertEquals(innerFloatDouble.toString(), MoreTypes.typeToString(innerFloatDouble)); in testToString()
|
/external/dagger2/java/dagger/internal/codegen/componentgenerator/ |
D | MethodSignature.java | 21 import com.google.auto.common.MoreTypes; 45 MoreTypes.asExecutable(types.asMemberOf(componentType, componentMethod.methodElement())); in forComponentMethod() 54 return types.stream().map(MoreTypes.equivalence()::wrap).collect(toImmutableList()); in wrapInEquivalence()
|