|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpnuts.lang.Runtime
pnuts.lang.PnutsImpl
pnuts.ext.PnutsImplAdapter
public class PnutsImplAdapter
This class is used to customize an existing PnutsImpl.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class pnuts.lang.Runtime |
---|
Runtime.Accessor, Runtime.Break, Runtime.Continue, Runtime.FunctionSerializer, Runtime.TypeMap |
Field Summary |
---|
Fields inherited from class pnuts.lang.PnutsImpl |
---|
properties |
Fields inherited from class pnuts.lang.Runtime |
---|
BOOLEAN_SYMBOL, BYTE_SYMBOL, CHAR_SYMBOL, CLONE, DOUBLE_SYMBOL, EXCEPTOIN_FIELD_SYMBOL, FLOAT_SYMBOL, INT_SYMBOL, LONG_SYMBOL, SHORT_SYMBOL, VOID_SYMBOL |
Constructor Summary | |
---|---|
PnutsImplAdapter(PnutsImpl impl)
Deprecated. |
Method Summary | |
---|---|
java.lang.Object |
accept(SimpleNode node,
Context context)
Deprecated. Interpret an AST |
java.lang.Object |
eval(java.lang.String str,
Context context)
Deprecated. Evaluate an expreesion |
PnutsImpl |
getBaseImpl()
Deprecated. Returns the base PnutsImpl which was passed to the constructor |
java.lang.Object |
load(java.lang.String file,
Context context)
Deprecated. Load a script file using classloader |
java.lang.Object |
load(java.net.URL scriptURL,
Context context)
Deprecated. Load a script file from a URL |
java.lang.Object |
loadFile(java.lang.String filename,
Context context)
Deprecated. Load a script file from local file system |
Methods inherited from class pnuts.lang.PnutsImpl |
---|
getDefault, popFile, provide, pushFile, queryProperty, revoke, setProperties, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PnutsImplAdapter(PnutsImpl impl)
Method Detail |
---|
public PnutsImpl getBaseImpl()
public java.lang.Object eval(java.lang.String str, Context context)
eval
in interface Implementation
eval
in class PnutsImpl
str
- the expression to be evaluatedcontext
- the context in which the expression is evaluated
public java.lang.Object loadFile(java.lang.String filename, Context context) throws java.io.FileNotFoundException
loadFile
in interface Implementation
loadFile
in class PnutsImpl
filename
- the file name of the scriptcontext
- the context in which the expression is evaluated
java.io.FileNotFoundException
public java.lang.Object load(java.lang.String file, Context context) throws java.io.FileNotFoundException
load
in interface Implementation
load
in class PnutsImpl
file
- the name of the scriptcontext
- the context in which the script is executed
java.io.FileNotFoundException
public java.lang.Object load(java.net.URL scriptURL, Context context)
load
in interface Implementation
load
in class PnutsImpl
scriptURL
- the URL of the scriptcontext
- the context in which the script is executed
public java.lang.Object accept(SimpleNode node, Context context)
Implementation
accept
in interface Implementation
accept
in class PnutsImpl
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 |