Get all variables of javascript in JAVA

Posted by Parhs on Stack Overflow See other posts from Stack Overflow or by Parhs
Published on 2010-04-12T16:07:02Z Indexed on 2010/04/12 19:43 UTC
Read the original article Hit count: 159

Filed under:
|

Hello... I am using rhino and Scripting for the Java Platform in order to allow the user extend my application.

However the user can write some cases eg (ASTO.value>440) || (ASTO.bellowNormal) etc... The problem is that before running the script from my JAVA application using ScriptEngine i want to get the names of all the variables! Because i should know which variables are required for the script to run... I know that a regular expression would do the job but i amnt sure... Please i somebody could help me figure out the java regexp to get the variables i would really appriciate it..

© Stack Overflow or respective owner

Related posts about java

Related posts about rhino