Java 类org.mozilla.javascript.commonjs.module.ModuleScript 实例源码

项目:HL4A    文件:SoftCachingModuleScriptProvider.java   
@Override
public ModuleScript getModuleScript(Context cx, String moduleId,
        URI uri, URI base, Scriptable paths)
        throws Exception
{
    // Overridden to clear the reference queue before retrieving the
    // script.
    for(;;) {
        ScriptReference ref = (ScriptReference)scriptRefQueue.poll();
        if(ref == null) {
            break;
        }
        scripts.remove(ref.getModuleId(), ref);
    }
    return super.getModuleScript(cx, moduleId, uri, base, paths);
}
项目:whackpad    文件:SoftCachingModuleScriptProvider.java   
@Override
public ModuleScript getModuleScript(Context cx, String moduleId,
        URI uri, Scriptable paths)
        throws Exception
{
    // Overridden to clear the reference queue before retrieving the 
    // script.
    for(;;) {
        ScriptReference ref = (ScriptReference)scriptRefQueue.poll();
        if(ref == null) {
            break;
        }
        scripts.remove(ref.getModuleId(), ref);
    }
    return super.getModuleScript(cx, moduleId, uri, paths);
}
项目:TaleCraft    文件:SoftCachingModuleScriptProvider.java   
@Override
public ModuleScript getModuleScript(Context cx, String moduleId,
        URI uri, URI base, Scriptable paths)
        throws Exception
{
    // Overridden to clear the reference queue before retrieving the
    // script.
    for(;;) {
        ScriptReference ref = (ScriptReference)scriptRefQueue.poll();
        if(ref == null) {
            break;
        }
        scripts.remove(ref.getModuleId(), ref);
    }
    return super.getModuleScript(cx, moduleId, uri, base, paths);
}
项目:code404    文件:SoftCachingModuleScriptProvider.java   
@Override
public ModuleScript getModuleScript(Context cx, String moduleId,
        URI uri, URI base, Scriptable paths)
        throws Exception
{
    // Overridden to clear the reference queue before retrieving the
    // script.
    for(;;) {
        ScriptReference ref = (ScriptReference)scriptRefQueue.poll();
        if(ref == null) {
            break;
        }
        scripts.remove(ref.getModuleId(), ref);
    }
    return super.getModuleScript(cx, moduleId, uri, base, paths);
}
项目:rhino-jscover    文件:SoftCachingModuleScriptProvider.java   
@Override
public ModuleScript getModuleScript(Context cx, String moduleId,
        URI uri, URI base, Scriptable paths)
        throws Exception
{
    // Overridden to clear the reference queue before retrieving the
    // script.
    for(;;) {
        ScriptReference ref = (ScriptReference)scriptRefQueue.poll();
        if(ref == null) {
            break;
        }
        scripts.remove(ref.getModuleId(), ref);
    }
    return super.getModuleScript(cx, moduleId, uri, base, paths);
}
项目:LoboEvolution    文件:SoftCachingModuleScriptProvider.java   
@Override
public ModuleScript getModuleScript(Context cx, String moduleId,
        URI uri, URI base, Scriptable paths)
        throws Exception
{
    // Overridden to clear the reference queue before retrieving the
    // script.
    for(;;) {
        ScriptReference ref = (ScriptReference)scriptRefQueue.poll();
        if(ref == null) {
            break;
        }
        scripts.remove(ref.getModuleId(), ref);
    }
    return super.getModuleScript(cx, moduleId, uri, base, paths);
}
项目:astor    文件:SoftCachingModuleScriptProvider.java   
@Override
public ModuleScript getModuleScript(Context cx, String moduleId,
        URI uri, URI base, Scriptable paths)
        throws Exception
{
    // Overridden to clear the reference queue before retrieving the
    // script.
    for(;;) {
        ScriptReference ref = (ScriptReference)scriptRefQueue.poll();
        if(ref == null) {
            break;
        }
        scripts.remove(ref.getModuleId(), ref);
    }
    return super.getModuleScript(cx, moduleId, uri, base, paths);
}
项目:Rhino-Prov-Mod    文件:SoftCachingModuleScriptProvider.java   
@Override
public ModuleScript getModuleScript(Context cx, String moduleId,
        URI uri, URI base, Scriptable paths)
        throws Exception
{
    // Overridden to clear the reference queue before retrieving the
    // script.
    for(;;) {
        ScriptReference ref = (ScriptReference)scriptRefQueue.poll();
        if(ref == null) {
            break;
        }
        scripts.remove(ref.getModuleId(), ref);
    }
    return super.getModuleScript(cx, moduleId, uri, base, paths);
}
项目:android-js    文件:SoftCachingModuleScriptProvider.java   
@Override
public ModuleScript getModuleScript(Context cx, String moduleId,
        URI uri, URI base, Scriptable paths)
        throws Exception
{
    // Overridden to clear the reference queue before retrieving the
    // script.
    for(;;) {
        ScriptReference ref = (ScriptReference)scriptRefQueue.poll();
        if(ref == null) {
            break;
        }
        scripts.remove(ref.getModuleId(), ref);
    }
    return super.getModuleScript(cx, moduleId, uri, base, paths);
}
项目:closure-compiler-old    文件:SoftCachingModuleScriptProvider.java   
@Override
public ModuleScript getModuleScript(Context cx, String moduleId,
        URI uri, URI base, Scriptable paths)
        throws Exception
{
    // Overridden to clear the reference queue before retrieving the
    // script.
    for(;;) {
        ScriptReference ref = (ScriptReference)scriptRefQueue.poll();
        if(ref == null) {
            break;
        }
        scripts.remove(ref.getModuleId(), ref);
    }
    return super.getModuleScript(cx, moduleId, uri, base, paths);
}
项目:closure-compiler-copy    文件:SoftCachingModuleScriptProvider.java   
@Override
public ModuleScript getModuleScript(Context cx, String moduleId,
        URI uri, URI base, Scriptable paths)
        throws Exception
{
    // Overridden to clear the reference queue before retrieving the
    // script.
    for(;;) {
        ScriptReference ref = (ScriptReference)scriptRefQueue.poll();
        if(ref == null) {
            break;
        }
        scripts.remove(ref.getModuleId(), ref);
    }
    return super.getModuleScript(cx, moduleId, uri, base, paths);
}
项目:HL4A    文件:MultiModuleScriptProvider.java   
public ModuleScript getModuleScript(Context cx, String moduleId, URI uri,
                                    URI base, Scriptable paths) throws Exception {
    for (ModuleScriptProvider provider : providers) {
        final ModuleScript script = provider.getModuleScript(cx, moduleId,
                uri, base, paths);
        if(script != null) {
            return script;
        }
    }
    return null;
}
项目:HL4A    文件:CachingModuleScriptProviderBase.java   
public ModuleScript getModuleScript(Context cx, String moduleId,
        URI moduleUri, URI baseUri, Scriptable paths) throws Exception
{
    final CachedModuleScript cachedModule1 = getLoadedModule(moduleId);
    final Object validator1 = getValidator(cachedModule1);
    final ModuleSource moduleSource = (moduleUri == null)
            ? moduleSourceProvider.loadSource(moduleId, paths, validator1)
            : moduleSourceProvider.loadSource(moduleUri, baseUri, validator1);
    if(moduleSource == ModuleSourceProvider.NOT_MODIFIED) {
        return cachedModule1.getModule();
    }
    if(moduleSource == null) {
        return null;
    }
    final Reader reader = moduleSource.getReader();
    try {
        final int idHash = moduleId.hashCode();
        synchronized(loadLocks[(idHash >>> loadLockShift) & loadLockMask]) {
            final CachedModuleScript cachedModule2 = getLoadedModule(moduleId);
            if(cachedModule2 != null) {
                if(!equal(validator1, getValidator(cachedModule2))) {
                    return cachedModule2.getModule();
                }
            }
            final URI sourceUri = moduleSource.getUri();
            final ModuleScript moduleScript = new ModuleScript(
                    cx.compileReader(reader, sourceUri.toString(), 1,
                            moduleSource.getSecurityDomain()),
                    sourceUri, moduleSource.getBase());
            putLoadedModule(moduleId, moduleScript,
                    moduleSource.getValidator());
            return moduleScript;
        }
    }
    finally {
        reader.close();
    }
}
项目:HL4A    文件:SoftCachingModuleScriptProvider.java   
@Override
protected void putLoadedModule(String moduleId, ModuleScript moduleScript,
        Object validator)
{
    scripts.put(moduleId, new ScriptReference(moduleScript.getScript(),
            moduleId, moduleScript.getUri(), moduleScript.getBase(),
            validator, scriptRefQueue));
}
项目:HL4A    文件:SoftCachingModuleScriptProvider.java   
CachedModuleScript getCachedModuleScript() {
    final Script script = get();
    if(script == null) {
        return null;
    }
    return new CachedModuleScript(new ModuleScript(script, uri, base),
            validator);
}
项目:whackpad    文件:MultiModuleScriptProvider.java   
public ModuleScript getModuleScript(Context cx, String moduleId, URI uri,
                                    Scriptable paths) throws Exception {
    for (ModuleScriptProvider provider : providers) {
        final ModuleScript script = provider.getModuleScript(cx, moduleId,
                uri, paths);
        if(script != null) {
            return script;
        }
    }
    return null;
}
项目:whackpad    文件:CachingModuleScriptProviderBase.java   
public ModuleScript getModuleScript(Context cx, String moduleId, 
        URI moduleUri, Scriptable paths) throws Exception
{
    final CachedModuleScript cachedModule1 = getLoadedModule(moduleId);
    final Object validator1 = getValidator(cachedModule1);
    final ModuleSource moduleSource = (moduleUri == null)
            ? moduleSourceProvider.loadSource(moduleId, paths, validator1)
            : moduleSourceProvider.loadSource(moduleUri, validator1);
    if(moduleSource == ModuleSourceProvider.NOT_MODIFIED) {
        return cachedModule1.getModule();
    }
    if(moduleSource == null) {
        return null;
    }
    final Reader reader = moduleSource.getReader();
    try {
        final int idHash = moduleId.hashCode();
        synchronized(loadLocks[(idHash >>> loadLockShift) & loadLockMask]) {
            final CachedModuleScript cachedModule2 = getLoadedModule(moduleId);
            if(cachedModule2 != null) {
                if(!equal(validator1, getValidator(cachedModule2))) {
                    return cachedModule2.getModule();
                }
            }
            final URI sourceUri = moduleSource.getUri();
            final ModuleScript moduleScript = new ModuleScript(
                    cx.compileReader(reader, sourceUri.toString(), 1,
                            moduleSource.getSecurityDomain()),
                    sourceUri, moduleSource.getBase());
            putLoadedModule(moduleId, moduleScript,
                    moduleSource.getValidator());
            return moduleScript;
        }
    }
    finally {
        reader.close();
    }
}
项目:whackpad    文件:SoftCachingModuleScriptProvider.java   
@Override
protected void putLoadedModule(String moduleId, ModuleScript moduleScript,
        Object validator)
{
    scripts.put(moduleId, new ScriptReference(moduleScript.getScript(), 
            moduleId, moduleScript.getUri(), moduleScript.getBase(),
            validator, scriptRefQueue));
}
项目:whackpad    文件:SoftCachingModuleScriptProvider.java   
CachedModuleScript getCachedModuleScript() {
    final Script script = get();
    if(script == null) {
        return null;
    }
    return new CachedModuleScript(new ModuleScript(script, uri, base),
            validator); 
}
项目:TaleCraft    文件:MultiModuleScriptProvider.java   
@Override
public ModuleScript getModuleScript(Context cx, String moduleId, URI uri,
                                      URI base, Scriptable paths) throws Exception {
      for (ModuleScriptProvider provider : providers) {
          final ModuleScript script = provider.getModuleScript(cx, moduleId,
                  uri, base, paths);
          if(script != null) {
              return script;
          }
      }
      return null;
  }
