Re: [BCEL-info]Question about variable 'this'
Brought to you by:
dahm
|
From: I.S. W. <I.S...@ne...> - 2002-03-13 11:56:32
|
Hi Emiliano, 'this' always stored in the first local variable of the stack frame.=20 ALOAD_0 will push 'this' onto the stack. To reference an instance field then you need something like: ALOAD_0 GETFIELD #x ; where x is an appropriate reference to the constant pool Regards, Ian On Wed, 13 Mar 2002, Emiliano Tramontana wrote: > Dear BCEL users, >=20 >=20 > I'm just starting making some tests with BCEL and I'd like > to know whether you could answer the following question. >=20 > - Is it possible to access (or reference) the variable 'this' > of an object? If it's so, I don't think it's straightforward, > so could you point me to how I can do? >=20 >=20 > Thanks for your time, > Emiliano >=20 >=20 >=20 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Ing. Emiliano Tramontana > Dipartimento di Matematica e Informatica > Universit=E0 di Catania > Tel. + 39 095 738 3018 > mailto:Tra...@dm... >=20 >=20 >=20 >=20 > _______________________________________________ > BCEL-info mailing list > BCE...@li... > https://lists.sourceforge.net/lists/listinfo/bcel-info >=20 |