开发者

How would my Java program process a JS file to extract function names? [duplicate]

This question already has answers here: Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