Home
last modified time | relevance | path

Searched refs:javaFile (Results 1 – 14 of 14) sorted by relevance

/external/javapoet/src/test/java/com/squareup/javapoet/
DFileReadingTest.java59 JavaFile javaFile = JavaFile.builder("", TypeSpec.classBuilder("Test").build()).build(); in javaFileObjectKind() local
60 assertThat(javaFile.toJavaFileObject().getKind()).isEqualTo(Kind.SOURCE); in javaFileObjectKind()
68 JavaFile javaFile = JavaFile.builder("foo", type).build(); in javaFileObjectCharacterContent() local
69 JavaFileObject javaFileObject = javaFile.toJavaFileObject(); in javaFileObjectCharacterContent()
72 assertThat(javaFileObject.getCharContent(true)).isEqualTo(javaFile.toString()); in javaFileObjectCharacterContent()
73 assertThat(javaFileObject.getCharContent(false)).isEqualTo(javaFile.toString()); in javaFileObjectCharacterContent()
77 JavaFile javaFile = JavaFile.builder("foo", TypeSpec.classBuilder("Test").build()) in javaFileObjectInputStreamIsUtf8() local
80 byte[] bytes = ByteStreams.toByteArray(javaFile.toJavaFileObject().openInputStream()); in javaFileObjectInputStreamIsUtf8()
83 assertThat(bytes).isEqualTo(javaFile.toString().getBytes(UTF_8)); in javaFileObjectInputStreamIsUtf8()
97 JavaFile javaFile = JavaFile.builder("foo", type).build(); in compileJavaFile() local
[all …]
DFileWritingTest.java53 JavaFile javaFile = JavaFile.builder("example", type).build(); in pathNotDirectory() local
58 javaFile.writeTo(path); in pathNotDirectory()
67 JavaFile javaFile = JavaFile.builder("example", type).build(); in fileNotDirectory() local
71 javaFile.writeTo(file); in fileNotDirectory()
206 JavaFile javaFile = JavaFile.builder("foo", TypeSpec.classBuilder("Taco").build()) in fileIsUtf8() local
209 javaFile.writeTo(fsRoot); in fileIsUtf8()
221 JavaFile javaFile = JavaFile.builder("foo", TypeSpec.classBuilder("Taco").build()).build(); in writeToPathReturnsPath() local
222 Path filePath = javaFile.writeToPath(fsRoot); in writeToPathReturnsPath()
/external/vogar/src/vogar/
DAction.java33 private final File javaFile; field in Action
37 File sourcePath, File javaFile) { in Action() argument
43 this.javaFile = javaFile; in Action()
67 return javaFile; in getJavaFile()
105 public static String nameForJavaFile(File javaFile) { in nameForJavaFile() argument
106 String path = javaFile.getAbsolutePath(); in nameForJavaFile()
DDotJavaFile.java64 public static DotJavaFile parse(File javaFile) throws IOException { in parse() argument
67 String filename = javaFile.getName(); in parse()
72 String content = Strings.readFile(javaFile); in parse()
83 actionName = Action.nameForJavaFile(javaFile); in parse()
87 throw new IllegalArgumentException("Malformed .java file: " + javaFile); in parse()
DActionFinder.java76 private Action fileToAction(File javaFile) { in fileToAction() argument
78 DotJavaFile dotJavaFile = DotJavaFile.parse(javaFile); in fileToAction()
79 File resourcesDir = dotJavaFile.isJtreg() ? javaFile.getParentFile() : null; in fileToAction()
81 getSourcePath(javaFile, dotJavaFile.getClassName()), javaFile); in fileToAction()
/external/dagger2/java/dagger/hilt/processor/internal/root/
DRootFileFormatter.java41 static void write(JavaFile javaFile, Filer filer) throws IOException { in write() argument
43 javaFile.packageName.isEmpty() in write()
44 ? javaFile.typeSpec.name in write()
45 : javaFile.packageName + "." + javaFile.typeSpec.name; in write()
47 Element[] originatingElements = javaFile.typeSpec.originatingElements.toArray(new Element[0]); in write()
50 javaFile.writeTo(sb); in write()
/external/dagger2/java/dagger/grpc/server/processor/
DGrpcServiceProcessor.java84 JavaFile javaFile = grpcServiceTypeWriter.javaFile(); in write() local
85 ClassName outputClassName = ClassName.get(javaFile.packageName, javaFile.typeSpec.name); in write()
87 javaFile.writeTo(new FormattingFiler(processingEnv.getFiler())); in write()
DSourceGenerator.java35 public JavaFile javaFile() { in javaFile() method in SourceGenerator
/external/vogar/src/vogar/tasks/
DBuildActionTask.java88 File javaFile = action.getJavaFile(); in compile() local
93 if (javaFile != null) { in compile()
94 if (!JAVA_SOURCE_PATTERN.matcher(javaFile.toString()).find()) { in compile()
96 Collections.singletonList("Cannot compile: " + javaFile)); in compile()
98 sourceFiles.add(javaFile); in compile()
/external/jsilver/src/com/google/clearsilver/jsilver/compiler/
DCompilingClassLoader.java140 JavaFileObject javaFile = new InMemoryJavaFile(className, sourceCode); in compileSourceCodeToByteCode() local
154 fileManager, diagnosticListener, options, null, singleton(javaFile)); in compileSourceCodeToByteCode()
/external/auto/common/src/test/java/com/google/auto/common/
DGeneratedAnnotationsTest.java86 JavaFile javaFile = JavaFile.builder("", type.build()).build(); in process() local
88 javaFile.writeTo(processingEnv.getFiler()); in process()
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/
DGeneratorUtilities.java164 JavaFile javaFile = JavaFile.builder(packageName, clazz).build(); in writeClassToFile() local
169 javaFile.writeTo(out); in writeClassToFile()
/external/javapoet/
DREADME.md40 JavaFile javaFile = JavaFile.builder("com.example.helloworld", helloWorld)
43 javaFile.writeTo(System.out);
224 JavaFile javaFile = JavaFile.builder("com.example.helloworld", helloWorld)
227 javaFile.writeTo(System.out);
273 JavaFile javaFile = JavaFile.builder("com.example.helloworld", helloWorld)
276 javaFile.writeTo(System.out);
/external/dokka/core/src/main/kotlin/Java/
DJavaPsiDocumentationBuilder.kt175 …private fun skipFile(javaFile: PsiJavaFile): Boolean = options.effectivePackageOptions(javaFile.pa… in appendFile()