MCPcopy
hub / github.com/Col-E/Recaf / hasClass

Method hasClass

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

@param name Class name. @return true if one of the workspace sources contains the class.

(String name)

Source from the content-addressed store, hash-verified

284 * @return {@code true} if one of the workspace sources contains the class.
285 */
286 public boolean hasClass(String name) {
287 if (primary.getClasses().containsKey(name))
288 return true;
289 for (JavaResource resource : getLibraries())
290 if (resource.getClasses().containsKey(name))
291 return true;
292 if (CP.getClasses().containsKey(name))
293 return true;
294 else
295 return phantoms.getClasses().containsKey(name);
296 }
297
298 /**
299 * @param name

Callers 6

callMethod · 0.45
accMethod · 0.45
tryToSolveTypeMethod · 0.45
getVertexMethod · 0.45
getVertexMethod · 0.45
jquery.min.jsFile · 0.45

Calls 3

getLibrariesMethod · 0.95
containsKeyMethod · 0.45
getClassesMethod · 0.45

Tested by

no test coverage detected