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]
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to