1 7 8 package javax.tools; 9 10 import java.io.Closeable ; 11 import java.io.Flushable ; 12 import java.io.IOException ; 13 import java.util.Iterator ; 14 import java.util.Set ; 15 import static javax.tools.JavaFileObject.Kind; 16 17 88 public interface JavaFileManager extends Closeable , Flushable , OptionChecker { 89 90 94 interface Location { 95 100 String getName(); 101 102 109 boolean isOutputLocation(); 110 } 111 112 128 ClassLoader getClassLoader(Location location); 129 130 150 Iterable <JavaFileObject> list(Location location, 151 String packageName, 152 Set <Kind> kinds, 153 boolean recurse) 154 throws IOException ; 155 156 167 String inferBinaryName(Location location, JavaFileObject file); 168 169 182 boolean isSameFile(FileObject a, FileObject b); 183 184 198 boolean handleOption(String current, Iterator <String > remaining); 199 200 206 boolean hasLocation(Location location); 207 208 229 JavaFileObject getJavaFileForInput(Location location, 230 String className, 231 Kind kind) 232 throws IOException ; 233 234 266 JavaFileObject getJavaFileForOutput(Location location, 267 String className, 268 Kind kind, 269 FileObject sibling) 270 throws IOException ; 271 272 311 FileObject getFileForInput(Location location, 312 String packageName, 313 String relativeName) 314 throws IOException ; 315 316 356 FileObject getFileForOutput(Location location, 357 String packageName, 358 String relativeName, 359 FileObject sibling) 360 throws IOException ; 361 362 370 void flush() throws IOException ; 371 372 383 void close() throws IOException ; 384 } 385 | Popular Tags |