Exemplo n.º 1
0
 /** Returns the value of a property on the given script object. */
 public Object getObjectProperty(Object object, Object id) {
   DimIProxy action = new DimIProxy(this, IPROXY_OBJECT_PROPERTY);
   action.object = object;
   action.id = id;
   action.withContext();
   return action.objectResult;
 }
Exemplo n.º 2
0
 /** Returns an array of the property names on the given script object. */
 public Object[] getObjectIds(Object object) {
   DimIProxy action = new DimIProxy(this, IPROXY_OBJECT_IDS);
   action.object = object;
   action.withContext();
   return action.objectArrayResult;
 }
Exemplo n.º 3
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;
 }
Exemplo n.º 4
0
 /** Converts the given script object to a string. */
 public String objectToString(Object object) {
   DimIProxy action = new DimIProxy(this, IPROXY_OBJECT_TO_STRING);
   action.object = object;
   action.withContext();
   return action.stringResult;
 }
Exemplo n.º 5
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();
 }
Exemplo n.º 6
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();
 }