/external/auto/value/src/test/java/com/google/auto/value/processor/ |
D | TypeEncoderTest.java | 60 private Types typeUtils; field in TypeEncoderTest 65 typeUtils = compilationRule.getTypes(); in setUp() 91 fakeProgram, elementUtils, typeUtils, fakePackage, baseWithoutContainedTypes()); in assertTypeImportsAndSpellings() 114 typeUtils.getPrimitiveType(TypeKind.INT), in testImportsForImplicitlyImportedTypes() 115 typeUtils.getPrimitiveType(TypeKind.BOOLEAN)); in testImportsForImplicitlyImportedTypes() 127 typeUtils.getPrimitiveType(TypeKind.INT), in testImportsForPlainTypes() 147 typeUtils.getPrimitiveType(TypeKind.INT), in testImportsForComplicatedTypes() 149 typeUtils.getDeclaredType( in testImportsForComplicatedTypes() 152 typeUtils.getDeclaredType( in testImportsForComplicatedTypes() 154 typeUtils.getWildcardType(typeMirrorOf(java.util.Timer.class), null), in testImportsForComplicatedTypes() [all …]
|
D | TypeVariablesTest.java | 44 private static Types typeUtils; field in TypeVariablesTest 49 typeUtils = compilationRule.getTypes(); in setUpClass() 64 TypeVariables.rewriteReturnTypes(elementUtils, typeUtils, sourceMethods, source1, target1); in noTypeParameters() 82 TypeVariables.rewriteReturnTypes(elementUtils, typeUtils, sourceMethods, source2, target2); in simpleTypeParameter() 88 assertThat(typeUtils.isAssignable(setFooParameter, originalGetFooReturn)).isFalse(); in simpleTypeParameter() 89 assertThat(typeUtils.isAssignable(setFooParameter, rewrittenGetFooReturn)).isTrue(); in simpleTypeParameter() 106 TypeVariables.rewriteReturnTypes(elementUtils, typeUtils, sourceMethods, source3, target3); in hairyTypeParameters() 112 assertThat(typeUtils.isAssignable(setFooParameter, originalGetFooReturn)).isFalse(); in hairyTypeParameters() 113 assertThat(typeUtils.isAssignable(setFooParameter, rewrittenGetFooReturn)).isTrue(); in hairyTypeParameters() 132 TypeVariables.rewriteReturnTypes(elementUtils, typeUtils, outerMethods, outer, inner); in nestedClasses() [all …]
|
D | TypeSimplifierTest.java | 51 private Types typeUtils; field in TypeSimplifierTest 56 typeUtils = compilationRule.getTypes(); in setUp() 105 assertThat(typeUtils.isSameType(objectMirror, cloneReturnTypeMirror)).isTrue(); in testQuirkyTypeMirrors() 137 TypeMirror listOfObjectMirror = typeUtils.getDeclaredType(list, objectMirror); in testTypeMirrorSet() 138 TypeMirror listOfOtherObjectMirror = typeUtils.getDeclaredType(list, otherObjectMirror); in testTypeMirrorSet() 140 assertThat(typeUtils.isSameType(listOfObjectMirror, listOfOtherObjectMirror)).isTrue(); in testTypeMirrorSet() 182 DeclaredType captureOne = (DeclaredType) typeUtils.capture(one.getReturnType()); in testTypeMirrorSetWildcardCapture() 184 DeclaredType captureTwo = (DeclaredType) typeUtils.capture(two.getReturnType()); in testTypeMirrorSetWildcardCapture()
|
/external/auto/common/src/main/java/com/google/auto/common/ |
D | Overrides.java | 69 private final Types typeUtils; field in Overrides.ExplicitOverrides 71 ExplicitOverrides(Types typeUtils) { in ExplicitOverrides() argument 72 this.typeUtils = typeUtils; in ExplicitOverrides() 127 if (!typeUtils.isSubtype( in overrides() 128 typeUtils.erasure(in.asType()), typeUtils.erasure(overriddenType.asType()))) { in overrides() 180 MoreTypes.asExecutable(typeUtils.asMemberOf(inType, overrider)); in isSubsignature() 182 MoreTypes.asExecutable(typeUtils.asMemberOf(inType, overridden)); in isSubsignature() 183 return typeUtils.isSubsignature(overriderExecutable, overriddenExecutable); in isSubsignature() 200 if (!typeUtils.isSameType(overriderParams.get(i), overriddenParams.get(i))) { in isSubsignature() 248 params.add(typeUtils.erasure(visit(param.asType()))); in erasedParameterTypes() [all …]
|
D | MoreElements.java | 343 TypeElement type, Types typeUtils, Elements elementUtils) { 344 return getLocalAndInheritedMethods(type, new ExplicitOverrides(typeUtils)); 377 Types typeUtils) { 378 return new ExplicitOverrides(typeUtils).overrides(overrider, overridden, type); 410 TypeElement type, Types typeUtils, Elements elementUtils) { 411 return getAllMethods(type, new ExplicitOverrides(typeUtils));
|
/external/auto/value/src/main/java/com/google/auto/value/processor/ |
D | TypeVariables.java | 83 Types typeUtils, in rewriteReturnTypes() argument 97 EclipseHack eclipseHack = new EclipseHack(elementUtils, typeUtils); in rewriteReturnTypes() 102 DeclaredType parallelSource = typeUtils.getDeclaredType(sourceType, targetTypeParameterMirrors); in rewriteReturnTypes() 138 Types typeUtils) { in canAssignStaticMethodResult() argument 156 SubstitutionVisitor substitutionVisitor = new SubstitutionVisitor(typeVariables, typeUtils); in canAssignStaticMethodResult() 167 return typeUtils.isAssignable(actualParameterType, substitutedParameterType); in canAssignStaticMethodResult() 176 private final Types typeUtils; field in TypeVariables.SubstitutionVisitor 180 Types typeUtils) { in SubstitutionVisitor() argument 182 this.typeUtils = typeUtils; in SubstitutionVisitor() 200 return typeUtils.getDeclaredType( in visitDeclared() [all …]
|
D | TypeSimplifier.java | 89 Types typeUtils, in TypeSimplifier() argument 97 Set<TypeMirror> topLevelTypes = topLevelTypes(typeUtils, typesPlusBase); in TypeSimplifier() 98 Set<TypeMirror> defined = nonPrivateDeclaredTypes(typeUtils, base); in TypeSimplifier() 99 this.imports = findImports(elementUtils, typeUtils, packageName, topLevelTypes, defined); in TypeSimplifier() 205 Types typeUtils, in findImports() argument 213 Set<String> ambiguous = ambiguousNames(typeUtils, typesInScope); in findImports() 215 TypeElement typeElement = (TypeElement) typeUtils.asElement(type); in findImports() 278 private static Set<TypeMirror> nonPrivateDeclaredTypes(Types typeUtils, TypeMirror type) { in nonPrivateDeclaredTypes() argument 285 ElementFilter.typesIn(typeUtils.asElement(type).getEnclosedElements()); in nonPrivateDeclaredTypes() 291 for (TypeMirror supertype : typeUtils.directSupertypes(type)) { in nonPrivateDeclaredTypes() [all …]
|
D | PropertyBuilderClassifier.java | 52 private final Types typeUtils; field in PropertyBuilderClassifier 61 Types typeUtils, in PropertyBuilderClassifier() argument 68 this.typeUtils = typeUtils; in PropertyBuilderClassifier() 280 && typeUtils.isAssignable( in makePropertyBuilder() 281 typeUtils.erasure(toBuilder.getReturnType()), in makePropertyBuilder() 282 typeUtils.erasure(barBuilderTypeMirror))) { in makePropertyBuilder() 335 && typeUtils.isSameType( in builderMaker() 336 typeUtils.erasure(method.getReturnType()), in builderMaker() 337 typeUtils.erasure(barBuilderTypeElement.asType()))) { in builderMaker() 388 return MoreElements.getLocalAndInheritedMethods(barBuilderTypeElement, typeUtils, elementUtils) in addAllPutAll() [all …]
|
D | EclipseHack.java | 48 private final Types typeUtils; field in EclipseHack 54 EclipseHack(Elements elementUtils, Types typeUtils) { in EclipseHack() argument 56 this.typeUtils = typeUtils; in EclipseHack() 124 TypeMirror methodMirror = typeUtils.asMemberOf(in, method); in methodReturnType() 151 TypeMirror methodMirror = typeUtils.asMemberOf(in, method); in methodReturnTypes() 176 TypeElement autoValueType = MoreElements.asType(typeUtils.asElement(in)); in noArgMethodsIn()
|
D | Optionalish.java | 98 TypeMirror getContainedType(Types typeUtils) { in getContainedType() argument 104 return getContainedPrimitiveType(typeUtils); in getContainedType() 120 private TypeMirror getContainedPrimitiveType(Types typeUtils) { in getContainedPrimitiveType() argument 124 return typeUtils.getPrimitiveType(typeKind); in getContainedPrimitiveType()
|
D | BuilderMethodClassifier.java | 63 private final Types typeUtils; field in BuilderMethodClassifier 90 this.typeUtils = processingEnv.getTypeUtils(); in BuilderMethodClassifier() 286 typeUtils, in classifyMethodNoArgs() 327 TypeMirror containedType = optional.getContainedType(typeUtils); in classifyGetter() 333 ? typeUtils.boxedClass(MoreTypes.asPrimitiveType(originalGetterType)).asType() in classifyGetter() 395 MoreTypes.asExecutable(typeUtils.asMemberOf(builderTypeMirror, method)); in classifyMethodOneArg() 442 typeUtils.asMemberOf(MoreTypes.asDeclared(builderType.asType()), setter)); in getSetterFunction() 447 if (typeUtils.isAssignable(parameterType, targetType) in getSetterFunction() 448 && typeUtils.isAssignable(targetType, parameterType)) { in getSetterFunction() 547 copyOfMethod, parameterType, targetType, typeUtils)) { in getConvertingSetterFunction() [all …]
|
D | TypeEncoder.java | 138 String text, Elements elementUtils, Types typeUtils, String pkg, TypeMirror baseType) { in decode() argument 139 TypeRewriter typeRewriter = new TypeRewriter(text, elementUtils, typeUtils, pkg, baseType); in decode() 400 private final Types typeUtils; field in TypeEncoder.TypeRewriter 405 String text, Elements elementUtils, Types typeUtils, String pkg, TypeMirror baseType) { in TypeRewriter() argument 410 this.typeUtils = typeUtils; in TypeRewriter() 420 new TypeSimplifier(elementUtils, typeUtils, packageName, referencedClasses, baseType); in rewrite()
|
D | AutoAnnotationProcessor.java | 103 private Types typeUtils; field in AutoAnnotationProcessor 108 typeUtils = processingEnv.getTypeUtils(); in process() 276 Element returnTypeElement = typeUtils.asElement(method.getReturnType()); in getAnnotationReturnType() 390 if (typeUtils.isAssignable(parameterType, memberType)) { in compatibleTypes() 405 ? typeUtils.boxedClass((PrimitiveType) arrayElementType).asType() in compatibleTypes() 410 typeUtils.getDeclaredType(javaUtilCollection, wrappedArrayElementType); in compatibleTypes() 411 return typeUtils.isAssignable(parameterType, collectionOfElement); in compatibleTypes() 424 typeUtils.getDeclaredType(javaUtilCollection, getTypeMirror(wrapper)); in wrapperTypesUsedInCollections() 426 if (typeUtils.isAssignable(parameter.asType(), collectionOfWrapper)) { in wrapperTypesUsedInCollections()
|
D | BuilderSpec.java | 204 Types typeUtils, Set<ExecutableElement> abstractMethods) { in toBuilderMethods() argument 213 if (builderTypeElement.equals(typeUtils.asElement(method.getReturnType()))) { in toBuilderMethods() 219 .map(t -> typeUtils.asElement(t).getSimpleName().toString()) in toBuilderMethods()
|
D | AutoValueProcessor.java | 219 toBuilderMethods = builder.get().toBuilderMethods(typeUtils(), abstractMethods); in processType() 482 TypeElement parentElement = (TypeElement) typeUtils().asElement(parentMirror); in ancestorIsAutoValue() 491 return typeUtils().isAssignable(type.asType(), getTypeMirror(Annotation.class)); in implementsAnnotation()
|
D | AutoValueOrOneOfProcessor.java | 120 final Types typeUtils() { in typeUtils() method in AutoValueOrOneOfProcessor 841 if (typeUtils().isAssignable(type.asType(), serializable)) { in getSerialVersionUID() 1065 || typeUtils() in annotationVisibleFrom()
|
D | AutoOneOfProcessor.java | 283 && typeUtils().isAssignable(type.asType(), javaIoSerializable.asType()); in defineVarsForType()
|
/external/desugar/java/com/google/devtools/common/options/processor/ |
D | OptionProcessor.java | 77 private Types typeUtils; field in OptionProcessor 91 typeUtils = processingEnv.getTypeUtils(); in init() 104 builder.put(int.class, typeUtils.getPrimitiveType(TypeKind.INT)); in init() 105 builder.put(double.class, typeUtils.getPrimitiveType(TypeKind.DOUBLE)); in init() 106 builder.put(boolean.class, typeUtils.getPrimitiveType(TypeKind.BOOLEAN)); in init() 107 builder.put(long.class, typeUtils.getPrimitiveType(TypeKind.LONG)); in init() 129 converterMapBuilder.put(typeUtils.boxedClass(primitiveType).asType(), entry.getValue()); in init() 143 if (!typeUtils.isAssignable(thisOptionClass, optionsBase)) { in checkInOptionBase() 192 if (!typeUtils.isAssignable(optionDeclaredType.asElement().asType(), listType)) { in getAcceptedConverterReturnTypes() 290 && typeUtils.isSameType( in checkProvidedConverter() [all …]
|
D | ProcessorUtils.java | 34 Types typeUtils, in getAnnotation() argument 47 if (typeUtils.isSameType(annot.getAnnotationType(), annotationMirror)) { in getAnnotation()
|
/external/auto/value/src/test/java/com/google/auto/value/extension/serializable/serializer/utils/ |
D | CompilationAbstractTest.java | 48 protected Types typeUtils; field in CompilationAbstractTest 53 typeUtils = compilationRule.getTypes(); in setUp() 56 when(mockProcessingEnvironment.getTypeUtils()).thenReturn(typeUtils); in setUp() 70 return typeUtils.getDeclaredType(typeElementOf(enclosingClass), typeMirrorOf(containedClass)); in declaredTypeOf() 74 return typeUtils.getDeclaredType( in declaredTypeOf()
|
/external/auto/common/src/test/java/com/google/auto/common/ |
D | OverridesTest.java | 92 test.typeUtils = test.compilation.getTypes(); in initUtils() 99 test.typeUtils = test.ecjCompilation.types; in initUtils() 108 private Types typeUtils; field in OverridesTest 123 explicitOverrides = new Overrides.ExplicitOverrides(typeUtils); in initializeTestElements() 456 ImmutableList.<TypeMirror>of(typeUtils.erasure(range.asType())); in methodParams_RecursiveBound() 504 assertThat(typeUtils.isSameType(actual.get(i), expected.get(i))).isTrue(); in assertTypeListsEqual()
|
/external/dagger2/java/dagger/hilt/android/processor/internal/viewmodel/ |
D | ViewModelMetadata.kt | 49 val types = processingEnv.typeUtils in <lambda>()
|
/external/auto/value/src/test/java/com/google/auto/value/extension/serializable/serializer/impl/ |
D | ImmutableListSerializerExtensionTest.java | 90 assertThat(typeUtils.isSameType(actualTypeMirror, typeMirror)).isTrue(); in proxyFieldType()
|
D | ImmutableMapSerializerExtensionTest.java | 92 assertThat(typeUtils.isSameType(actualTypeMirror, typeMirror)).isTrue(); in proxyFieldType()
|
/external/turbine/javatests/com/google/turbine/processing/ |
D | AbstractTurbineTypesTest.java | 428 Types typeUtils, Element element, Multimap<String, TypeMirror> types) { in getTypes() argument 511 receiverType = typeUtils.getNoType(TypeKind.NONE); in getTypes()
|