org.apache.bcel.generic.InstructionList

  can take a byte array, using

InstructionList(byte[] code)

like what you would get from calling getCode() on a Code object,

From there you can get an iterator, using

InstructionList.iterator();

This returns a series of

org.apache.bcel.generic.InstructionHandle

which you can call getInstruction()  on to get an

org.apache.bcel.generic.Instruction

The instruction holds the opcode, and is the base class for all instructions, each specific instruction type will hold info about the arguments.


----- Original Message ----- From: <[EMAIL PROTECTED]>
To: "BCEL Users List" <[email protected]>
Sent: Thursday, September 28, 2006 9:11 AM
Subject: Re: disassemple java byte code


If you want there is the program JClassLib (http://www.ej-technologies.com/products/jclasslib/overview.html).


Taff <[EMAIL PROTECTED]> ha scritto:
 Hi,

How can I disassemble java byte code using BCEL and print java
assembler command list?
Class2HTML is not exact what I want. I would be have API for something
like "javap".

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------
Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to