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

Method getRawClass

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

@param name Class name. @return Raw bytecode of the class by the given name.

(String name)

Source from the content-addressed store, hash-verified

317 * @return Raw bytecode of the class by the given name.
318 */
319 public byte[] getRawClass(String name) {
320 byte[] ret = primary.getClasses().get(name);
321 if(ret != null)
322 return ret;
323 for(JavaResource resource : getLibraries()) {
324 ret = resource.getClasses().get(name);
325 if(ret != null)
326 return ret;
327 }
328 if (CP.getClasses().containsKey(name))
329 return CP.getClasses().get(name);
330 else if (phantoms.getClasses().containsKey(name))
331 return phantoms.getClasses().get(name);
332 return null;
333 }
334
335 /**
336 * @param name

Callers 9

getClassReaderMethod · 0.95
setupMethod · 0.80
tryLoadTypeMethod · 0.80
getClassFileContentMethod · 0.80
lookupWorkspaceClassMethod · 0.80
tryToSolveTypeMethod · 0.80
openClassfileMethod · 0.80
addExpressionMethod · 0.80
updateViewMethod · 0.80

Calls 4

getLibrariesMethod · 0.95
getMethod · 0.45
getClassesMethod · 0.45
containsKeyMethod · 0.45

Tested by

no test coverage detected