I have a java code which gets the function names, their return types, their parameters as well as the static variables of a java class. Now I am stuck with getting the names and datatypes of local variables of the methods in the java class. It would be great if you guys would help me out…
Share
The only way to extract the local variable names and their types is to example the debug infomation (assuming its there) in the byte code. You can use a tool like ASM to examine the byte code. Its much harder than using reflection so this is rarely done. 😉