All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.zcltd.btg.sutil.filescanner.File Maven / Gradle / Ivy

There is a newer version: 4.0.24
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy