What I want to do is extract this data in a program and list them. I want to be able to look at a class file that has no documentation and find out what is accessible. I can do this by decoding the file via the information at “https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html”. But I am hoping for a simpler way. I have Searched stackoverflow and google but with no luck
I have thought about:
`object.class.instance_methods
object.instance_variables
object.class_variables`
etc. but I would have to invoke the class file during the execution and I not sure if I can do that. EDIT: To make things a bit clearer. I have a FILE if = New File(“jar/file.jar”); This is not in the class path of my program. I can extract a class from it as an InputStream. How do I make sense of that InputStream? Yes I know about javap, I want to do this programmatically.