Beispiel #1
0
 protected final XMLLib bindToScope(Scriptable scope) {
   ScriptableObject so = ScriptRuntime.getLibraryScopeOrNull(scope);
   if (so == null) {
     // standard library should be initialized at this point
     throw new IllegalStateException();
   }
   return (XMLLib) so.associateValue(XML_LIB_KEY, this);
 }