bcv-vf/plugins/javascript/ExamplePrintClassesPlugin.js

18 lines
537 B
JavaScript
Raw Normal View History

2022-01-22 19:18:53 +00:00
2021-06-27 22:21:46 +00:00
/**
2022-01-22 19:18:53 +00:00
** An example BCV Javascript Plugin.
** This is used to display all of loaded classnodes that have been imported into BCV.
**/
2021-06-27 22:21:46 +00:00
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-22 19:18:53 +00:00
}