Home
last modified time | relevance | path

Searched refs:typeSpec (Results 1 – 6 of 6) sorted by relevance

/external/javapoet/src/main/java/com/squareup/javapoet/
DJavaFile.java59 public final TypeSpec typeSpec; field in JavaFile
67 this.typeSpec = builder.typeSpec; in JavaFile()
96 Path outputPath = outputDirectory.resolve(typeSpec.name + ".java"); in writeTo()
110 ? typeSpec.name in writeTo()
111 : packageName + "." + typeSpec.name; in writeTo()
112 List<Element> originatingElements = typeSpec.originatingElements; in writeTo()
156 typeSpec.emit(codeWriter, null, Collections.emptySet()); in emit()
184 ? typeSpec.name in toJavaFileObject()
185 : packageName.replace('.', '/') + '/' + typeSpec.name) in toJavaFileObject()
201 public static Builder builder(String packageName, TypeSpec typeSpec) { in builder() argument
[all …]
DTypeSpec.java77 for (TypeSpec typeSpec : builder.typeSpecs) { in TypeSpec()
78 originatingElementsMutable.addAll(typeSpec.originatingElements); in TypeSpec()
311 for (TypeSpec typeSpec : typeSpecs) { in emit()
313 typeSpec.emit(codeWriter, null, kind.implicitTypeModifiers); in emit()
510 public Builder addEnumConstant(String name, TypeSpec typeSpec) { in addEnumConstant() argument
512 checkArgument(typeSpec.anonymousTypeArguments != null, in addEnumConstant()
515 enumConstants.put(name, typeSpec); in addEnumConstant()
595 for (TypeSpec typeSpec : typeSpecs) { in addTypes()
596 addType(typeSpec); in addTypes()
601 public Builder addType(TypeSpec typeSpec) { in addType() argument
[all …]
DCodeWriter.java337 TypeSpec typeSpec = (TypeSpec) o; in emitLiteral() local
338 typeSpec.emit(this, null, Collections.emptySet()); in emitLiteral()
409 TypeSpec typeSpec = typeSpecStack.get(i); in resolve() local
410 for (TypeSpec visibleChild : typeSpec.typeSpecs) { in resolve()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DResTable.java540 final Type typeSpec = typeList.get(i);
548 if (typeSpec.idmapEntries.hasEntries()) {
550 if (typeSpec.idmapEntries.lookup(entryIndex, overlayEntryIndex) != NO_ERROR) {
555 realTypeIndex = typeSpec.idmapEntries.overlayTypeId() - 1;
562 if (((int) realEntryIndex) >= typeSpec.entryCount) {
565 entryIndex, ((int) typeSpec.entryCount));
572 if (typeSpec.typeSpecFlags != null) {
573 specFlags |= dtohl(typeSpec.typeSpecFlags[realEntryIndex]);
578 List<ResTable_type> candidateConfigs = typeSpec.configs;
673 bestPackage = typeSpec._package_;
[all …]
/external/javapoet/src/test/java/com/squareup/javapoet/
DTypeSpecTest.java549 TypeSpec typeSpec = TypeSpec.classBuilder("Location") in typeVariables() local
574 assertThat(toString(typeSpec)).isEqualTo("" in typeVariables()
604 TypeSpec typeSpec = TypeSpec.classBuilder("Location") in typeVariableWithBounds() local
610 assertThat(toString(typeSpec)).isEqualTo("" in typeVariableWithBounds()
626 TypeSpec typeSpec = TypeSpec.classBuilder("Taco") in classImplementsExtends() local
632 assertThat(toString(typeSpec)).isEqualTo("" in classImplementsExtends()
648 TypeSpec typeSpec = TypeSpec.classBuilder("Outer") in classImplementsNestedClass() local
656 assertThat(toString(typeSpec)).isEqualTo("" in classImplementsNestedClass()
668 TypeSpec typeSpec = TypeSpec.enumBuilder("Food") in enumImplements() local
674 assertThat(toString(typeSpec)).isEqualTo("" in enumImplements()
[all …]
DAnnotationSpecTest.java374 private String toString(TypeSpec typeSpec) { in toString() argument
375 return JavaFile.builder("com.squareup.tacos", typeSpec).build().toString(); in toString()