|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pnuts.lang.PnutsImpl | +--pnuts.ext.CachedPnutsImpl
PnutsImpl which caches parsed (compiled) scripts and reuse them. This class is useful when same scripts are executed over and over, e.g. servlet scripts.
PnutsImpl
Constructor Summary | |
CachedPnutsImpl()
|
|
CachedPnutsImpl(boolean useCompiler)
|
Method Summary | |
void |
includeLineNo(boolean flag)
|
java.lang.Object |
load(java.net.URL scriptURL,
Context context)
Load a script file from a URL |
void |
reset()
Reset the cache entries |
Methods inherited from class pnuts.lang.PnutsImpl |
accept, checkException, eval, load, load, loadFile, popFile, pushFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CachedPnutsImpl()
public CachedPnutsImpl(boolean useCompiler)
useCompiler
- true if compiler is used (default)Method Detail |
public void includeLineNo(boolean flag)
public void reset()
public java.lang.Object load(java.net.URL scriptURL, Context context)
load
in class PnutsImpl
scriptURL
- the URL of the scriptcontext
- the context in which the script is executed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |