[prev in list] [next in list] [prev in thread] [next in thread]
List: bcel-user
Subject: Re: Would createFieldAccess load local variable?
From: "Juozas Baliuka" <baliuka () mwm ! lt>
Date: 2003-04-25 15:19:55
[Download RAW message or body]
Load it on the top of stack by index before to return.
> Hi,
> I want to access the local variable in my code, to return the same.
>
> LocalVariableGen lg = mg.addLocalVariable("retValue",Type.BOOLEAN,
> null,null);
> int retValue = lg.getIndex();
>
> lg.setStart(il.append(new ASTORE(retValue)));
> /**********
> at this point i need to get the access to the variable for creating the
> further return instruction, if i m not wrong. how do i do the same?
> *********/
> il.append(fac.createReturn(Type.BOOLEAN));
>
> Thanks and Regards,
> Sapan.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: bcel-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic