bcv-vf/plugins/javascript/ExamplePrintClassesPlugin.js
2022-01-17 19:36:13 -06:00

16 lines
440 B
JavaScript

/**
* This is an example plugin
*/
var PluginConsole = Java.type("the.bytecode.club.bytecodeviewer.api.PluginConsole");
var gui = new PluginConsole("Example Plugin Print Loaded Classes Javascript Edition");
function execute(classNodeList) {
for (index = 0; index < classNodeList.length; index++) {
var cn = classNodeList[index];
gui.appendText("Resource: " + cn.name + ".class");
}
gui.setVisible(true);
}