Method Summary |
|
final public static void | __declareInScope(String name, Value val, Scope scope) |
final public static Value | __eval(String str) |
final public static Value | __eval(String str, Scope scope) |
public static void | addParser(Parser parser) Add the parser to list of recognized parsers. |
public static void | addScriptPath(String path) Add the specified path to the paths that are searched to import a
file. |
public static NodeEvaluator | createNodeEvaluator(String name, Node node) Create a NodeEvaluator to evaluate a node. |
public static Value | eval(AbstractFile file) Evaluate from the specified abstract file. |
public static Value | eval(AbstractFile file, Scope scope) Evaluate from the specified abstract file. |
public static Value | eval(String str) Evaluate the specified sting. |
public static Value | eval(String str, Scope scope) Evaluate the specified sting. |
static void | flushNodeEvaluatorCache() Flush the node-evaluator-cache... |
public static Scope | getGlobalScope() Get the global scope object. |
public static Iterator | getScriptPath() Return an iterator of entries in the script-path. |
public static String | getVersionString() Get a descriptive version string. |
public static Value | importHelper(String path, Scope scope) helper function to implement import statements. |
public static Class | loadClassFromCache(String className) |
final public static void | mountJarFile(AbstractFile file) |
public static Node | parse(AbstractFile file) Parse the input stream to a syntaxtree. |
public static Node | parse(String str) Parse the string to a syntaxtree. |
public static void | registerClassLoader(ClassLoader loader) Register a class loader that we can delegate the act of resolving
classes. |
public static void | removeParser(Parser parser) Remove the parser from list of recognized parsers. |
public static void | removeScriptPath(String path) Remove the specified path to the paths that are searched to import a
file. |
public static AbstractFile | resolve(String path, boolean create) Try to load the specified file from one of the registered filesystems. |
public static void | setErr(PrintStream err) Set the error stream. |
public static void | setIn(InputStream in) Set the input stream. |
public static void | setOut(PrintStream out) Set the output stream. |
public static void | useCompiler(boolean useCompiler) Set whether the compiler should be used or not. |