public class BasicRhinoShell
extends org.mozilla.javascript.ScriptableObject
Constructor and Description |
---|
BasicRhinoShell() |
Modifier and Type | Method and Description |
---|---|
static void |
exec(java.lang.String[] args,
org.mozilla.javascript.ErrorReporter reporter)
Main entry point.
|
java.lang.String |
getClassName() |
void |
help()
Print a help message.
|
static void |
load(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
Load and execute a set of JavaScript source files.
|
static void |
print(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
Print the string values of its arguments.
|
static java.lang.String[] |
processOptions(org.mozilla.javascript.Context cx,
java.lang.String[] args)
Parse arguments.
|
void |
quit()
Quit the BasicRhinoShell.
|
java.lang.String |
readFile(java.lang.String path)
This method is defined as a JavaScript function.
|
static double |
version(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
Get and set the language version.
|
static void |
warn(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj) |
associateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype
public java.lang.String getClassName()
getClassName
in interface org.mozilla.javascript.Scriptable
getClassName
in class org.mozilla.javascript.ScriptableObject
public static void exec(java.lang.String[] args, org.mozilla.javascript.ErrorReporter reporter)
public static java.lang.String[] processOptions(org.mozilla.javascript.Context cx, java.lang.String[] args)
public void help()
public static void print(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj)
public void quit()
public static void warn(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj)
public java.lang.String readFile(java.lang.String path)
public static double version(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj)
public static void load(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj)
Copyright © 2012-2014. All Rights Reserved.