Re: Value of local variable

[email protected]
Newsgroups gmane.comp.jakarta.bcel.user
Message-ID <[email protected]>
In general this is not something that can be done, unless a constant value is
stored into the variable. Even then, it would only apply for a certain byte
range. You would need to use a visitor that visited the Code, using

visitCode(Code c)

and then run thru the byte code looking for astore_x, etal, etc, instructions
that were preceded by ldc instructions.

Perhaps you have a specific need that want to resolve?



Quoting Simplice Djoko <[email protected]>:

> Hi everybody,
>    i have a problem to get the value of local variable;
>  someone could help me please?
> thanks for any help
> 
> -- 
> Simplice Djoko.	Equipe cadp. VERIMAG. Grenoble. France.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.