Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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();
 }
Ejemplo 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();
 }