项目:TaleCraft    文件:CachingModuleScriptProviderBase.java   
@Override
public ModuleScript getModuleScript(Context cx, String moduleId,
          URI moduleUri, URI baseUri, Scriptable paths) throws Exception
  {
      final CachedModuleScript cachedModule1 = getLoadedModule(moduleId);
      final Object validator1 = getValidator(cachedModule1);
      final ModuleSource moduleSource = (moduleUri == null)
              ? moduleSourceProvider.loadSource(moduleId, paths, validator1)
              : moduleSourceProvider.loadSource(moduleUri, baseUri, validator1);
      if(moduleSource == ModuleSourceProvider.NOT_MODIFIED) {
          return cachedModule1.getModule();
      }
      if(moduleSource == null) {
          return null;
      }
      final Reader reader = moduleSource.getReader();
      try {
          final int idHash = moduleId.hashCode();
          synchronized(loadLocks[(idHash >>> loadLockShift) & loadLockMask]) {
              final CachedModuleScript cachedModule2 = getLoadedModule(moduleId);
              if(cachedModule2 != null) {
                  if(!equal(validator1, getValidator(cachedModule2))) {
                      return cachedModule2.getModule();
                  }
              }
              final URI sourceUri = moduleSource.getUri();
              final ModuleScript moduleScript = new ModuleScript(
                      cx.compileReader(reader, sourceUri.toString(), 1,
                              moduleSource.getSecurityDomain()),
                      sourceUri, moduleSource.getBase());
              putLoadedModule(moduleId, moduleScript,
                      moduleSource.getValidator());
              return moduleScript;
          }
      }
      finally {
          reader.close();
      }
  }
