1 19 20 package org.netbeans.spi.gsf; 21 22 import org.netbeans.api.gsf.ParserFile; 24 import org.openide.filesystems.FileObject; 25 27 31 public class DefaultParserFile implements ParserFile { 32 private FileObject fileObject; 33 private String relative; 34 private boolean platform; 35 36 public DefaultParserFile(FileObject fo, String relative, boolean platform) { 37 this.fileObject = fo; 38 this.relative = relative; 39 this.platform = platform; 40 } 41 42 47 public FileObject getFileObject() { 48 return fileObject; 53 } 54 55 public String getRelativePath() { 56 return relative; 57 } 58 59 public String getNameExt() { 60 return getFileObject().getName(); 61 } 62 63 public String getExtension() { 64 return getFileObject().getExt(); 65 } 66 67 @Override 68 public String toString() { 69 return getNameExt(); 70 } 71 72 public boolean isPlatform() { 73 return platform; 74 } 75 } 76 | Popular Tags |