• Post Reply Bookmark Topic Watch Topic
  • New Topic

find class name  RSS feed

 
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
Marshal
Posts: 55772
163
  • 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
Marshal
Posts: 55772
163
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!