Home
last modified time | relevance | path

Searched refs:typeVariables (Results 1 – 25 of 167) sorted by relevance

1234567

/aosp_15_r20/external/auto/factory/src/main/java/com/google/auto/factory/processor/
H A DTypeVariables.java60 ImmutableSet.Builder<TypeVariable> typeVariables = ImmutableSet.builder(); in visitDeclared() local
62 typeVariables.addAll(typeArgument.accept(this, visited)); in visitDeclared()
64 return typeVariables.build(); in visitDeclared()
72 ImmutableSet.Builder<TypeVariable> typeVariables = ImmutableSet.builder(); in visitTypeVariable() local
73 typeVariables.add(t); in visitTypeVariable()
74 typeVariables.addAll(t.getLowerBound().accept(this, visited)); in visitTypeVariable()
75 typeVariables.addAll(t.getUpperBound().accept(this, visited)); in visitTypeVariable()
76 return typeVariables.build(); in visitTypeVariable()
81 ImmutableSet.Builder<TypeVariable> typeVariables = ImmutableSet.builder(); in visitUnion() local
83 typeVariables.addAll(unionType.accept(this, visited)); in visitUnion()
[all …]
H A DFactoryWriter.java312 ImmutableSet.Builder<TypeVariableName> typeVariables = ImmutableSet.builder(); in getFactoryTypeVariables() local
314 typeVariables.addAll(getReferencedTypeParameterNames(provider.key().type().get())); in getFactoryTypeVariables()
320 typeVariables.addAll(typeVariablesFrom(descriptor.extendingType())); in getFactoryTypeVariables()
322 typeVariables.addAll(typeVariablesFrom(implementing)); in getFactoryTypeVariables()
324 return typeVariables.build(); in getFactoryTypeVariables()
341 ImmutableSet.Builder<TypeVariableName> typeVariables = ImmutableSet.builder(); in getMethodTypeVariables() local
342 typeVariables.addAll(getReferencedTypeParameterNames(methodDescriptor.returnType())); in getMethodTypeVariables()
344 typeVariables.addAll(getReferencedTypeParameterNames(parameter.type().get())); in getMethodTypeVariables()
346 return Sets.difference(typeVariables.build(), factoryTypeVariables).immutableCopy(); in getMethodTypeVariables()
/aosp_15_r20/external/kotlinpoet/kotlinpoet/src/commonMain/kotlin/com/squareup/kotlinpoet/
H A DTypeAliasSpec.kt33 public val typeVariables: List<TypeVariableName> = builder.typeVariables.toImmutableList() constant
42 codeWriter.emitTypeVariables(typeVariables) in emit()
62 builder.typeVariables += typeVariables in toBuilder()
74 public val typeVariables: MutableSet<TypeVariableName> = mutableSetOf() constant in com.squareup.kotlinpoet.Builder
91 public fun addTypeVariables(typeVariables: Iterable<TypeVariableName>): Builder = apply { in <lambda>()
92 this.typeVariables += typeVariables in <lambda>()
96 typeVariables += typeVariable in addTypeVariable()
H A DPropertySpec.kt44 public val typeVariables: List<TypeVariableName> = builder.typeVariables.toImmutableList() constant
53 typeVariables.none { it.isReified } || in <lambda>()
83 if (typeVariables.isNotEmpty()) { in emit()
84 codeWriter.emitTypeVariables(typeVariables) in emit()
107 codeWriter.emitWhereBlock(typeVariables) in emit()
160 builder.typeVariables += typeVariables in toBuilder()
189 public val typeVariables: MutableList<TypeVariableName> = mutableListOf() constant in com.squareup.kotlinpoet.Builder
211 public fun addTypeVariables(typeVariables: Iterable<TypeVariableName>): Builder = apply { in <lambda>()
212 this.typeVariables += typeVariables in <lambda>()
216 typeVariables += typeVariable in addTypeVariable()
H A DFunSpec.kt52 public val typeVariables: List<TypeVariableName> = builder.typeVariables.toImmutableList() in <lambda>() constant
80 require(INLINE in modifiers || typeVariables.none { it.isReified }) { in <lambda>()
106 if (typeVariables.isNotEmpty()) { in <lambda>()
107 codeWriter.emitTypeVariables(typeVariables) in <lambda>()
111 codeWriter.emitWhereBlock(typeVariables) in <lambda>()
291 builder.typeVariables += typeVariables in <lambda>()
321 public val typeVariables: MutableList<TypeVariableName> = mutableListOf() in <lambda>() constant in com.squareup.kotlinpoet.Builder
357 public fun addTypeVariables(typeVariables: Iterable<TypeVariableName>): Builder = apply { in <lambda>()
358 this.typeVariables += typeVariables in <lambda>()
362 typeVariables += typeVariable in <lambda>()
[all …]
H A DTypeSpec.kt58 public val typeVariables: List<TypeVariableName> = builder.typeVariables.toImmutableList() in <lambda>() constant
93 builder.typeVariables += typeVariables in <lambda>()
180 codeWriter.emitTypeVariables(typeVariables) in <lambda>()
243 codeWriter.emitWhereBlock(typeVariables) in <lambda>()
505 public val typeVariables: MutableList<TypeVariableName> = mutableListOf() in <lambda>() constant
524 public fun addTypeVariables(typeVariables: Iterable<TypeVariableName>): Builder = apply { in <lambda>()
525 this.typeVariables += typeVariables in <lambda>()
529 typeVariables += typeVariable in <lambda>()
796 check(!(isAnonymousClass && typeVariables.isNotEmpty())) { in <lambda>()
H A DTypeName.kt135 typeVariables: Map<TypeParameterElement, TypeVariableName>, in get()
169 typeArgumentNames += get(typeArgument, typeVariables) in get()
183 return ARRAY.parameterizedBy(get(t.componentType, typeVariables)) in get()
190 return TypeVariableName.get(t, typeVariables.toMutableMap()) in get()
194 return WildcardTypeName.get(t, typeVariables) in get()
H A DCodeWriter.kt194 fun emitTypeVariables(typeVariables: List<TypeVariableName>) { in emitTypeVariables()
195 if (typeVariables.isEmpty()) return in emitTypeVariables()
198 typeVariables.forEachIndexed { index, typeVariable -> in emitTypeVariables()
218 fun emitWhereBlock(typeVariables: List<TypeVariableName>) { in emitWhereBlock()
219 if (typeVariables.isEmpty()) return in emitWhereBlock()
222 for (typeVariable in typeVariables) { in emitWhereBlock()
/aosp_15_r20/external/doclava/src/com/google/doclava/
H A DParameterInfo.java70 public void makeHDF(Data data, String base, boolean isLastVararg, HashSet<String> typeVariables) { in makeHDF() argument
71 makeHDF(data, base, isLastVararg, typeVariables, Collections.<String, TypeInfo>emptyMap()); in makeHDF()
74 public void makeHDF(Data data, String base, boolean isLastVararg, HashSet<String> typeVariables, in makeHDF() argument
78 data, base + ".type", isLastVararg, typeVariables); in makeHDF()
82 HashSet<String> typeVariables) { in makeHDF() argument
83 makeHDF(data, base, params, isVararg, typeVariables, Collections.<String, TypeInfo>emptyMap()); in makeHDF()
87 HashSet<String> typeVariables, Map<String, TypeInfo> typeMapping) { in makeHDF() argument
90 data, base + "." + i, isVararg && (i == params.length - 1), typeVariables, typeMapping); in makeHDF()
H A DTypeInfo.java318 public void makeHDF(Data data, String base, boolean isLastVararg, HashSet<String> typeVariables) { in makeHDF() argument
319 makeHDFRecursive(data, base, false, isLastVararg, typeVariables); in makeHDF()
322 public void makeQualifiedHDF(Data data, String base, HashSet<String> typeVariables) { in makeQualifiedHDF() argument
323 makeHDFRecursive(data, base, true, false, typeVariables); in makeQualifiedHDF()
369 HashSet<String> typeVariables) { in makeHDF() argument
372 type.makeHDFRecursive(data, base + "." + i++, qualified, false, typeVariables); in makeHDF()
417 public static HashSet<String> typeVariables(ArrayList<TypeInfo> params) { in typeVariables() method in TypeInfo
418 return typeVariables(params, new HashSet<String>()); in typeVariables()
421 static HashSet<String> typeVariables(ArrayList<TypeInfo> params, HashSet<String> result) { in typeVariables() method in TypeInfo
/aosp_15_r20/external/javapoet/src/main/java/com/squareup/javapoet/
H A DMethodSpec.java50 public final List<TypeVariableName> typeVariables; field in MethodSpec
69 this.typeVariables = Util.immutableList(builder.typeVariables); in MethodSpec()
89 if (!typeVariables.isEmpty()) { in emit()
90 codeWriter.emitTypeVariables(typeVariables); in emit()
140 codeWriter.popTypeVariables(typeVariables); in emit()
284 builder.typeVariables.addAll(typeVariables); in toBuilder()
304 public final List<TypeVariableName> typeVariables = new ArrayList<>(); field in MethodSpec.Builder
368 public Builder addTypeVariables(Iterable<TypeVariableName> typeVariables) { in addTypeVariables() argument
369 checkArgument(typeVariables != null, "typeVariables == null"); in addTypeVariables()
370 for (TypeVariableName typeVariable : typeVariables) { in addTypeVariables()
[all …]
H A DTypeSpec.java55 public final List<TypeVariableName> typeVariables; field in TypeSpec
75 this.typeVariables = Util.immutableList(builder.typeVariables); in TypeSpec()
109 this.typeVariables = Collections.emptyList(); in TypeSpec()
172 builder.typeVariables.addAll(typeVariables); in toBuilder()
224 codeWriter.emitTypeVariables(typeVariables); in emit()
335 codeWriter.popTypeVariables(typeVariables); in emit()
422 public final List<TypeVariableName> typeVariables = new ArrayList<>(); field in TypeSpec.Builder
475 public Builder addTypeVariables(Iterable<TypeVariableName> typeVariables) { in addTypeVariables() argument
476 checkArgument(typeVariables != null, "typeVariables == null"); in addTypeVariables()
477 for (TypeVariableName typeVariable : typeVariables) { in addTypeVariables()
[all …]
H A DCodeWriter.java193 public void emitTypeVariables(List<TypeVariableName> typeVariables) throws IOException { in emitTypeVariables() argument
194 if (typeVariables.isEmpty()) return; in emitTypeVariables()
196 typeVariables.forEach(typeVariable -> currentTypeVariables.add(typeVariable.name)); in emitTypeVariables()
200 for (TypeVariableName typeVariable : typeVariables) { in emitTypeVariables()
214 public void popTypeVariables(List<TypeVariableName> typeVariables) throws IOException { in popTypeVariables() argument
215 typeVariables.forEach(typeVariable -> currentTypeVariables.remove(typeVariable.name)); in popTypeVariables()
H A DTypeVariableName.java116 TypeVariable mirror, Map<TypeParameterElement, TypeVariableName> typeVariables) { in get() argument
118 TypeVariableName typeVariableName = typeVariables.get(element); in get()
125 typeVariables.put(element, typeVariableName); in get()
127 bounds.add(TypeName.get(typeMirror, typeVariables)); in get()
H A DTypeName.java247 final Map<TypeParameterElement, TypeVariableName> typeVariables) { in get() argument
286 typeArgumentNames.add(get(mirror, typeVariables)); in get()
299 return ArrayTypeName.get(t, typeVariables); in get()
303 return TypeVariableName.get(t, typeVariables); in get()
307 return WildcardTypeName.get(t, typeVariables); in get()
/aosp_15_r20/external/aws-sdk-java-v2/codegen/src/main/java/software/amazon/awssdk/codegen/poet/
H A DPoetUtils.java86 …c ParameterizedTypeName createParameterizedTypeName(ClassName className, String... typeVariables) { in createParameterizedTypeName() argument
87 …TypeName[] typeParameters = Arrays.stream(typeVariables).map(TypeVariableName::get).toArray(TypeNa… in createParameterizedTypeName()
91 …static ParameterizedTypeName createParameterizedTypeName(Class<?> clazz, String... typeVariables) { in createParameterizedTypeName() argument
92 return createParameterizedTypeName(ClassName.get(clazz), typeVariables); in createParameterizedTypeName()
96 String... typeVariables) { in createBoundedTypeVariableName() argument
97 …return TypeVariableName.get(parameterName, createParameterizedTypeName(upperBound, typeVariables)); in createBoundedTypeVariableName()
/aosp_15_r20/external/kotlinpoet/kotlinpoet/src/commonTest/kotlin/com/squareup/kotlinpoet/
H A DAbstractTypesTest.kt79 val typeVariables = getElement(Parameterized::class.java).typeParameters in getTypeVariableTypeMirror() constant
86 assertThat(typeVariables[0].asType().asTypeName()) in getTypeVariableTypeMirror()
88 assertThat(typeVariables[1].asType().asTypeName()) in getTypeVariableTypeMirror()
90 assertThat(typeVariables[2].asType().asTypeName()) in getTypeVariableTypeMirror()
92 assertThat(typeVariables[3].asType().asTypeName()) in getTypeVariableTypeMirror()
94 assertThat(typeVariables[4].asType().asTypeName()) in getTypeVariableTypeMirror()
96 assertThat(typeVariables[5].asType().asTypeName()) in getTypeVariableTypeMirror()
98 assertThat((typeVariables[4].asType().asTypeName() as TypeVariableName).bounds) in getTypeVariableTypeMirror()
/aosp_15_r20/external/guice/core/test/com/google/inject/
H A DTypeLiteralTest.java156 TypeVariable<Class<HasTypeParameters>>[] typeVariables = in testTypeVariableWithNoBound() local
159 TypeLiteral<?> aTl = TypeLiteral.get(typeVariables[0]); in testTypeVariableWithNoBound()
171 TypeVariable<Class<HasTypeParameters>>[] typeVariables = in testTypeVariablesWithSingleBound() local
174 TypeLiteral<?> cTl = TypeLiteral.get(typeVariables[2]); in testTypeVariablesWithSingleBound()
186 TypeVariable<Class<HasTypeParameters>>[] typeVariables = in testTypeVariableWithMultipleBounds() local
189 TypeLiteral<?> bTl = TypeLiteral.get(typeVariables[1]); in testTypeVariableWithMultipleBounds()
196 ImmutableList.<Type>of(Types.listOf(typeVariables[0]), Runnable.class), in testTypeVariableWithMultipleBounds()
/aosp_15_r20/external/javapoet/src/test/java/com/squareup/javapoet/
H A DAbstractTypesTest.java123 List<? extends TypeParameterElement> typeVariables = in getTypeVariableTypeMirror() local
131 assertThat(TypeName.get(typeVariables.get(0).asType())) in getTypeVariableTypeMirror()
133 assertThat(TypeName.get(typeVariables.get(1).asType())) in getTypeVariableTypeMirror()
135 assertThat(TypeName.get(typeVariables.get(2).asType())) in getTypeVariableTypeMirror()
137 assertThat(TypeName.get(typeVariables.get(3).asType())) in getTypeVariableTypeMirror()
139 assertThat(TypeName.get(typeVariables.get(4).asType())) in getTypeVariableTypeMirror()
141 assertThat(TypeName.get(typeVariables.get(5).asType())) in getTypeVariableTypeMirror()
143 assertThat(((TypeVariableName) TypeName.get(typeVariables.get(4).asType())).bounds) in getTypeVariableTypeMirror()
/aosp_15_r20/external/moshi/moshi-kotlin-codegen/src/main/java/com/squareup/moshi/kotlin/codegen/api/
H A DAdapterGenerator.kt108 private val typeVariables = target.typeVariables in <lambda>() constant in com.squareup.moshi.kotlin.codegen.api.AdapterGenerator
109 private val typeVariableResolver = typeVariables.toTypeVariableResolver() in <lambda>()
231 if (typeVariables.isNotEmpty()) { in <lambda>()
232 …result.addTypeVariables(typeVariables.map { it.stripTypeVarVariance(typeVariableResolver) as TypeV… in <lambda>()
238 .beginControlFlow("require(types.size == %L)", typeVariables.size) in <lambda>()
242 typeVariables.size, in <lambda>()
244 typeVariables.joinToString(", ") { it.name }, in <lambda>()
264 val index = typeVariables.indexOfFirst { it.name == typeVariable.name } in <lambda>()
295 if (typeVariables.isNotEmpty()) { in <lambda>()
/aosp_15_r20/out/soong/.intermediates/external/javapoet/javapoet/linux_glibc_common/local-javac-header/
Djavapoet.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/squareup/ com/ ...
/aosp_15_r20/out/soong/.intermediates/frameworks/base/packages/SettingsLib/search/SettingsLib-annotation-processor/linux_glibc_common/withres/
DSettingsLib-annotation-processor.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/services/ META- ...
/aosp_15_r20/out/soong/.intermediates/external/javapoet/javapoet/linux_glibc_common/javac/
Djavapoet.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/squareup/ com/ ...
/aosp_15_r20/packages/apps/TV/libs/m2/
Djavapoet-1.11.1.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/squareup/ com/ ...
/aosp_15_r20/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DClassLoaderReflectionTest.java86 TypeVariable<? extends Class<?>>[] typeVariables = cClass.getTypeParameters(); in testTypeParameters() local
87 assertEquals(2, typeVariables.length); in testTypeParameters()
88 assertTypeVariable(typeVariables[0], "K", String.class); in testTypeParameters()
89 assertTypeVariable(typeVariables[1], "V", aClass); in testTypeParameters()

1234567