Is there an elegant way to parse Java sourcecode and to isolate its Strings?
I would like to do that to copy all Strings into an office file with which I can run German spell-checking.
Is there an elegant way to parse Java sourcecode and to isolate its Strings?
I would like to do that to copy all Strings into an office file with which I can run German spell-checking.
You could use properties files
http://www.java-forums.org/blogs/java-basic/974-how-use-properties-file-java.html
You can make a heap dump of your application via jvisualvm, it will save all present in memory String instances. The result will be stored in .hprof file, see How do I analyze a .hprof file?
You can use regular expressions, like in this question: shell: extract string from source code
But probably the better way would be to configure the spell checker of your IDE.