0 Replies Latest reply on Sep 4, 2013 6:30 PM by diego.adrada

    Read value of variable with Javassist

    diego.adrada

      I'm using Javassist to get the Fields on a Class, using the following code:

       

      for (CtField ctf : ctclass.getDeclaredFields()) {
         System.out.println(ctf.getName());
      
      }
      

      Thus, all the variables of the class to which I am accessing, are displayed on the screen and this works well.

      What I want to know is it is possible to access the value of any of these variables?

      Thanks for your help!