thanx ! ya that i know that we can get the methods and fields list from javap for specific class. but i need only fields it is just because i want to this for each and every class in java for creating Jtree.
posted 13 years ago
If you're looking to not get the methods, then I don't believe that can be done with javap alone. You could use javap and then parse the output to just get the non-method data. For instance, if the line contained a "(", then ignore that line. Good Luck.