Home
last modified time | relevance | path

Searched refs:javaFile (Results 1 – 11 of 11) 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()
/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/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/javapoet/
DREADME.md40 JavaFile javaFile = JavaFile.builder("com.example.helloworld", helloWorld)
43 javaFile.writeTo(System.out);
170 JavaFile javaFile = JavaFile.builder("com.example.helloworld", helloWorld)
173 javaFile.writeTo(System.out);
219 JavaFile javaFile = JavaFile.builder("com.example.helloworld", helloWorld)
222 javaFile.writeTo(System.out);
/external/dokka/core/src/main/kotlin/Java/
DJavaPsiDocumentationBuilder.kt170 …private fun skipFile(javaFile: PsiJavaFile): Boolean = options.effectivePackageOptions(javaFile.pa… in appendFile()