Lines Matching refs:filename
566 * @param filename The file name of the input stream to be opened.
568 public CharSequence readSource(JavaFileObject filename) {
570 inputFiles.add(filename);
571 return filename.getCharContent(false);
573 log.error("error.reading.file", filename, JavacFileManager.getMessage(e));
579 * @param filename The name of the file from which input stream comes.
582 protected JCCompilationUnit parse(JavaFileObject filename, CharSequence content) {
588 log.printVerbose("parsing.started", filename);
591 TaskEvent e = new TaskEvent(TaskEvent.Kind.PARSE, filename);
601 tree.sourcefile = filename;
618 * @param filename The name of the file to be parsed.
621 public JCTree.JCCompilationUnit parse(String filename) {
623 return parse(fm.getJavaFileObjectsFromStrings(List.of(filename)).iterator().next());
627 * @param filename The name of the file to be parsed.
629 public JCTree.JCCompilationUnit parse(JavaFileObject filename) {
630 JavaFileObject prev = log.useSource(filename);
632 JCTree.JCCompilationUnit t = parse(filename, readSource(filename));
634 log.setEndPosTable(filename, t.endPositions);
728 * @param filename The name of the source file.
737 JavaFileObject filename = c.classfile;
738 JavaFileObject prev = log.useSource(filename);
741 tree = parse(filename, filename.getCharContent(false));
743 log.error("error.reading.file", filename, JavacFileManager.getMessage(e));
770 throw reader.new BadClassFile(c, filename, diag);
776 throw reader.new BadClassFile(c, filename, diag);