File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes find class name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "find class name" Watch "find class name" New topic

find class name

manesh dalavi

Joined: Nov 22, 2007
Posts: 1
Hi All,
I want to find the names of all classes exist in one java file how to do that
except parsing
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38509
Welcome to JavaRanch

The easiest alternative to parsing is that you can read the file yourself!
Sree Chinna
Ranch Hand

Joined: Jul 15, 2008
Posts: 42
Use an IDE .
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38509
Originally posted by Sree Chinna:
Use an IDE .
But an IDE uses parsing. Actually, they don't usually enumerate the classes in a particular file.
jQuery in Action, 2nd edition
subject: find class name