Searched refs:JavaFile (Results 1 – 9 of 9) sorted by relevance
/external/javapoet/src/test/java/com/squareup/javapoet/ |
D | JavaFileTest.java | 50 JavaFile example = JavaFile.builder("com.example.helloworld", hello) in importStaticReadmeExample() 79 JavaFile.builder("com.squareup.tacos", in importStaticForCrazyFormatsWorks() 102 JavaFile source = JavaFile.builder("com.squareup.tacos", in importStaticMixed() 141 JavaFile source = JavaFile.builder("com.squareup.tacos", in importStaticDynamic() 162 assertThat(JavaFile.builder("readme", importStaticTypeSpec("Util")) in importStaticNone() 178 assertThat(JavaFile.builder("readme", importStaticTypeSpec("Util")) in importStaticOnce() 197 assertThat(JavaFile.builder("readme", importStaticTypeSpec("Util")) in importStaticTwice() 217 assertThat(JavaFile.builder("readme", importStaticTypeSpec("Util")) in importStaticUsingWildcards() 246 String source = JavaFile.builder("com.squareup.tacos", in noImports() 258 String source = JavaFile.builder("com.squareup.tacos", in singleImport() [all …]
|
D | FileWritingTest.java | 53 JavaFile javaFile = JavaFile.builder("example", type).build(); in pathNotDirectory() 67 JavaFile javaFile = JavaFile.builder("example", type).build(); in fileNotDirectory() 81 JavaFile.builder("", type).build().writeTo(fsRoot); in pathDefaultPackage() 89 JavaFile.builder("", type).build().writeTo(tmp.getRoot()); in fileDefaultPackage() 97 JavaFile.builder("", type).build().writeTo(filer); in filerDefaultPackage() 105 JavaFile.builder("foo", type).build().writeTo(fsRoot); in pathNestedClasses() 106 JavaFile.builder("foo.bar", type).build().writeTo(fsRoot); in pathNestedClasses() 107 JavaFile.builder("foo.bar.baz", type).build().writeTo(fsRoot); in pathNestedClasses() 119 JavaFile.builder("foo", type).build().writeTo(tmp.getRoot()); in fileNestedClasses() 120 JavaFile.builder("foo.bar", type).build().writeTo(tmp.getRoot()); in fileNestedClasses() [all …]
|
D | FileReadingTest.java | 50 assertThat(JavaFile.builder("", type).build().toJavaFileObject().toUri()) in javaFileObjectUri() 52 assertThat(JavaFile.builder("foo", type).build().toJavaFileObject().toUri()) in javaFileObjectUri() 54 assertThat(JavaFile.builder("com.example", type).build().toJavaFileObject().toUri()) in javaFileObjectUri() 59 JavaFile javaFile = JavaFile.builder("", TypeSpec.classBuilder("Test").build()).build(); in javaFileObjectKind() 68 JavaFile javaFile = JavaFile.builder("foo", type).build(); in javaFileObjectCharacterContent() 77 JavaFile javaFile = JavaFile.builder("foo", TypeSpec.classBuilder("Test").build()) in javaFileObjectInputStreamIsUtf8() 97 JavaFile javaFile = JavaFile.builder("foo", type).build(); in compileJavaFile()
|
D | AnnotationSpecTest.java | 161 JavaFile file = JavaFile.builder("com.squareup.javapoet", typeBuilder.build()).build(); in defaultAnnotationWithImport() 375 return JavaFile.builder("com.squareup.tacos", typeSpec).build().toString(); in toString()
|
D | TypeSpecTest.java | 1560 return JavaFile.builder(tacosPackage, typeSpec).build().toString(); in toString()
|
/external/javapoet/src/main/java/com/squareup/javapoet/ |
D | JavaFile.java | 44 public final class JavaFile { class 64 private JavaFile(Builder builder) { in JavaFile() method in JavaFile 190 return JavaFile.this.toString(); in toJavaFileObject() 270 public JavaFile build() { in build() 271 return new JavaFile(this); in build()
|
/external/javapoet/ |
D | README.md | 40 JavaFile javaFile = JavaFile.builder("com.example.helloworld", helloWorld) 51 (`JavaFile.toString()`) or write it to the file system (`JavaFile.writeTo()`). 170 JavaFile javaFile = JavaFile.builder("com.example.helloworld", helloWorld) 219 JavaFile javaFile = JavaFile.builder("com.example.helloworld", helloWorld) 330 JavaFile.builder("com.example.helloworld", hello)
|
D | CHANGELOG.md | 112 * New: `import static`! See `JavaFile.Builder.addStaticImport()` variants. 126 * New: `equals()` and `hashCode()` on `AnnotationSpec`, `CodeBlock`, `FieldSpec`, `JavaFile`, 161 * New: `JavaFile.toJavaFileObject()`.
|
/external/tensorflow/tensorflow/java/src/gen/java/org/tensorflow/processor/ |
D | OperatorProcessor.java | 24 import com.squareup.javapoet.JavaFile; 172 JavaFile.builder("org.tensorflow.op", spec).skipJavaLangImports(true).build().writeTo(filer); in write()
|