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

cfg.EnvFunction Maven / Gradle / Ivy

The newest version!
package cfg;

import java.util.List;

public class EnvFunction implements Function {
    @Override public int args() { return 1; }

    @Override
        public String eval(Cfg cfg, String base, String id, List args) {
        String arg = cfg.cook(base,args.get(0)).trim();
        return System.getenv(arg);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy