Пример #1
0
 /** Evaluates the given script. */
 public void evalScript(final String url, final String text) {
   DimIProxy action = new DimIProxy(this, IPROXY_EVAL_SCRIPT);
   action.url = url;
   action.text = text;
   action.withContext();
 }
Пример #2
0
 /** Returns whether the given string is syntactically valid script. */
 public boolean stringIsCompilableUnit(String str) {
   DimIProxy action = new DimIProxy(this, IPROXY_STRING_IS_COMPILABLE);
   action.text = str;
   action.withContext();
   return action.booleanResult;
 }
Пример #3
0
 /** Compiles the given script. */
 public void compileScript(String url, String text) {
   DimIProxy action = new DimIProxy(this, IPROXY_COMPILE_SCRIPT);
   action.url = url;
   action.text = text;
   action.withContext();
 }