public interface Implementation
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(SimpleNode node,
Context context)
Interpret an AST
|
java.lang.Object |
eval(java.lang.String expr,
Context context)
Evaluate an expreesion
|
java.lang.Object |
load(java.lang.String file,
Context context)
Load a script file using classloader
|
java.lang.Object |
load(java.net.URL scriptURL,
Context context)
Load a script file from a URL
|
java.lang.Object |
loadFile(java.lang.String filename,
Context context)
Load a script file from local file system
|
java.lang.Object eval(java.lang.String expr,
Context context)
expr - the expression to be evaluatedcontext - the context in which the expression is evaluatedjava.lang.Object loadFile(java.lang.String filename,
Context context)
throws java.io.FileNotFoundException
filename - the file name of the scriptcontext - the context in which the expression is evaluatedjava.io.FileNotFoundExceptionjava.lang.Object load(java.lang.String file,
Context context)
throws java.io.FileNotFoundException
file - the name of the scriptcontext - the context in which the script is executedjava.io.FileNotFoundExceptionjava.lang.Object load(java.net.URL scriptURL,
Context context)
scriptURL - the URL of the scriptcontext - the context in which the script is executedjava.lang.Object accept(SimpleNode node, Context context)
node - the ASTcontext - the context in which the AST is interpreted