Home
last modified time | relevance | path

Searched refs:JavaFile (Results 1 – 9 of 9) sorted by relevance

/external/javapoet/src/test/java/com/squareup/javapoet/
DJavaFileTest.java50 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 …]
DFileWritingTest.java53 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 …]
DFileReadingTest.java50 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()
DAnnotationSpecTest.java161 JavaFile file = JavaFile.builder("com.squareup.javapoet", typeBuilder.build()).build(); in defaultAnnotationWithImport()
375 return JavaFile.builder("com.squareup.tacos", typeSpec).build().toString(); in toString()
DTypeSpecTest.java1560 return JavaFile.builder(tacosPackage, typeSpec).build().toString(); in toString()
/external/javapoet/src/main/java/com/squareup/javapoet/
DJavaFile.java44 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/
DREADME.md40 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)
DCHANGELOG.md112 * 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/
DOperatorProcessor.java24 import com.squareup.javapoet.JavaFile;
172 JavaFile.builder("org.tensorflow.op", spec).skipJavaLangImports(true).build().writeTo(filer); in write()