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.net.URI ; 16 import javax.lang.model.element.Modifier; 17 import javax.lang.model.element.NestingKind; 18 19 28 public class ForwardingJavaFileObject<F extends JavaFileObject> 29 extends ForwardingFileObject<F> 30 implements JavaFileObject 31 { 32 33 37 protected ForwardingJavaFileObject(F fileObject) { 38 super(fileObject); 39 } 40 41 public Kind getKind() { 42 return fileObject.getKind(); 43 } 44 45 public boolean isNameCompatible(String simpleName, Kind kind) { 46 return fileObject.isNameCompatible(simpleName, kind); 47 } 48 49 public NestingKind getNestingKind() { return fileObject.getNestingKind(); } 50 51 public Modifier getAccessLevel() { return fileObject.getAccessLevel(); } 52 53 } 54 | Popular Tags |