什么是BCEL指令来读取我想要的代码块

时间:2013-12-30 08:48:12

标签: java bytecode call-graph bcel

我正在使用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);


                        }
                    });

0 个答案:

没有答案