Home
last modified time | relevance | path

Searched refs:TypeVariableName (Results 1 – 24 of 24) sorted by relevance

/external/javapoet/src/main/java/com/squareup/javapoet/
DTypeVariableName.java34 public final class TypeVariableName extends TypeName { class
38 private TypeVariableName(String name, List<TypeName> bounds) { in TypeVariableName() method in TypeVariableName
42 private TypeVariableName(String name, List<TypeName> bounds, List<AnnotationSpec> annotations) { in TypeVariableName() method in TypeVariableName
52 @Override public TypeVariableName annotated(List<AnnotationSpec> annotations) { in annotated()
53 return new TypeVariableName(name, bounds, annotations); in annotated()
57 return new TypeVariableName(name, bounds); in withoutAnnotations()
60 public TypeVariableName withBounds(Type... bounds) { in withBounds()
64 public TypeVariableName withBounds(TypeName... bounds) { in withBounds()
68 public TypeVariableName withBounds(List<? extends TypeName> bounds) { in withBounds()
72 return new TypeVariableName(name, newBounds, annotations); in withBounds()
[all …]
DTypeName.java247 final Map<TypeParameterElement, TypeVariableName> typeVariables) { in get()
303 return TypeVariableName.get(t, typeVariables); in get()
326 static TypeName get(Type type, Map<Type, TypeVariableName> map) {
348 return TypeVariableName.get((TypeVariable<?>) type, map);
363 static List<TypeName> list(Type[] types, Map<Type, TypeVariableName> map) {
DMethodSpec.java50 public final List<TypeVariableName> typeVariables;
216 methodBuilder.addTypeVariable(TypeVariableName.get(var)); in overriding()
285 private List<TypeVariableName> typeVariables = new ArrayList<>();
347 public Builder addTypeVariables(Iterable<TypeVariableName> typeVariables) { in addTypeVariables()
349 for (TypeVariableName typeVariable : typeVariables) { in addTypeVariables()
355 public Builder addTypeVariable(TypeVariableName typeVariable) { in addTypeVariable()
DArrayTypeName.java97 ArrayType mirror, Map<TypeParameterElement, TypeVariableName> typeVariables) { in get()
106 static ArrayTypeName get(GenericArrayType type, Map<Type, TypeVariableName> map) { in get()
DWildcardTypeName.java106 Map<TypeParameterElement, TypeVariableName> typeVariables) { in get()
124 static TypeName get(WildcardType wildcardName, Map<Type, TypeVariableName> map) { in get()
DTypeSpec.java47 public final List<TypeVariableName> typeVariables;
400 private final List<TypeVariableName> typeVariables = new ArrayList<>();
460 public Builder addTypeVariables(Iterable<TypeVariableName> typeVariables) { in addTypeVariables()
463 for (TypeVariableName typeVariable : typeVariables) { in addTypeVariables()
469 public Builder addTypeVariable(TypeVariableName typeVariable) { in addTypeVariable()
DCodeWriter.java187 public void emitTypeVariables(List<TypeVariableName> typeVariables) throws IOException { in emitTypeVariables()
192 for (TypeVariableName typeVariable : typeVariables) { in emitTypeVariables()
DParameterizedTypeName.java128 static ParameterizedTypeName get(ParameterizedType type, Map<Type, TypeVariableName> map) { in get()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/
DTypeVariableName.java32 public final class TypeVariableName implements TypeName { class
36 TypeVariableName(CharSequence name, Iterable<? extends TypeName> extendsBounds) { in TypeVariableName() method in TypeVariableName
76 if (obj instanceof TypeVariableName) { in equals()
77 TypeVariableName that = (TypeVariableName) obj; in equals()
90 static TypeVariableName named(CharSequence name) { in named()
91 return new TypeVariableName(name, ImmutableList.<TypeName>of()); in named()
94 public static TypeVariableName fromTypeVariable(TypeVariable variable) { in fromTypeVariable()
103 public static TypeVariableName fromTypeParameterElement(TypeParameterElement element) { in fromTypeParameterElement()
113 return new TypeVariableName(element.getSimpleName(), bounds); in fromTypeParameterElement()
DClassWriter.java39 private final List<TypeVariableName> typeParameters;
76 public void addTypeParameter(TypeVariableName typeVariableName) { in addTypeParameter()
80 public void addTypeParameters(Iterable<TypeVariableName> typeVariableNames) { in addTypeParameters()
84 public List<TypeVariableName> typeParameters() { in typeParameters()
DMethodWriter.java36 private final List<TypeVariableName> typeParameters;
55 public void addTypeParameter(TypeVariableName typeVariableName) { in addTypeParameter()
59 public void addTypeParameters(Iterable<TypeVariableName> typeVariableNames) { in addTypeParameters()
DInterfaceWriter.java29 private final List<TypeVariableName> typeVariables;
35 public void addTypeVariable(TypeVariableName typeVariable) { in addTypeVariable()
DTypeNames.java60 return TypeVariableName.fromTypeVariable(t); in forTypeMirror()
/external/javapoet/src/test/java/com/squareup/javapoet/
DAbstractTypesTest.java132 .isEqualTo(TypeVariableName.get("Simple")); in getTypeVariableTypeMirror()
134 .isEqualTo(TypeVariableName.get("ExtendsClass", number)); in getTypeVariableTypeMirror()
136 .isEqualTo(TypeVariableName.get("ExtendsInterface", runnable)); in getTypeVariableTypeMirror()
138 .isEqualTo(TypeVariableName.get("ExtendsTypeVariable", TypeVariableName.get("Simple"))); in getTypeVariableTypeMirror()
140 .isEqualTo(TypeVariableName.get("Intersection", number, runnable)); in getTypeVariableTypeMirror()
142 .isEqualTo(TypeVariableName.get("IntersectionOfInterfaces", runnable, serializable)); in getTypeVariableTypeMirror()
143 assertThat(((TypeVariableName) TypeName.get(typeVariables.get(4).asType())).bounds) in getTypeVariableTypeMirror()
156 TypeVariableName typeVariableName = (TypeVariableName) typeName.typeArguments.get(0); in getTypeVariableTypeMirrorRecursive()
256 TypeVariableName type = TypeVariableName.get("T", CharSequence.class); in typeVariable()
DTypeNameTest.java146 assertEqualsHashCodeAndToString(TypeVariableName.get(Object.class), in equalsAndHashCodeTypeVariableName()
147 TypeVariableName.get(Object.class)); in equalsAndHashCodeTypeVariableName()
148 TypeVariableName typeVar1 = TypeVariableName.get("T", Comparator.class, Serializable.class); in equalsAndHashCodeTypeVariableName()
149 TypeVariableName typeVar2 = TypeVariableName.get("T", Comparator.class, Serializable.class); in equalsAndHashCodeTypeVariableName()
DTypeSpecTest.java546 TypeVariableName t = TypeVariableName.get("T"); in typeVariables()
547 TypeVariableName p = TypeVariableName.get("P", Number.class); in typeVariables()
602 TypeVariableName p = TypeVariableName.get("P", Number.class); in typeVariableWithBounds()
603 TypeVariableName q = (TypeVariableName) TypeVariableName.get("Q", Number.class).annotated(a); in typeVariableWithBounds()
1001 TypeVariableName typeVariable = TypeVariableName.get("T", Comparator.class, Serializable.class); in intersectionType()
1863 TypeVariableName.get("T"), in multipleTypeVariableAddition()
1864 TypeVariableName.get("P", Number.class))) in multipleTypeVariableAddition()
DAnnotatedTypeNameTest.java107 annotatedEquivalence(TypeVariableName.get(Object.class)); in annotatedEquivalence()
DJavaFileTest.java540 TypeVariableName.get("T", ClassName.get("com.taco.bell", "Taco"))) in conflictingTypeVariableBound()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DMembersInjectorGenerator.java41 import dagger.internal.codegen.writer.TypeVariableName;
125 List<TypeVariableName> typeParameters = Lists.newArrayList();
127 typeParameters.add(TypeVariableName.fromTypeParameterElement(typeParameter));
317 List<TypeVariableName> typeParameters,
DFactoryGenerator.java39 import dagger.internal.codegen.writer.TypeVariableName;
112 List<TypeVariableName> typeParameters = Lists.newArrayList(); in write()
114 typeParameters.add(TypeVariableName.fromTypeParameterElement(typeParameter)); in write()
/external/tensorflow/tensorflow/java/src/gen/java/org/tensorflow/processor/
DOperatorProcessor.java29 import com.squareup.javapoet.TypeVariableName;
249 TypeVariableName tvn = TypeVariableName.get((TypeVariable) tp.asType()); in buildOpMethod()
/external/javapoet/
DCHANGELOG.md93 * New: `TypeVariableName.withBounds()` adds bounds to a type variable.
115 * Fix: Don't stack overflow when `TypeVariableName` is part of `ParameterizedTypeName`.
129 * Fix: Don't stack overflow when `TypeVariableName` gets a self-referential type.
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/writer/
DTypeNamesTest.java66 .isEqualTo(ParameterizedTypeName.create(Set.class, TypeVariableName.named("E"))); in forTypeMirror_typeVariables()
/external/mesa3d/src/gallium/drivers/svga/svgadump/
Dsvga_dump.c1494 #define SVGA3D_DUMP_TYPE_CASE(TypeVariableName, CaseName) \ argument
1496 _debug_printf(SVGA3D_DUMP_STRINGIFY(\t\t.TypeVariableName = CaseName) "\n"); \
1499 #define SVGA3D_DUMP_TYPE_DEFAULT(TypeVariableName) \ argument
1501 _debug_printf(SVGA3D_DUMP_STRINGIFY(\t\t.TypeVariableName = %i\n), (*cmd).TypeVariableName); \