public class ScriptUtils extends Object
| Constructor and Description |
|---|
ScriptUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
interpretScript(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
String code,
String fileName)
Execute the script in interpreted mode.
|
static org.mozilla.javascript.Script |
tryCompile(org.mozilla.javascript.Context cx,
String code,
String fileName)
Try to compile the script, and return null if the script is too large.
|
Copyright © 2016 Apigee Corporation. All Rights Reserved.