bcv-vf/plugins/javascript/ExamplePrintClassesPlugin.js

17 lines
421 B
JavaScript
Raw Normal View History

2021-06-27 22:21:46 +00:00
/**
* This is an example plugin
*/
var PluginConsole = Java.type("the.bytecode.club.bytecodeviewer.api.PluginConsole");
var gui = new PluginConsole("Example Plugin Print Loaded Classes");
2022-01-08 10:48:25 +00:00
function execute(classNodeList) {
for (index = 0; index < classNodeList.length; index++) {
2021-06-27 22:21:46 +00:00
var cn = classNodeList[index];
gui.appendText("Resource: " + cn.name + ".class");
}
gui.setVisible(true);
2022-01-08 10:48:25 +00:00
}