Re: disassemple java byte code

"Dave Brosius" <[email protected]> Thu, 28 Sep 2006 22:41:11 -0400
Newsgroups gmane.comp.jakarta.bcel.user
Message-ID <007101c6e370$ba012f80$6501a8c0@MeBigFatGuy>
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