我正在使用 Bcel 开发一个调用方法。但我无法访问 getTweets 函数。它在 ActionListener 之后停止。它的指令是什么?
这是我阅读说明的方式:
for (InstructionHandle ih = mg.getInstructionList().getStart();
ih != null; ih = ih.getNext()) {
Instruction i = ih.getInstruction();
if (!visitInstruction(i))
i.accept(this);
}
这是我用 BCEL 阅读的代码:
button1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
JTextArea textArea = new **JTextArea(getTweets("#XXX"));**
textArea.setLineWrap(true);
textArea.setWrapStyleWord(true);
textArea.setBounds(500, 500, 500, 500);
JScrollPane jScrollPane1 = new JScrollPane(textArea);
jScrollPane1.setBounds(500, 500, 500, 500);
JOptionPane.showMessageDialog(null, jScrollPane1, "Tweets",
JOptionPane.CLOSED_OPTION);
}
});