• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

find class name

 
manesh dalavi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I want to find the names of all classes exist in one java file how to do that
except parsing
-manesh
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch

The easiest alternative to parsing is that you can read the file yourself!
 
Sree Chinna
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use an IDE .
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic