tv.bodil.testlol
Class ScriptLoader

java.lang.Object
  extended by tv.bodil.testlol.ScriptLoader

public class ScriptLoader
extends Object


Constructor Summary
ScriptLoader()
           
 
Method Summary
static org.mozilla.javascript.Script compileScript(org.mozilla.javascript.Context cx, String path)
           
static File copyClasspathResource(org.mozilla.javascript.Context cx, String path)
           
static void evaluateScript(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, File file, String path)
           
static List<File> findTests(File path)
           
static boolean isScript(File path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptLoader

public ScriptLoader()
Method Detail

isScript

public static boolean isScript(File path)

findTests

public static List<File> findTests(File path)

evaluateScript

public static void evaluateScript(org.mozilla.javascript.Context cx,
                                  org.mozilla.javascript.Scriptable scope,
                                  File file,
                                  String path)
                           throws IOException
Throws:
IOException

compileScript

public static org.mozilla.javascript.Script compileScript(org.mozilla.javascript.Context cx,
                                                          String path)
                                                   throws IOException
Throws:
IOException

copyClasspathResource

public static File copyClasspathResource(org.mozilla.javascript.Context cx,
                                         String path)
                                  throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.