I think your best bet is to read the *.java source file as a text document, then parse it into seperate entities, extract the method names and print them.
Parsing it shouldnt be too tricky in that you know the method signatures are in this form:
visibility returnType methodName(optionalParams)
Mind you, some parts of that are optional, but if this is for internal use and you know exactly how your code is comprised, you shuld be able to work out a fairly simple algorithm for this.
Main Topics
Browse All Topics





by: bazarnyPosted on 2006-11-01 at 20:24:44ID: 17855540
Do you need this inside IDE? If so, check out jdt