MCPcopy
hub / github.com/APKLab/APKLab / getClassNameFromDocument

Function getClassNameFromDocument

src/tools/frida.ts:117–121  ·  view source on GitHub ↗

* Get the class name from the .class directive in the document.

(document: vscode.TextDocument)

Source from the content-addressed store, hash-verified

115 * Get the class name from the .class directive in the document.
116 */
117function getClassNameFromDocument(document: vscode.TextDocument): string {
118 const text = document.getText();
119 const match = text.match(/\.class\s+[^L]*L([^;]+);/);
120 return match ? match[1] : "unknown/Class";
121}
122
123/**
124 * Generate Frida TypeScript hook code for a method.

Callers 1

generateHookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected