コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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();
 }
コード例 #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();
 }