1 7 8 package javax.tools; 9 10 import java.io.IOException ; 11 import java.io.InputStream ; 12 import java.io.OutputStream ; 13 import java.io.Reader ; 14 import java.io.Writer ; 15 import java.nio.CharBuffer ; 16 import javax.lang.model.element.NestingKind; 17 import javax.lang.model.element.Modifier; 18 19 34 public interface JavaFileObject extends FileObject { 35 36 39 enum Kind { 40 44 SOURCE(".java"), 45 46 50 CLASS(".class"), 51 52 56 HTML(".html"), 57 58 61 OTHER(""); 62 67 public final String extension; 68 private Kind(String extension) { 69 extension.getClass(); this.extension = extension; 71 } 72 }; 73 74 79 Kind getKind(); 80 81 93 boolean isNameCompatible(String simpleName, Kind kind); 94 95 106 NestingKind getNestingKind(); 107 108 116 Modifier getAccessLevel(); 117 118 } 119 | Popular Tags |