项目:TaleCraft    文件:SoftCachingModuleScriptProvider.java   
@Override
protected void putLoadedModule(String moduleId, ModuleScript moduleScript,
        Object validator)
{
    scripts.put(moduleId, new ScriptReference(moduleScript.getScript(),
            moduleId, moduleScript.getUri(), moduleScript.getBase(),
            validator, scriptRefQueue));
}
项目:TaleCraft    文件:SoftCachingModuleScriptProvider.java   
CachedModuleScript getCachedModuleScript() {
    final Script script = get();
    if(script == null) {
        return null;
    }
    return new CachedModuleScript(new ModuleScript(script, uri, base),
            validator);
}
项目:code404    文件:MultiModuleScriptProvider.java   
public ModuleScript getModuleScript(Context cx, String moduleId, URI uri,
                                    URI base, Scriptable paths) throws Exception {
    for (ModuleScriptProvider provider : providers) {
        final ModuleScript script = provider.getModuleScript(cx, moduleId,
                uri, base, paths);
        if(script != null) {
            return script;
        }
    }
    return null;
}
项目:code404    文件:CachingModuleScriptProviderBase.java   
public ModuleScript getModuleScript(Context cx, String moduleId,
        URI moduleUri, URI baseUri, Scriptable paths) throws Exception
{
    final CachedModuleScript cachedModule1 = getLoadedModule(moduleId);
    final Object validator1 = getValidator(cachedModule1);
    final ModuleSource moduleSource = (moduleUri == null)
            ? moduleSourceProvider.loadSource(moduleId, paths, validator1)
            : moduleSourceProvider.loadSource(moduleUri, baseUri, validator1);
    if(moduleSource == ModuleSourceProvider.NOT_MODIFIED) {
        return cachedModule1.getModule();
    }
    if(moduleSource == null) {
        return null;
    }
    final Reader reader = moduleSource.getReader();
    try {
        final int idHash = moduleId.hashCode();
        synchronized(loadLocks[(idHash >>> loadLockShift) & loadLockMask]) {
            final CachedModuleScript cachedModule2 = getLoadedModule(moduleId);
            if(cachedModule2 != null) {
                if(!equal(validator1, getValidator(cachedModule2))) {
                    return cachedModule2.getModule();
                }
            }
            final URI sourceUri = moduleSource.getUri();
            final ModuleScript moduleScript = new ModuleScript(
                    cx.compileReader(reader, sourceUri.toString(), 1,
                            moduleSource.getSecurityDomain()),
                    sourceUri, moduleSource.getBase());
            putLoadedModule(moduleId, moduleScript,
                    moduleSource.getValidator());
            return moduleScript;
        }
    }
    finally {
        reader.close();
    }
}
项目:code404    文件:SoftCachingModuleScriptProvider.java   
@Override
protected void putLoadedModule(String moduleId, ModuleScript moduleScript,
        Object validator)
{
    scripts.put(moduleId, new ScriptReference(moduleScript.getScript(),
            moduleId, moduleScript.getUri(), moduleScript.getBase(),
            validator, scriptRefQueue));
}
项目:code404    文件:SoftCachingModuleScriptProvider.java   
CachedModuleScript getCachedModuleScript() {
    final Script script = get();
    if(script == null) {
        return null;
    }
    return new CachedModuleScript(new ModuleScript(script, uri, base),
            validator);
}
项目:rhino-jscover    文件:MultiModuleScriptProvider.java   
public ModuleScript getModuleScript(Context cx, String moduleId, URI uri,
                                    URI base, Scriptable paths) throws Exception {
    for (ModuleScriptProvider provider : providers) {
        final ModuleScript script = provider.getModuleScript(cx, moduleId,
                uri, base, paths);
        if(script != null) {
            return script;
        }
    }
    return null;
}
项目:rhino-jscover    文件:CachingModuleScriptProviderBase.java   
public ModuleScript getModuleScript(Context cx, String moduleId,
        URI moduleUri, URI baseUri, Scriptable paths) throws Exception
{
    final CachedModuleScript cachedModule1 = getLoadedModule(moduleId);
    final Object validator1 = getValidator(cachedModule1);
    final ModuleSource moduleSource = (moduleUri == null)
            ? moduleSourceProvider.loadSource(moduleId, paths, validator1)
            : moduleSourceProvider.loadSource(moduleUri, baseUri, validator1);
    if(moduleSource == ModuleSourceProvider.NOT_MODIFIED) {
        return cachedModule1.getModule();
    }
    if(moduleSource == null) {
        return null;
    }
    final Reader reader = moduleSource.getReader();
    try {
        final int idHash = moduleId.hashCode();
        synchronized(loadLocks[(idHash >>> loadLockShift) & loadLockMask]) {
            final CachedModuleScript cachedModule2 = getLoadedModule(moduleId);
            if(cachedModule2 != null) {
                if(!equal(validator1, getValidator(cachedModule2))) {
                    return cachedModule2.getModule();
                }
            }
            final URI sourceUri = moduleSource.getUri();
            final ModuleScript moduleScript = new ModuleScript(
                    cx.compileReader(reader, sourceUri.toString(), 1,
                            moduleSource.getSecurityDomain()),
                    sourceUri, moduleSource.getBase());
            putLoadedModule(moduleId, moduleScript,
                    moduleSource.getValidator());
            return moduleScript;
        }
    }
    finally {
        reader.close();
    }
}
项目:rhino-jscover    文件:SoftCachingModuleScriptProvider.java   
@Override
protected void putLoadedModule(String moduleId, ModuleScript moduleScript,
        Object validator)
{
    scripts.put(moduleId, new ScriptReference(moduleScript.getScript(),
            moduleId, moduleScript.getUri(), moduleScript.getBase(),
            validator, scriptRefQueue));
}
项目:rhino-jscover    文件:SoftCachingModuleScriptProvider.java   
CachedModuleScript getCachedModuleScript() {
    final Script script = get();
    if(script == null) {
        return null;
    }
    return new CachedModuleScript(new ModuleScript(script, uri, base),
            validator);
}
项目:LoboEvolution    文件:MultiModuleScriptProvider.java   
@Override
public ModuleScript getModuleScript(Context cx, String moduleId, URI uri,
                                       URI base, Scriptable paths) throws Exception {
       for (ModuleScriptProvider provider : providers) {
           final ModuleScript script = provider.getModuleScript(cx, moduleId,
                   uri, base, paths);
           if(script != null) {
               return script;
           }
       }
       return null;
   }
