title: javax.script - rhino - how can view or edit native functions?
body: <p>I want to implement a function that is similar to JSON.stringify.</p>
  
  <p>When I call:</p>
  
  <pre><code>    ScriptEngine engine = new ScriptEngineManager().getEngineByName("JavaScript");
      Object eval = engine.eval("JSON.stringify");
      System.out.println(eval);
  </code></pre>
  
  <p>I get <strong>sun.org.mozilla.javascript.internal.IdFunctionObject</strong>.
  But how can I really view how is it implemented ?
  Can I edit or add such "native" functions ?</p>
  
  <p>Don't offer to implement <strong>sun.org.mozilla.javascript.internal.Function</strong> - I know this ability, but want gain some knowledge about how native functions work.</p>