Thinking, I donβt think so. You can watch BCEL though ...
The engineering byte code library is designed to provide users with a convenient way to parse , create, and manipulate (binary) Java class files
Here is a piece that could start with this article.
public class ClassViewer{ private JavaClass clazz; public ClassViewer(String clazz){ this.clazz = Repository.lookupClass(clazz); } public static void main(String args[]){ if(args.length != 1) throw new IllegalArgumentException( "One and only one class at a time!"); ClassViewer viewer = new ClassViewer(args[0]); viewer.start(); } private void start(){ if(this.clazz != null){
source share