public class TypeScriptProcessor extends RhinoBasedProcessor
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
ecmaScriptVersion |
private static java.lang.String |
PARAM_ERRORS |
private static java.lang.String |
PARAM_SOURCE |
commonsScript, cycleScript, envScript, LOG, resourceFactory| Constructor and Description |
|---|
TypeScriptProcessor(ResourceFactory resourceFactory) |
| 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, toJSMultiLineStringdestroyprivate final java.lang.String ecmaScriptVersion
private static final java.lang.String PARAM_ERRORS
private static final java.lang.String PARAM_SOURCE
public TypeScriptProcessor(ResourceFactory resourceFactory)
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