项目:LoboEvolution    文件:CachingModuleScriptProviderBase.java   
@Override
public ModuleScript getModuleScript(Context cx, String moduleId,
           URI moduleUri, URI baseUri, Scriptable paths) throws Exception
   {
       final CachedModuleScript cachedModule1 = getLoadedModule(moduleId);
       final Object validator1 = getValidator(cachedModule1);
       final ModuleSource moduleSource = (moduleUri == null)
               ? moduleSourceProvider.loadSource(moduleId, paths, validator1)
               : moduleSourceProvider.loadSource(moduleUri, baseUri, validator1);
       if(moduleSource == ModuleSourceProvider.NOT_MODIFIED) {
           return cachedModule1.getModule();
       }
       if(moduleSource == null) {
           return null;
       }
       final Reader reader = moduleSource.getReader();
       try {
           final int idHash = moduleId.hashCode();
           synchronized(loadLocks[(idHash >>> loadLockShift) & loadLockMask]) {
               final CachedModuleScript cachedModule2 = getLoadedModule(moduleId);
               if(cachedModule2 != null) {
                   if(!equal(validator1, getValidator(cachedModule2))) {
                       return cachedModule2.getModule();
                   }
               }
               final URI sourceUri = moduleSource.getUri();
               final ModuleScript moduleScript = new ModuleScript(
                       cx.compileReader(reader, sourceUri.toString(), 1,
                               moduleSource.getSecurityDomain()),
                       sourceUri, moduleSource.getBase());
               putLoadedModule(moduleId, moduleScript,
                       moduleSource.getValidator());
               return moduleScript;
           }
       }
       finally {
           reader.close();
       }
   }
