public class CJsonProcessor extends RhinoBasedProcessor
http://stevehanov.ca/blog/index.php?id=104.| Modifier and Type | Field and Description |
|---|---|
private boolean |
pack |
commonsScript, cycleScript, envScript, LOG, resourceFactory| Constructor and Description |
|---|
CJsonProcessor(ResourceFactory resourceFactory,
boolean pack) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initScope(org.mozilla.javascript.Context context,
org.mozilla.javascript.ScriptableObject globalScope) |
protected java.lang.String |
process(org.mozilla.javascript.Context context,
org.mozilla.javascript.Scriptable scope,
Resource resource,
java.lang.String content) |
addClientSideEnvironment, addCommon, addJSON, buildSimpleRunScript, callModuleFunction, evaluate, evaluate, evaluate, evaluateFromClasspath, evaluateFromWebjar, process, setupModule, toJSMultiLineStringdestroypublic CJsonProcessor(ResourceFactory resourceFactory, boolean pack)
protected void initScope(org.mozilla.javascript.Context context,
org.mozilla.javascript.ScriptableObject globalScope)
throws java.io.IOException
initScope in class RhinoBasedProcessorjava.io.IOExceptionprotected java.lang.String process(org.mozilla.javascript.Context context,
org.mozilla.javascript.Scriptable scope,
Resource resource,
java.lang.String content)
throws java.lang.Exception
process in class RhinoBasedProcessorjava.lang.Exception