| java.lang.Object java.lang.Runtime pnuts.lang.PnutsImpl pnuts.ext.ImplementationAdapter
All known Subclasses: pnuts.security.SecurePnutsImpl,
ImplementationAdapter | public class ImplementationAdapter extends PnutsImpl (Code) | | This class is used to customize an existing Implementation.
|
eval | public Object eval(String str, Context context)(Code) | | Evaluate an expreesion
Parameters: str - the expression to be evaluated Parameters: context - the context in which the expression is evaluated the result of the evaluation |
getBaseImpl | public Implementation getBaseImpl()(Code) | | Returns the base Implementation which was passed to the constructor
the base Implementation object. |
load | public Object load(String file, Context context) throws FileNotFoundException(Code) | | Load a script file using classloader
Parameters: file - the name of the script Parameters: context - the context in which the script is executed the result of the evaluation |
load | public Object load(URL scriptURL, Context context)(Code) | | Load a script file from a URL
Parameters: scriptURL - the URL of the script Parameters: context - the context in which the script is executed the result of the evaluation |
loadFile | public Object loadFile(String filename, Context context) throws FileNotFoundException(Code) | | Load a script file from local file system
Parameters: filename - the file name of the script Parameters: context - the context in which the expression is evaluated the result of the evaluation |
Methods inherited from pnuts.lang.PnutsImpl | public Object accept(SimpleNode node, Context context)(Code)(Java Doc) protected Object acceptNode(SimpleNode node, Context context)(Code)(Java Doc) public Object eval(String expr, Context context)(Code)(Java Doc) public static PnutsImpl getDefault()(Code)(Java Doc) public Object load(String file, Context context) throws FileNotFoundException(Code)(Java Doc) public Object load(URL scriptURL, Context context)(Code)(Java Doc) public Object loadFile(String filename, Context context) throws FileNotFoundException(Code)(Java Doc) protected void popFile(Context context)(Code)(Java Doc) protected void provide(String file, Context context)(Code)(Java Doc) protected void pushFile(Object file, Context context)(Code)(Java Doc) public String queryProperty(String key)(Code)(Java Doc) protected void revoke(String file, Context context)(Code)(Java Doc) public void setProperties(Properties properties)(Code)(Java Doc) public void setProperty(String key, String value)(Code)(Java Doc)
|
|
|