|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Implementation
Defines an abstract interface of script interpreter's implementation,
Context.setImplementation(Implementation),
Context.getImplementation()| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
java.lang.Object eval(java.lang.String expr,
Context context)
expr - the expression to be evaluatedcontext - the context in which the expression is evaluated
java.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 evaluated
java.io.FileNotFoundException
java.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 executed
java.io.FileNotFoundException
java.lang.Object load(java.net.URL scriptURL,
Context context)
scriptURL - the URL of the scriptcontext - the context in which the script is executed
java.lang.Object accept(SimpleNode node,
Context context)
node - the ASTcontext - the context in which the AST is interpreted
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||