cn.zcltd.btg.sutil.filescanner.File Maven / Gradle / Ivy
package cn.zcltd.btg.sutil.filescanner;
/**
* jar文件里面的file信息
*/
public class File {
private String packageName; //包名
private String name;//文件名
private String path;//路径
public File(String packageName, String name, String path) {
this.packageName = packageName;
this.name = name;
this.path = path;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPackageName() {
return packageName;
}
public void setPackageName(String packageName) {
this.packageName = packageName;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public String getClassName() {
return this.getPath().replaceAll("/", ".").replaceAll(".class", "");
}
@Override
public String toString() {
return getPath();
}
}