Java Code Examples for com.sun.tools.javac.file.RelativePath.RelativeDirectory#getFile()
The following examples show how to use
com.sun.tools.javac.file.RelativePath.RelativeDirectory#getFile() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JavacFileManager.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Insert all files in subdirectory subdirectory of directory directory * which match fileKinds into resultList */ private void listDirectory(File directory, RelativeDirectory subdirectory, Set<JavaFileObject.Kind> fileKinds, boolean recurse, ListBuffer<JavaFileObject> resultList) { File d = subdirectory.getFile(directory); if (!caseMapCheck(d, subdirectory)) return; File[] files = d.listFiles(); if (files == null) return; if (sortFiles != null) Arrays.sort(files, sortFiles); for (File f: files) { String fname = f.getName(); if (f.isDirectory()) { if (recurse && SourceVersion.isIdentifier(fname)) { listDirectory(directory, new RelativeDirectory(subdirectory, fname), fileKinds, recurse, resultList); } } else { if (isValidFile(fname, fileKinds)) { JavaFileObject fe = new RegularFileObject(this, fname, new File(d, fname)); resultList.append(fe); } } } }
Example 2
Source File: JavacFileManager.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Insert all files in subdirectory subdirectory of directory directory * which match fileKinds into resultList */ private void listDirectory(File directory, RelativeDirectory subdirectory, Set<JavaFileObject.Kind> fileKinds, boolean recurse, ListBuffer<JavaFileObject> resultList) { File d = subdirectory.getFile(directory); if (!caseMapCheck(d, subdirectory)) return; File[] files = d.listFiles(); if (files == null) return; if (sortFiles != null) Arrays.sort(files, sortFiles); for (File f: files) { String fname = f.getName(); if (f.isDirectory()) { if (recurse && SourceVersion.isIdentifier(fname)) { listDirectory(directory, new RelativeDirectory(subdirectory, fname), fileKinds, recurse, resultList); } } else { if (isValidFile(fname, fileKinds)) { JavaFileObject fe = new RegularFileObject(this, fname, new File(d, fname)); resultList.append(fe); } } } }
Example 3
Source File: JavacFileManager.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
/** * Insert all files in subdirectory subdirectory of directory directory * which match fileKinds into resultList */ private void listDirectory(File directory, RelativeDirectory subdirectory, Set<JavaFileObject.Kind> fileKinds, boolean recurse, ListBuffer<JavaFileObject> resultList) { File d = subdirectory.getFile(directory); if (!caseMapCheck(d, subdirectory)) return; File[] files = d.listFiles(); if (files == null) return; if (sortFiles != null) Arrays.sort(files, sortFiles); for (File f : files) { String fname = f.getName(); if (f.isDirectory()) { if (recurse && SourceVersion.isIdentifier(fname)) { listDirectory(directory, new RelativeDirectory(subdirectory, fname), fileKinds, recurse, resultList); } } else { if (isValidFile(fname, fileKinds)) { JavaFileObject fe = new RegularFileObject(this, fname, new File(d, fname)); resultList.append(fe); } } } }
Example 4
Source File: JavacFileManager.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Insert all files in subdirectory subdirectory of directory directory * which match fileKinds into resultList */ private void listDirectory(File directory, RelativeDirectory subdirectory, Set<JavaFileObject.Kind> fileKinds, boolean recurse, ListBuffer<JavaFileObject> resultList) { File d = subdirectory.getFile(directory); if (!caseMapCheck(d, subdirectory)) return; File[] files = d.listFiles(); if (files == null) return; if (sortFiles != null) Arrays.sort(files, sortFiles); for (File f: files) { String fname = f.getName(); if (f.isDirectory()) { if (recurse && SourceVersion.isIdentifier(fname)) { listDirectory(directory, new RelativeDirectory(subdirectory, fname), fileKinds, recurse, resultList); } } else { if (isValidFile(fname, fileKinds)) { JavaFileObject fe = new RegularFileObject(this, fname, new File(d, fname)); resultList.append(fe); } } } }
Example 5
Source File: JavacFileManager.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Insert all files in subdirectory subdirectory of directory directory * which match fileKinds into resultList */ private void listDirectory(File directory, RelativeDirectory subdirectory, Set<JavaFileObject.Kind> fileKinds, boolean recurse, ListBuffer<JavaFileObject> resultList) { File d = subdirectory.getFile(directory); if (!caseMapCheck(d, subdirectory)) return; File[] files = d.listFiles(); if (files == null) return; if (sortFiles != null) Arrays.sort(files, sortFiles); for (File f: files) { String fname = f.getName(); if (f.isDirectory()) { if (recurse && SourceVersion.isIdentifier(fname)) { listDirectory(directory, new RelativeDirectory(subdirectory, fname), fileKinds, recurse, resultList); } } else { if (isValidFile(fname, fileKinds)) { JavaFileObject fe = new RegularFileObject(this, fname, new File(d, fname)); resultList.append(fe); } } } }
Example 6
Source File: JavacFileManager.java From javaide with GNU General Public License v3.0 | 5 votes |
/** * Insert all files in subdirectory subdirectory of directory directory * which match fileKinds into resultList */ private void listDirectory(File directory, RelativeDirectory subdirectory, Set<JavaFileObject.Kind> fileKinds, boolean recurse, ListBuffer<JavaFileObject> resultList) { File d = subdirectory.getFile(directory); if (!caseMapCheck(d, subdirectory)) return; File[] files = d.listFiles(); if (files == null) return; if (sortFiles != null) Arrays.sort(files, sortFiles); for (File f : files) { String fname = f.getName(); if (f.isDirectory()) { if (recurse && SourceVersion.isIdentifier(fname)) { listDirectory(directory, new RelativeDirectory(subdirectory, fname), fileKinds, recurse, resultList); } } else { if (isValidFile(fname, fileKinds)) { JavaFileObject fe = new RegularFileObject(this, fname, new File(d, fname)); resultList.append(fe); } } } }
Example 7
Source File: JavacFileManager.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Insert all files in subdirectory subdirectory of directory directory * which match fileKinds into resultList */ private void listDirectory(File directory, RelativeDirectory subdirectory, Set<JavaFileObject.Kind> fileKinds, boolean recurse, ListBuffer<JavaFileObject> resultList) { File d = subdirectory.getFile(directory); if (!caseMapCheck(d, subdirectory)) return; File[] files = d.listFiles(); if (files == null) return; if (sortFiles != null) Arrays.sort(files, sortFiles); for (File f: files) { String fname = f.getName(); if (f.isDirectory()) { if (recurse && SourceVersion.isIdentifier(fname)) { listDirectory(directory, new RelativeDirectory(subdirectory, fname), fileKinds, recurse, resultList); } } else { if (isValidFile(fname, fileKinds)) { JavaFileObject fe = new RegularFileObject(this, fname, new File(d, fname)); resultList.append(fe); } } } }
Example 8
Source File: JavacFileManager.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Insert all files in subdirectory subdirectory of directory directory * which match fileKinds into resultList */ private void listDirectory(File directory, RelativeDirectory subdirectory, Set<JavaFileObject.Kind> fileKinds, boolean recurse, ListBuffer<JavaFileObject> resultList) { File d = subdirectory.getFile(directory); if (!caseMapCheck(d, subdirectory)) return; File[] files = d.listFiles(); if (files == null) return; if (sortFiles != null) Arrays.sort(files, sortFiles); for (File f: files) { String fname = f.getName(); if (f.isDirectory()) { if (recurse && SourceVersion.isIdentifier(fname)) { listDirectory(directory, new RelativeDirectory(subdirectory, fname), fileKinds, recurse, resultList); } } else { if (isValidFile(fname, fileKinds)) { JavaFileObject fe = new RegularFileObject(this, fname, new File(d, fname)); resultList.append(fe); } } } }
Example 9
Source File: JavacFileManager.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Insert all files in subdirectory subdirectory of directory directory * which match fileKinds into resultList */ private void listDirectory(File directory, RelativeDirectory subdirectory, Set<JavaFileObject.Kind> fileKinds, boolean recurse, ListBuffer<JavaFileObject> resultList) { File d = subdirectory.getFile(directory); if (!caseMapCheck(d, subdirectory)) return; File[] files = d.listFiles(); if (files == null) return; if (sortFiles != null) Arrays.sort(files, sortFiles); for (File f: files) { String fname = f.getName(); if (f.isDirectory()) { if (recurse && SourceVersion.isIdentifier(fname)) { listDirectory(directory, new RelativeDirectory(subdirectory, fname), fileKinds, recurse, resultList); } } else { if (isValidFile(fname, fileKinds)) { JavaFileObject fe = new RegularFileObject(this, fname, new File(d, fname)); resultList.append(fe); } } } }