MCPcopy Create free account
hub / github.com/SoarGroup/Soar / getPath

Method getPath

Java/SMLJava/src/main/java/edu/umich/soar/config/Config.java:146–157  ·  view source on GitHub ↗
(String key, String def)

Source from the content-addressed store, hash-verified

144 // /////////////////////////
145 // Paths
146 public String getPath(String key, String def)
147 {
148 String path = getString(key, def);
149 if (path == null)
150 return null;
151
152 path = path.trim(); // remove white space
153 if (!path.startsWith("/"))
154 return source.getPrefixPath() + path;
155
156 return path;
157 }
158
159 public String getPath(String key)
160 {

Callers 3

mainMethod · 0.80
getFilePathMethod · 0.80
setFilePathMethod · 0.80

Calls 2

getStringMethod · 0.95
getPrefixPathMethod · 0.45

Tested by

no test coverage detected