[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question on RetStmt and LookupSwitchStmt
Jonathan JinQian LI wrote:
>
> Hello,
>
> I am reading the code for StmtGraph constructor, but confused
> by Jimple's RetStmt. What is that for? And how to handle it to
> constuct a control flow graph? I have problem to understand
> that piece of codes.
Forget about RetStmt, it's unused. It was supposed to represent the
'ret' bytecode, but we eliminate jsr's and ret's at some earlier stage.
> I thought RetStmt might be statement like "return ref" which
> returns a reference of some object. Unfortunitely I found that
> it is "ReturnStmt", and I get no examples of RetStmt after
> checking quite a few class files.
>
> Also I find no example of LookupStmt. What is that statement for?
You mean the LookupSwitchStmt? Represents the 'lookupswitch' bytecode.
Raja