开发者

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

开发者 https://www.devze.com 2023-03-24 15:38 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: How to get method name from JavaScript file
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

精彩评论

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