0

Possible Duplicate:
How to get method name from JavaScript file

I want to fetch Java Script function name in 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?

0

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks for help.I have followed Rhino example which are given in "en.wikipedia.org/wiki/… it i am able to call JS function but if i want to call method of external JS file,it shows me "no such method:hello".How can i solve it?
I am able to solve above problem.Is there any way that i can know that how many function are there in JS file and what is their name?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.