MCPcopy Index your code
hub / github.com/Col-E/Recaf / hasFile

Method hasFile

src/main/java/me/coley/recaf/workspace/Workspace.java:304–311  ·  view source on GitHub ↗

@param name Resource name. @return true if one of the workspace sources contains the resource.

(String name)

Source from the content-addressed store, hash-verified

302 * @return {@code true} if one of the workspace sources contains the resource.
303 */
304 public boolean hasFile(String name) {
305 if(primary.getFiles().containsKey(name))
306 return true;
307 for(JavaResource resource : getLibraries())
308 if(resource.getFiles().containsKey(name))
309 return true;
310 return false;
311 }
312
313 /**
314 * @param name

Callers

nothing calls this directly

Calls 3

getLibrariesMethod · 0.95
containsKeyMethod · 0.45
getFilesMethod · 0.45

Tested by

no test coverage detected