bcv-vf/plugins/javascript/ExamplePrintClassesPlugin.js

17 lines
440 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");
2022-01-18 01:36:13 +00:00
var gui = new PluginConsole("Example Plugin Print Loaded Classes Javascript Edition");
2021-06-27 22:21:46 +00:00
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
}