You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bcel-user@jakarta.apache.org by Zaree Faryal <za...@yahoo.com> on 2011/06/08 07:44:22 UTC
How to push a Custom Type Object on Stack
Hi
I know how to push Primitive Types on Stack using
InstructinoList.append(new PUSH(ConstantPoolGen,343));
Now i want to push Custom Type Object(Obj of some user defined class i.e. Engine
Class obj) on Stack in BCEL.
thanks
Re: How to push a Custom Type Object on Stack
Posted by Martin von Gagern <Ma...@gmx.net>.
On 08.06.2011 07:44, Zaree Faryal wrote:
> I know how to push Primitive Types on Stack using
> InstructinoList.append(new PUSH(ConstantPoolGen,343));
>
> Now i want to push Custom Type Object(Obj of some user defined class i.e. Engine
> Class obj) on Stack in BCEL.
Simply create the object; it will lie on the stack after creation until
you do something else with it. Or if you don't want to create it but
load it from some "static final" constant, then use GETSTATIC.
Martin