Home
last modified time | relevance | path

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

12

/external/auto/factory/src/main/java/com/google/auto/factory/processor/
DTypeVariables.java61 ImmutableSet.Builder<TypeVariable> typeVariables = ImmutableSet.builder(); in visitDeclared() local
63 typeVariables.addAll(typeArgument.accept(this, visited)); in visitDeclared()
65 return typeVariables.build(); in visitDeclared()
74 ImmutableSet.Builder<TypeVariable> typeVariables = ImmutableSet.builder(); in visitTypeVariable() local
75 typeVariables.add(t); in visitTypeVariable()
76 typeVariables.addAll(t.getLowerBound().accept(this, visited)); in visitTypeVariable()
77 typeVariables.addAll(t.getUpperBound().accept(this, visited)); in visitTypeVariable()
78 return typeVariables.build(); in visitTypeVariable()
84 ImmutableSet.Builder<TypeVariable> typeVariables = ImmutableSet.builder(); in visitUnion() local
86 typeVariables.addAll(unionType.accept(this, visited)); in visitUnion()
[all …]
DFactoryWriter.java308 ImmutableSet.Builder<TypeVariableName> typeVariables = ImmutableSet.builder(); in getFactoryTypeVariables() local
310 typeVariables.addAll(getReferencedTypeParameterNames(provider.key().type().get())); in getFactoryTypeVariables()
312 return typeVariables.build(); in getFactoryTypeVariables()
318 ImmutableSet.Builder<TypeVariableName> typeVariables = ImmutableSet.builder(); in getMethodTypeVariables() local
319 typeVariables.addAll(getReferencedTypeParameterNames(methodDescriptor.returnType())); in getMethodTypeVariables()
321 typeVariables.addAll(getReferencedTypeParameterNames(parameter.type().get())); in getMethodTypeVariables()
323 return Sets.difference(typeVariables.build(), factoryTypeVariables).immutableCopy(); in getMethodTypeVariables()
/external/doclava/src/com/google/doclava/
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()
DTypeInfo.java300 public void makeHDF(Data data, String base, boolean isLastVararg, HashSet<String> typeVariables) { in makeHDF() argument
301 makeHDFRecursive(data, base, false, isLastVararg, typeVariables); in makeHDF()
304 public void makeQualifiedHDF(Data data, String base, HashSet<String> typeVariables) { in makeQualifiedHDF() argument
305 makeHDFRecursive(data, base, true, false, typeVariables); in makeQualifiedHDF()
350 HashSet<String> typeVariables) { in makeHDF() argument
353 type.makeHDFRecursive(data, base + "." + i++, qualified, false, typeVariables); in makeHDF()
398 public static HashSet<String> typeVariables(ArrayList<TypeInfo> params) { in typeVariables() method in TypeInfo
399 return typeVariables(params, new HashSet<String>()); in typeVariables()
402 static HashSet<String> typeVariables(ArrayList<TypeInfo> params, HashSet<String> result) { in typeVariables() method in TypeInfo
DMethodInfo.java395 result.append(param.type().fullNameNoDimension(typeVariables())).append("..."); in getHashableName()
397 result.append(param.type().fullName(typeVariables())); in getHashableName()
617 data, base + ".returnType", false, typeVariables()); in makeHDF()
640 new ParameterInfo[mParameters.size()]), isVarArgs(), typeVariables(), typeMapping); in makeHDF()
674 public HashSet<String> typeVariables() { in typeVariables() method in MethodInfo
675 HashSet<String> result = TypeInfo.typeVariables(mTypeParameters); in typeVariables()
680 TypeInfo.typeVariables(types, result); in typeVariables()
DFieldInfo.java95 public HashSet<String> typeVariables() { in typeVariables() method in FieldInfo
101 TypeInfo.typeVariables(types, result); in typeVariables()
DStubs.java895 stream.print(method.returnType().fullName(method.typeVariables()) + " "); in writeMethod()
1941 apiWriter.print(fi.type().fullName(fi.typeVariables()));
2117 String fullTypeName = type.fullName(method.typeVariables());
2122 fullTypeName = type.fullNameNoDimension(method.typeVariables()) + "...";
DInfoBuilder.java889 ArrayList<TypeInfo> typeVariables = new ArrayList<TypeInfo>(); in buildTypeVariables() local
948 typeVariables.add(type); in buildTypeVariables()
951 return typeVariables; in buildTypeVariables()
/external/auto/value/src/main/java/com/google/auto/value/processor/
DTypeVariables.java150 Map<Equivalence.Wrapper<TypeVariable>, TypeMirror> typeVariables = new LinkedHashMap<>(); in canAssignStaticMethodResult() local
153 typeVariables.put(MoreTypes.equivalence().wrap(v), targetTypeArguments.get(i)); in canAssignStaticMethodResult()
156 SubstitutionVisitor substitutionVisitor = new SubstitutionVisitor(typeVariables, typeUtils); in canAssignStaticMethodResult()
175 private final Map<Equivalence.Wrapper<TypeVariable>, TypeMirror> typeVariables; field in TypeVariables.SubstitutionVisitor
179 Map<Equivalence.Wrapper<TypeVariable>, TypeMirror> typeVariables, in SubstitutionVisitor() argument
181 this.typeVariables = ImmutableMap.copyOf(typeVariables); in SubstitutionVisitor()
190 TypeMirror substituted = typeVariables.get(MoreTypes.equivalence().wrap(t)); in visitTypeVariable()
/external/javapoet/src/main/java/com/squareup/javapoet/
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 …]
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 …]
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()
DWildcardTypeName.java106 Map<TypeParameterElement, TypeVariableName> typeVariables) { in get() argument
113 return supertypeOf(TypeName.get(superBound, typeVariables)); in get()
116 return subtypeOf(TypeName.get(extendsBound, typeVariables)); in get()
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()
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()
DArrayTypeName.java97 ArrayType mirror, Map<TypeParameterElement, TypeVariableName> typeVariables) { in get() argument
98 return new ArrayTypeName(get(mirror.getComponentType(), typeVariables)); in get()
/external/guice/core/test/com/google/inject/
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()
/external/javapoet/src/test/java/com/squareup/javapoet/
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()
DMethodSpecTest.java419 builder.typeVariables.remove(1); in modifyTypeVariables()
420 assertThat(builder.build().typeVariables).containsExactly(t); in modifyTypeVariables()
/external/dagger2/java/dagger/internal/codegen/writing/
DHjarSourceFileGenerator.java68 .addTypeVariables(completeType.typeVariables) in skeletonType()
108 .addTypeVariables(completeMethod.typeVariables) in skeletonMethod()
DMemberSelect.java126 ImmutableList<TypeVariableName> typeVariables = in staticFactoryCreation() local
128 if (!typeVariables.isEmpty()) { in staticFactoryCreation()
DAssistedFactoryBindingExpression.java95 .addTypeVariables(factoryOverride.typeVariables) in anonymousfactoryImpl()
/external/mockito/src/test/java/org/mockito/internal/util/reflection/
DGenericMetadataSupportTest.java202 …private Type typeVariableValue(Map<TypeVariable<?>, Type> typeVariables, String typeVariableName) { in typeVariableValue() argument
203 for (Map.Entry<TypeVariable<?>, Type> typeVariableTypeEntry : typeVariables.entrySet()) { in typeVariableValue()
209 fail("'" + typeVariableName + "' was not found in " + typeVariables); in typeVariableValue()
/external/turbine/java/com/google/turbine/binder/bytecode/
DBytecodeBoundClass.java588 final Map<String, TyVarSymbol> typeVariables) { in makeScope() argument
592 TyVarSymbol result = typeVariables.get(input); in makeScope()
/external/doclava/src/com/google/doclava/apicheck/
DApiFile.java348 typeVariableNames = TypeInfo.typeVariables(typeParameters); in parseMethod()
510 HashSet<String> variables = cl.typeVariables(); in parseTypeParameterList()

12