Example JS Plugin Print Classes
This commit is contained in:
parent
d12eca6973
commit
33447e3f09
1 changed files with 18 additions and 0 deletions
18
plugins/example/ExamplePrintClassesPlugin.js
Normal file
18
plugins/example/ExamplePrintClassesPlugin.js
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
/**
|
||||||
|
* This is an example plugin
|
||||||
|
*/
|
||||||
|
|
||||||
|
var PluginConsole = Java.type("the.bytecode.club.bytecodeviewer.api.PluginConsole");
|
||||||
|
|
||||||
|
var gui = new PluginConsole("Example Plugin Print Loaded Classes");
|
||||||
|
|
||||||
|
function execute(classNodeList)
|
||||||
|
{
|
||||||
|
for (index = 0; index < classNodeList.length; index++)
|
||||||
|
{
|
||||||
|
var cn = classNodeList[index];
|
||||||
|
gui.appendText("Resource: " + cn.name + ".class");
|
||||||
|
}
|
||||||
|
|
||||||
|
gui.setVisible(true);
|
||||||
|
}
|
Loading…
Reference in a new issue