How would my Java program process a JS file to extract function names? [duplicate]
Possible Duplicate:
How to get method name from JavaScript file
I want to fetch Java Script function name in开发者_JAVA技巧 my Java file.I mean i want some solution so that i can go traverse my JS File,find out function name & list out them in my Java file.Is there any way so that i link my JS File,its function name with Java?
You need to parse the javascript file. You can try to use the parser from Rhino, a quick google search shows this thread discussing how to do it.
精彩评论