Anuj Pandit

Usage of reflection api or any alternatives in Blaze

Discussion created by Anuj Pandit on Jun 17, 2010
Latest reply on Jun 30, 2010 by Anuj Pandit

Hi,

 

Need to use reflection api or any alternatives in Blaze.

 

I have the variable name in a string. A variable name with the value in the string already exists.

 

Now my goal is to read the variable from the string.

 

At PSEDOCODE level:

READ("myvariablename") should give me value of myvariablename.

 

I was trying to call getDeclaredField method of java.lang.Class, but it gave me compilation errors.

 

Please suggest.

 

Thanks.

 

Regards,

Anuj Pandit

Outcomes