项目:LoboEvolution    文件:SoftCachingModuleScriptProvider.java   
@Override
protected void putLoadedModule(String moduleId, ModuleScript moduleScript,
        Object validator)
{
    scripts.put(moduleId, new ScriptReference(moduleScript.getScript(),
            moduleId, moduleScript.getUri(), moduleScript.getBase(),
            validator, scriptRefQueue));
}
项目:LoboEvolution    文件:SoftCachingModuleScriptProvider.java   
CachedModuleScript getCachedModuleScript() {
    final Script script = get();
    if(script == null) {
        return null;
    }
    return new CachedModuleScript(new ModuleScript(script, uri, base),
            validator);
}
项目:astor    文件:MultiModuleScriptProvider.java   
public ModuleScript getModuleScript(Context cx, String moduleId, URI uri,
                                    URI base, Scriptable paths) throws Exception {
    for (ModuleScriptProvider provider : providers) {
        final ModuleScript script = provider.getModuleScript(cx, moduleId,
                uri, base, paths);
        if(script != null) {
            return script;
        }
    }
    return null;
}
项目:astor    文件:CachingModuleScriptProviderBase.java   
public ModuleScript getModuleScript(Context cx, String moduleId,
        URI moduleUri, URI baseUri, Scriptable paths) throws Exception
{
    final CachedModuleScript cachedModule1 = getLoadedModule(moduleId);
    final Object validator1 = getValidator(cachedModule1);
    final ModuleSource moduleSource = (moduleUri == null)
            ? moduleSourceProvider.loadSource(moduleId, paths, validator1)
            : moduleSourceProvider.loadSource(moduleUri, baseUri, validator1);
    if(moduleSource == ModuleSourceProvider.NOT_MODIFIED) {
        return cachedModule1.getModule();
    }
    if(moduleSource == null) {
        return null;
    }
    final Reader reader = moduleSource.getReader();
    try {
        final int idHash = moduleId.hashCode();
        synchronized(loadLocks[(idHash >>> loadLockShift) & loadLockMask]) {
            final CachedModuleScript cachedModule2 = getLoadedModule(moduleId);
            if(cachedModule2 != null) {
                if(!equal(validator1, getValidator(cachedModule2))) {
                    return cachedModule2.getModule();
                }
            }
            final URI sourceUri = moduleSource.getUri();
            final ModuleScript moduleScript = new ModuleScript(
                    cx.compileReader(reader, sourceUri.toString(), 1,
                            moduleSource.getSecurityDomain()),
                    sourceUri, moduleSource.getBase());
            putLoadedModule(moduleId, moduleScript,
                    moduleSource.getValidator());
            return moduleScript;
        }
    }
    finally {
        reader.close();
    }
}
项目:astor    文件:SoftCachingModuleScriptProvider.java   
@Override
protected void putLoadedModule(String moduleId, ModuleScript moduleScript,
        Object validator)
{
    scripts.put(moduleId, new ScriptReference(moduleScript.getScript(),
            moduleId, moduleScript.getUri(), moduleScript.getBase(),
            validator, scriptRefQueue));
}
项目:astor    文件:SoftCachingModuleScriptProvider.java   
CachedModuleScript getCachedModuleScript() {
    final Script script = get();
    if(script == null) {
        return null;
    }
    return new CachedModuleScript(new ModuleScript(script, uri, base),
            validator);
}
项目:Rhino-Prov-Mod    文件:MultiModuleScriptProvider.java   
public ModuleScript getModuleScript(Context cx, String moduleId, URI uri,
                                    URI base, Scriptable paths) throws Exception {
    for (ModuleScriptProvider provider : providers) {
        final ModuleScript script = provider.getModuleScript(cx, moduleId,
                uri, base, paths);
        if(script != null) {
            return script;
        }
    }
    return null;
}