MCPcopy Create free account
hub / github.com/mozilla/rhino / help

Method help

examples/src/main/java/Shell.java:124–141  ·  view source on GitHub ↗

Print a help message. This method is defined as a JavaScript function.

()

Source from the content-addressed store, hash-verified

122 * <p>This method is defined as a JavaScript function.
123 */
124 public void help() {
125 p("");
126 p("Command Description");
127 p("======= ===========");
128 p("help() Display usage and help messages. ");
129 p("defineClass(className) Define an extension using the Java class");
130 p(" named with the string argument. ");
131 p(" Uses ScriptableObject.defineClass(). ");
132 p("load(['foo.js', ...]) Load JavaScript source files named by ");
133 p(" string arguments. ");
134 p("loadClass(className) Load a class named by a string argument.");
135 p(" The class must be a script compiled to a");
136 p(" class file. ");
137 p("print([expr ...]) Evaluate and print expressions. ");
138 p("quit() Quit the shell. ");
139 p("version([number]) Get or set the JavaScript version number.");
140 p("");
141 }
142
143 /**
144 * Print the string values of its arguments.

Callers

nothing calls this directly

Calls 1

pMethod · 0.95

Tested by

no test coverage detected