Searched refs:JavaFile (Results 1 – 10 of 10) sorted by relevance
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 …]
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 …]
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()
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()
1560 return JavaFile.builder(tacosPackage, typeSpec).build().toString(); in toString()
44 public final class JavaFile { class64 private JavaFile(Builder builder) { in JavaFile() method in JavaFile190 return JavaFile.this.toString(); in toJavaFileObject()270 public JavaFile build() { in build()271 return new JavaFile(this); in build()
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)
112 * New: `import static`! See `JavaFile.Builder.addStaticImport()` variants.126 * New: `equals()` and `hashCode()` on `AnnotationSpec`, `CodeBlock`, `FieldSpec`, `JavaFile`,161 * New: `JavaFile.toJavaFileObject()`.
24 import com.squareup.javapoet.JavaFile;172 JavaFile.builder("org.tensorflow.op", spec).skipJavaLangImports(true).build().writeTo(filer); in write()
META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...