Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractCellEditor - Class in org.mozilla.javascript.tools.debugger.treetable
- AbstractCellEditor() - Constructor for class org.mozilla.javascript.tools.debugger.treetable.AbstractCellEditor
- actionPerformed(ActionEvent) - Method in class org.mozilla.javascript.tools.debugger.SwingGui
-
Performs an action from the menu or toolbar.
- actionPerformed(ActionEvent) - Method in class org.mozilla.javascript.tools.shell.JSConsole
- addCellEditorListener(CellEditorListener) - Method in class org.mozilla.javascript.tools.debugger.treetable.AbstractCellEditor
- attachTo(ContextFactory) - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Attaches the debugger to the given ContextFactory.
- attachTo(ContextFactory) - Method in class org.mozilla.javascript.tools.debugger.Main
-
Attaches the debugger to the given
ContextFactory.
B
- BREAK - Static variable in class org.mozilla.javascript.tools.debugger.Dim
- breakableLine(int) - Method in class org.mozilla.javascript.tools.debugger.Dim.SourceInfo
-
Returns whether the given line number can have a breakpoint set on it.
- breakpoint(int) - Method in class org.mozilla.javascript.tools.debugger.Dim.SourceInfo
-
Returns whether there is a breakpoint set on the given line.
- breakpoint(int, boolean) - Method in class org.mozilla.javascript.tools.debugger.Dim.SourceInfo
-
Sets or clears the breakpoint flag for the given line.
C
- callProcessFileSecure(Context, Scriptable, String) - Method in class org.mozilla.javascript.tools.shell.JavaPolicySecurity
- callProcessFileSecure(Context, Scriptable, String) - Method in class org.mozilla.javascript.tools.shell.SecurityProxy
- callWithDomain(Object, Context, Callable, Scriptable, Scriptable, Object[]) - Method in class org.mozilla.javascript.tools.shell.JavaPolicySecurity
- cancelCellEditing() - Method in class org.mozilla.javascript.tools.debugger.treetable.AbstractCellEditor
- changedUpdate(DocumentEvent) - Method in class org.mozilla.javascript.tools.shell.ConsoleTextArea
- chooseFile() - Method in class org.mozilla.javascript.tools.shell.JSConsole
- clearAllBreakpoints() - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Clears all breakpoints.
- clearAllBreakpoints() - Method in class org.mozilla.javascript.tools.debugger.Main
-
Removes all breakpoints.
- compileScript(String, String) - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Compiles the given script.
- ConsoleTextArea - Class in org.mozilla.javascript.tools.shell
- ConsoleTextArea(String[]) - Constructor for class org.mozilla.javascript.tools.shell.ConsoleTextArea
- contextCreated(Context) - Method in class org.mozilla.javascript.tools.debugger.Main
-
Deprecated.The method is only present for compatibility and should not be called.
- contextData() - Method in class org.mozilla.javascript.tools.debugger.Dim.StackFrame
-
Returns the ContextData object for the Context.
- ContextData() - Constructor for class org.mozilla.javascript.tools.debugger.Dim.ContextData
- contextEntered(Context) - Method in class org.mozilla.javascript.tools.debugger.Main
-
Deprecated.The method is only present for compatibility and should not be called.
- contextExited(Context) - Method in class org.mozilla.javascript.tools.debugger.Main
-
Deprecated.The method is only present for compatibility and should not be called.
- contextReleased(Context) - Method in class org.mozilla.javascript.tools.debugger.Main
-
Deprecated.The method is only present for compatibility and should not be called.
- contextSwitch(int) - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Switches context to the stack frame with the given index.
- createClassLoader(ClassLoader, Object) - Method in class org.mozilla.javascript.tools.shell.JavaPolicySecurity
- createFileChooser() - Method in class org.mozilla.javascript.tools.shell.JSConsole
- createFileWindow(Dim.SourceInfo, int) - Method in class org.mozilla.javascript.tools.debugger.SwingGui
-
Creates and shows a new
FileWindowfor the given source. - createListSelectionListener() - Method in class org.mozilla.javascript.tools.debugger.treetable.JTreeTable.ListToTreeSelectionModelWrapper
-
Creates and returns an instance of ListSelectionHandler.
- currentContextData() - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Returns the current ContextData object.
D
- defineClass(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
-
Load a Java class that defines a JavaScript object using the conventions outlined in ScriptableObject.defineClass.
- defineClass(ScriptableObject) - Static method in class org.mozilla.javascript.tools.shell.Environment
- delayedFireTableDataChanged() - Method in class org.mozilla.javascript.tools.debugger.treetable.TreeTableModelAdapter
-
Invokes fireTableDataChanged after all the pending events have been processed.
- deserialize(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
- detach() - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Detaches the debugger from the current ContextFactory.
- detach() - Method in class org.mozilla.javascript.tools.debugger.Main
-
Detaches from the current
ContextFactory. - Dim - Class in org.mozilla.javascript.tools.debugger
-
Dim or Debugger Implementation for Rhino.
- Dim() - Constructor for class org.mozilla.javascript.tools.debugger.Dim
- Dim.ContextData - Class in org.mozilla.javascript.tools.debugger
-
Class to store information about a stack.
- Dim.FunctionSource - Class in org.mozilla.javascript.tools.debugger
-
Class to store information about a function.
- Dim.SourceInfo - Class in org.mozilla.javascript.tools.debugger
-
Class to store information about a script source.
- Dim.StackFrame - Class in org.mozilla.javascript.tools.debugger
-
Object to represent one stack frame.
- dispatchNextGuiEvent() - Method in interface org.mozilla.javascript.tools.debugger.GuiCallback
-
Processes the next GUI event.
- dispatchNextGuiEvent() - Method in class org.mozilla.javascript.tools.debugger.SwingGui
-
Processes the next GUI event.
- dispose() - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Releases resources associated with this debugger.
- dispose() - Method in class org.mozilla.javascript.tools.debugger.Main
-
Frees any resources held by the debugger.
- doBreak() - Method in class org.mozilla.javascript.tools.debugger.Main
-
Breaks execution of the script.
- doctest(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
-
Example: doctest("js> function f() {\n > return 3;\n > }\njs> f();\n3\n"); returns 2 (since 2 tests were executed).
E
- enterInterrupt(Dim.StackFrame, String, String) - Method in interface org.mozilla.javascript.tools.debugger.GuiCallback
-
Called when the interrupt loop has been entered.
- enterInterrupt(Dim.StackFrame, String, String) - Method in class org.mozilla.javascript.tools.debugger.SwingGui
-
Called when the interrupt loop has been entered.
- Environment - Class in org.mozilla.javascript.tools.shell
-
Environment, intended to be instantiated at global scope, provides a natural way to access System properties from JavaScript.
- Environment() - Constructor for class org.mozilla.javascript.tools.shell.Environment
- Environment(ScriptableObject) - Constructor for class org.mozilla.javascript.tools.shell.Environment
- error(String, String, int, String, int) - Method in class org.mozilla.javascript.tools.ToolErrorReporter
- errorReporter - Static variable in class org.mozilla.javascript.tools.shell.Main
- eval(String) - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Evaluates the given script.
- eval(String) - Method in class org.mozilla.javascript.tools.shell.ConsoleTextArea
- evalScript(String, String) - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Evaluates the given script.
- exec(String[]) - Static method in class org.mozilla.javascript.tools.shell.Main
-
Execute the given arguments, but don't System.exit at the end.
- EXIT - Static variable in class org.mozilla.javascript.tools.debugger.Dim
- exitCode - Static variable in class org.mozilla.javascript.tools.shell.Main
F
- fireEditingCanceled() - Method in class org.mozilla.javascript.tools.debugger.treetable.AbstractCellEditor
- fireEditingStopped() - Method in class org.mozilla.javascript.tools.debugger.treetable.AbstractCellEditor
- firstLine() - Method in class org.mozilla.javascript.tools.debugger.Dim.FunctionSource
-
Returns the line number of the first line of the function.
- flush() - Method in class org.mozilla.javascript.tools.shell.ShellConsole
-
Flushes the console's output
- frameCount() - Method in class org.mozilla.javascript.tools.debugger.Dim.ContextData
-
Returns the number of stack frames.
- functionNames() - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Returns an array of all function names.
- functionSource(int) - Method in class org.mozilla.javascript.tools.debugger.Dim.SourceInfo
-
Returns the FunctionSource object with the given index.
- functionSourceByName(String) - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Returns the FunctionSource object for the function with the given name.
- functionSourcesTop() - Method in class org.mozilla.javascript.tools.debugger.Dim.SourceInfo
-
Returns the number of FunctionSource objects stored in this object.
G
- gc(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
- get(String, Scriptable) - Method in class org.mozilla.javascript.tools.shell.Environment
- get(Context) - Static method in class org.mozilla.javascript.tools.debugger.Dim.ContextData
-
Returns the ContextData for the given Context.
- getAllIds() - Method in class org.mozilla.javascript.tools.shell.Environment
- getCellEditorValue() - Method in class org.mozilla.javascript.tools.debugger.treetable.AbstractCellEditor
- getCharacterEncoding() - Method in class org.mozilla.javascript.tools.shell.ShellContextFactory
- getClassName() - Method in class org.mozilla.javascript.tools.shell.Environment
- getColumnClass(int) - Method in interface org.mozilla.javascript.tools.debugger.treetable.TreeTableModel
-
Returns the type for column number
column. - getColumnClass(int) - Method in class org.mozilla.javascript.tools.debugger.treetable.TreeTableModelAdapter
- getColumnCount() - Method in interface org.mozilla.javascript.tools.debugger.treetable.TreeTableModel
-
Returns the number ofs availible column.
- getColumnCount() - Method in class org.mozilla.javascript.tools.debugger.treetable.TreeTableModelAdapter
- getColumnName(int) - Method in interface org.mozilla.javascript.tools.debugger.treetable.TreeTableModel
-
Returns the name for column number
column. - getColumnName(int) - Method in class org.mozilla.javascript.tools.debugger.treetable.TreeTableModelAdapter
- getConsole() - Method in class org.mozilla.javascript.tools.debugger.SwingGui
-
Returns the debugger console component.
- getConsole(InputStream, PrintStream, Charset) - Static method in class org.mozilla.javascript.tools.shell.ShellConsole
- getConsole(Charset) - Method in class org.mozilla.javascript.tools.shell.Global
- getConsole(Scriptable, Charset) - Static method in class org.mozilla.javascript.tools.shell.ShellConsole
-
Provides a specialized
ShellConsoleto handle line editing, history and completion. - getDebugFrame() - Method in class org.mozilla.javascript.tools.debugger.Main
-
Returns the debugger window
JFrame. - getDynamicSecurityDomain(Object) - Method in class org.mozilla.javascript.tools.shell.JavaPolicySecurity
- getEditingRow() - Method in class org.mozilla.javascript.tools.debugger.treetable.JTreeTable
- getErr() - Method in class org.mozilla.javascript.tools.debugger.Main
-
Returns a
PrintStreamfor stderr in the Debugger's internal Console window. - getErr() - Method in class org.mozilla.javascript.tools.shell.ConsoleTextArea
- getErr() - Method in class org.mozilla.javascript.tools.shell.Global
- getErr() - Static method in class org.mozilla.javascript.tools.shell.Main
- getFrame(int) - Method in class org.mozilla.javascript.tools.debugger.Dim.ContextData
-
Returns the stack frame with the given index.
- getFunctionName() - Method in class org.mozilla.javascript.tools.debugger.Dim.StackFrame
-
Returns the current function name.
- getGlobal() - Static method in class org.mozilla.javascript.tools.shell.Main
- getIds() - Method in class org.mozilla.javascript.tools.shell.Environment
- getIn() - Method in class org.mozilla.javascript.tools.debugger.Main
-
Returns an
InputStreamfor stdin from the debugger's internal Console window. - getIn() - Method in class org.mozilla.javascript.tools.shell.ConsoleTextArea
- getIn() - Method in class org.mozilla.javascript.tools.shell.Global
- getIn() - Static method in class org.mozilla.javascript.tools.shell.Main
- getIn() - Method in class org.mozilla.javascript.tools.shell.ShellConsole
-
Returns the underlying
InputStream - getLineNumber() - Method in class org.mozilla.javascript.tools.debugger.Dim.StackFrame
-
Returns the current line number.
- getListSelectionModel() - Method in class org.mozilla.javascript.tools.debugger.treetable.JTreeTable.ListToTreeSelectionModelWrapper
-
Returns the list selection model.
- getMenubar() - Method in class org.mozilla.javascript.tools.debugger.SwingGui
-
Returns the Menubar of this debugger frame.
- getMessage(String) - Static method in class org.mozilla.javascript.tools.ToolErrorReporter
-
Look up the message corresponding to messageId in the org.mozilla.javascript.tools.shell.resources.Messages property file.
- getMessage(String, Object[]) - Static method in class org.mozilla.javascript.tools.ToolErrorReporter
- getMessage(String, Object, Object) - Static method in class org.mozilla.javascript.tools.ToolErrorReporter
- getMessage(String, String) - Static method in class org.mozilla.javascript.tools.ToolErrorReporter
- getObjectIds(Object) - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Returns an array of the property names on the given script object.
- getObjectProperty(Object, Object) - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Returns the value of a property on the given script object.
- getOut() - Method in class org.mozilla.javascript.tools.debugger.Main
-
Returns a
PrintStreamfor stdout to the debugger's internal Console window. - getOut() - Method in class org.mozilla.javascript.tools.shell.ConsoleTextArea
- getOut() - Method in class org.mozilla.javascript.tools.shell.Global
- getOut() - Static method in class org.mozilla.javascript.tools.shell.Main
- getPrompts(Context) - Method in class org.mozilla.javascript.tools.shell.Global
- getRowCount() - Method in class org.mozilla.javascript.tools.debugger.treetable.TreeTableModelAdapter
- getScope() - Method in interface org.mozilla.javascript.tools.debugger.ScopeProvider
-
Returns the scope object to be used for script evaluation.
- getSource(DebuggableScript) - Method in interface org.mozilla.javascript.tools.debugger.SourceProvider
-
Returns the source of the script.
- getStaticSecurityDomainClassInternal() - Method in class org.mozilla.javascript.tools.shell.JavaPolicySecurity
- getStream(Scriptable) - Static method in class org.mozilla.javascript.tools.shell.ShellLine
-
Deprecated.
- getTableCellEditorComponent(JTable, Object, boolean, int, int) - Method in class org.mozilla.javascript.tools.debugger.treetable.JTreeTable.TreeTableCellEditor
- getTableCellRendererComponent(JTable, Object, boolean, boolean, int, int) - Method in class org.mozilla.javascript.tools.debugger.treetable.JTreeTable.TreeTableCellRenderer
-
TreeCellRenderer method.
- getTree() - Method in class org.mozilla.javascript.tools.debugger.treetable.JTreeTable
-
Returns the tree that is being shared between the model.
- getUrl() - Method in class org.mozilla.javascript.tools.debugger.Dim.StackFrame
-
Returns the source URL.
- getValueAt(int, int) - Method in class org.mozilla.javascript.tools.debugger.treetable.TreeTableModelAdapter
- getValueAt(Object, int) - Method in interface org.mozilla.javascript.tools.debugger.treetable.TreeTableModel
-
Returns the value to be displayed for node
node, at column numbercolumn. - global - Static variable in class org.mozilla.javascript.tools.shell.Main
- Global - Class in org.mozilla.javascript.tools.shell
-
This class provides for sharing functions across multiple threads.
- Global() - Constructor for class org.mozilla.javascript.tools.shell.Global
- Global(Context) - Constructor for class org.mozilla.javascript.tools.shell.Global
- go() - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Resumes execution of script.
- go() - Method in class org.mozilla.javascript.tools.debugger.Main
-
Resumes execution of the script.
- GO - Static variable in class org.mozilla.javascript.tools.debugger.Dim
- GuiCallback - Interface in org.mozilla.javascript.tools.debugger
-
Interface for communication between the debugger and its GUI.
H
- has(String, Scriptable) - Method in class org.mozilla.javascript.tools.shell.Environment
- hasFeature(Context, int) - Method in class org.mozilla.javascript.tools.shell.ShellContextFactory
- hasReportedError() - Method in class org.mozilla.javascript.tools.ToolErrorReporter
- help(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
-
Print a help message.
I
- init(Context) - Method in class org.mozilla.javascript.tools.shell.Global
- init(ContextFactory) - Method in class org.mozilla.javascript.tools.shell.Global
- initQuitAction(QuitAction) - Method in class org.mozilla.javascript.tools.shell.Global
-
Set the action to call from quit().
- insertUpdate(DocumentEvent) - Method in class org.mozilla.javascript.tools.shell.ConsoleTextArea
- install(Scriptable) - Method in class org.mozilla.javascript.tools.shell.Timers
-
Initialize the "setTimeout" and "clearTimeout" functions on the specified scope.
- installRequire(Context, List<String>, boolean) - Method in class org.mozilla.javascript.tools.shell.Global
- isCellEditable(int, int) - Method in class org.mozilla.javascript.tools.debugger.treetable.TreeTableModelAdapter
- isCellEditable(Object, int) - Method in interface org.mozilla.javascript.tools.debugger.treetable.TreeTableModel
-
Indicates whether the the value for node
node, at column numbercolumnis editable. - isCellEditable(EventObject) - Method in class org.mozilla.javascript.tools.debugger.treetable.AbstractCellEditor
- isCellEditable(EventObject) - Method in class org.mozilla.javascript.tools.debugger.treetable.JTreeTable.TreeTableCellEditor
-
Overridden to return false, and if the event is a mouse event it is forwarded to the tree.
- isGuiEventThread() - Method in interface org.mozilla.javascript.tools.debugger.GuiCallback
-
Returns whether the current thread is the GUI's event thread.
- isGuiEventThread() - Method in class org.mozilla.javascript.tools.debugger.SwingGui
-
Returns whether the current thread is the GUI event thread.
- isInitialized() - Method in class org.mozilla.javascript.tools.shell.Global
- isReportingWarnings() - Method in class org.mozilla.javascript.tools.ToolErrorReporter
- isVisible() - Method in class org.mozilla.javascript.tools.debugger.Main
-
Returns whether the debugger GUI frame is visible.
J
- JavaPolicySecurity - Class in org.mozilla.javascript.tools.shell
- JavaPolicySecurity() - Constructor for class org.mozilla.javascript.tools.shell.JavaPolicySecurity
- JSConsole - Class in org.mozilla.javascript.tools.shell
- JSConsole(String[]) - Constructor for class org.mozilla.javascript.tools.shell.JSConsole
- JTreeTable - Class in org.mozilla.javascript.tools.debugger.treetable
-
This example shows how to create a simple JTreeTable component, by using a JTree as a renderer (and editor) for the cells in a particular column in the JTable.
- JTreeTable(TreeTableModel) - Constructor for class org.mozilla.javascript.tools.debugger.treetable.JTreeTable
- JTreeTable.ListToTreeSelectionModelWrapper - Class in org.mozilla.javascript.tools.debugger.treetable
-
ListToTreeSelectionModelWrapper extends DefaultTreeSelectionModel to listen for changes in the ListSelectionModel it maintains.
- JTreeTable.TreeTableCellEditor - Class in org.mozilla.javascript.tools.debugger.treetable
-
TreeTableCellEditor implementation.
- JTreeTable.TreeTableCellRenderer - Class in org.mozilla.javascript.tools.debugger.treetable
-
A TreeCellRenderer that displays a JTree.
K
- keyPressed(KeyEvent) - Method in class org.mozilla.javascript.tools.shell.ConsoleTextArea
- keyReleased(KeyEvent) - Method in class org.mozilla.javascript.tools.shell.ConsoleTextArea
- keyTyped(KeyEvent) - Method in class org.mozilla.javascript.tools.shell.ConsoleTextArea
L
- listenerList - Variable in class org.mozilla.javascript.tools.debugger.treetable.AbstractCellEditor
- ListToTreeSelectionModelWrapper() - Constructor for class org.mozilla.javascript.tools.debugger.treetable.JTreeTable.ListToTreeSelectionModelWrapper
- load(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
-
Load and execute a set of JavaScript source files.
- loadClass(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
-
Load and execute a script compiled to a class file.
M
- main(String[]) - Static method in class org.mozilla.javascript.tools.debugger.Main
-
Main entry point.
- main(String[]) - Static method in class org.mozilla.javascript.tools.jsc.Main
-
Main entry point.
- main(String[]) - Static method in class org.mozilla.javascript.tools.shell.JSConsole
- main(String[]) - Static method in class org.mozilla.javascript.tools.shell.Main
-
Main entry point.
- Main - Class in org.mozilla.javascript.tools.debugger
-
Rhino script debugger main class.
- Main - Class in org.mozilla.javascript.tools.jsc
- Main - Class in org.mozilla.javascript.tools.shell
-
The shell program.
- Main() - Constructor for class org.mozilla.javascript.tools.jsc.Main
- Main() - Constructor for class org.mozilla.javascript.tools.shell.Main
- Main(String) - Constructor for class org.mozilla.javascript.tools.debugger.Main
-
Creates a new Main.
- mainEmbedded(String) - Static method in class org.mozilla.javascript.tools.debugger.Main
-
Entry point for embedded applications.
- mainEmbedded(ContextFactory, Scriptable, String) - Static method in class org.mozilla.javascript.tools.debugger.Main
-
Entry point for embedded applications.
- mainEmbedded(ContextFactory, ScopeProvider, String) - Static method in class org.mozilla.javascript.tools.debugger.Main
-
Entry point for embedded applications.
N
- name() - Method in class org.mozilla.javascript.tools.debugger.Dim.FunctionSource
-
Returns the name of the function.
- nodeForRow(int) - Method in class org.mozilla.javascript.tools.debugger.treetable.TreeTableModelAdapter
O
- objectToString(Object) - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Converts the given script object to a string.
- onContextCreated(Context) - Method in class org.mozilla.javascript.tools.shell.ShellContextFactory
- onDebuggerStatement(Context) - Method in class org.mozilla.javascript.tools.debugger.Dim.StackFrame
-
Called when a 'debugger' statement is executed.
- onEnter(Context, Scriptable, Scriptable, Object[]) - Method in class org.mozilla.javascript.tools.debugger.Dim.StackFrame
-
Called when the stack frame is entered.
- onExceptionThrown(Context, Throwable) - Method in class org.mozilla.javascript.tools.debugger.Dim.StackFrame
-
Called when an exception has been thrown.
- onExit(Context, boolean, Object) - Method in class org.mozilla.javascript.tools.debugger.Dim.StackFrame
-
Called when the stack frame has been left.
- onLineChange(Context, int) - Method in class org.mozilla.javascript.tools.debugger.Dim.StackFrame
-
Called when the current position has changed.
- org.mozilla.javascript.tools - package org.mozilla.javascript.tools
- org.mozilla.javascript.tools.debugger - package org.mozilla.javascript.tools.debugger
- org.mozilla.javascript.tools.debugger.treetable - package org.mozilla.javascript.tools.debugger.treetable
- org.mozilla.javascript.tools.jsc - package org.mozilla.javascript.tools.jsc
- org.mozilla.javascript.tools.shell - package org.mozilla.javascript.tools.shell
- org.mozilla.rhino.tools - module org.mozilla.rhino.tools
P
- pack() - Method in class org.mozilla.javascript.tools.debugger.Main
-
Packs the debugger GUI frame.
- paint(Graphics) - Method in class org.mozilla.javascript.tools.debugger.treetable.JTreeTable.TreeTableCellRenderer
-
Sublcassed to translate the graphics such that the last visible row will be drawn at 0,0.
- postUpdateUI() - Method in class org.mozilla.javascript.tools.shell.ConsoleTextArea
- print(String) - Method in class org.mozilla.javascript.tools.shell.ShellConsole
-
Prints a single string to the console
- print(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
-
Print the string values of its arguments.
- println() - Method in class org.mozilla.javascript.tools.shell.ShellConsole
-
Prints the newline character-sequence to the console
- println(String) - Method in class org.mozilla.javascript.tools.shell.ShellConsole
-
Prints a string and the newline character-sequence to the console
- processFile(Context, Scriptable, String) - Static method in class org.mozilla.javascript.tools.shell.Main
- processFileNoThrow(Context, Scriptable, String) - Static method in class org.mozilla.javascript.tools.shell.Main
- processOptions(String[]) - Method in class org.mozilla.javascript.tools.jsc.Main
-
Parse arguments.
- processOptions(String[]) - Static method in class org.mozilla.javascript.tools.shell.Main
-
Parse arguments.
- processSource(String[]) - Method in class org.mozilla.javascript.tools.jsc.Main
-
Compile JavaScript source.
- processSource(Context, String) - Static method in class org.mozilla.javascript.tools.shell.Main
-
Evaluate JavaScript source.
- put(String, Scriptable, Object) - Method in class org.mozilla.javascript.tools.shell.Environment
Q
- quit(Context, int) - Method in interface org.mozilla.javascript.tools.shell.QuitAction
- quit(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
-
Call embedding-specific quit action passing its argument as int32 exit code.
- QuitAction - Interface in org.mozilla.javascript.tools.shell
-
Defines action to perform in response to quit command.
R
- readFile(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
-
The readFile reads the given file content and convert it to a string using the specified character coding or default character coding if explicit coding argument is not given.
- readFileOrUrl(String, boolean, String) - Static method in class org.mozilla.javascript.tools.SourceReader
- readline(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
-
The readline reads one line from the standard input.
- readLine() - Method in class org.mozilla.javascript.tools.shell.ShellConsole
-
Reads a single line from the console
- readLine(String) - Method in class org.mozilla.javascript.tools.shell.ShellConsole
-
Reads a single line from the console and sets the console's prompt to
prompt - readUrl(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
-
The readUrl opens connection to the given URL, read all its data and converts them to a string using the specified character coding or default character coding if explicit coding argument is not given.
- removeAllBreakpoints() - Method in class org.mozilla.javascript.tools.debugger.Dim.SourceInfo
-
Removes all breakpoints from the script.
- removeCellEditorListener(CellEditorListener) - Method in class org.mozilla.javascript.tools.debugger.treetable.AbstractCellEditor
- removeUpdate(DocumentEvent) - Method in class org.mozilla.javascript.tools.shell.ConsoleTextArea
- reportException(ErrorReporter, RhinoException) - Static method in class org.mozilla.javascript.tools.ToolErrorReporter
- reportException(RhinoException) - Method in class org.mozilla.javascript.tools.ToolErrorReporter
- resetRowSelection() - Method in class org.mozilla.javascript.tools.debugger.treetable.JTreeTable.ListToTreeSelectionModelWrapper
-
This is overridden to set
updatingListSelectionModeland message super. - runAllTimers(Context, Scriptable) - Method in class org.mozilla.javascript.tools.shell.Timers
-
Execute all pending timers and microtasks, blocking the thread if we need to wait for any timers to time out.
- runCommand(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
-
Execute the specified command with the given argument and options as a separate process and return the exit status of the process.
- runDoctest(Context, Scriptable, String, String, int) - Method in class org.mozilla.javascript.tools.shell.Global
- runtimeError(String, String, int, String, int) - Method in class org.mozilla.javascript.tools.ToolErrorReporter
S
- scope() - Method in class org.mozilla.javascript.tools.debugger.Dim.StackFrame
-
Returns the scope object for this frame.
- ScopeProvider - Interface in org.mozilla.javascript.tools.debugger
-
Interface to provide a scope object for script evaluation to the debugger.
- seal(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
-
The seal function seals all supplied arguments.
- SecurityProxy - Class in org.mozilla.javascript.tools.shell
- SecurityProxy() - Constructor for class org.mozilla.javascript.tools.shell.SecurityProxy
- select(int, int) - Method in class org.mozilla.javascript.tools.shell.ConsoleTextArea
- serialize(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
- setAllowReservedKeywords(boolean) - Method in class org.mozilla.javascript.tools.shell.ShellContextFactory
- setBounds(int, int, int, int) - Method in class org.mozilla.javascript.tools.debugger.treetable.JTreeTable.TreeTableCellRenderer
-
This is overridden to set the height to match that of the JTable.
- setBreak() - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Tells the debugger to break at the next opportunity.
- setBreakOnEnter(boolean) - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Sets whether the debugger should break on function entering.
- setBreakOnEnter(boolean) - Method in class org.mozilla.javascript.tools.debugger.Main
-
Sets whether execution should break when a function is entered.
- setBreakOnExceptions(boolean) - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Sets whether the debugger should break on exceptions.
- setBreakOnExceptions(boolean) - Method in class org.mozilla.javascript.tools.debugger.Main
-
Sets whether execution should break when a script exception is thrown.
- setBreakOnReturn(boolean) - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Sets whether the debugger should break on function return.
- setBreakOnReturn(boolean) - Method in class org.mozilla.javascript.tools.debugger.Main
-
Sets whether execution should break when a function is left.
- setCharacterEncoding(String) - Method in class org.mozilla.javascript.tools.shell.ShellContextFactory
- setErr(PrintStream) - Method in class org.mozilla.javascript.tools.shell.Global
- setErr(PrintStream) - Static method in class org.mozilla.javascript.tools.shell.Main
- setErrorReporter(ErrorReporter) - Method in class org.mozilla.javascript.tools.shell.ShellContextFactory
- setExitAction(Runnable) - Method in class org.mozilla.javascript.tools.debugger.Main
-
Assign a Runnable object that will be invoked when the user selects "Exit..." or closes the Debugger main window.
- setExitAction(Runnable) - Method in class org.mozilla.javascript.tools.debugger.SwingGui
-
Sets the
Runnablethat will be run when the "Exit" menu item is chosen. - setGeneratingDebug(boolean) - Method in class org.mozilla.javascript.tools.shell.ShellContextFactory
- setGuiCallback(GuiCallback) - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Sets the GuiCallback object to use.
- setIn(InputStream) - Method in class org.mozilla.javascript.tools.shell.Global
- setIn(InputStream) - Static method in class org.mozilla.javascript.tools.shell.Main
- setInterpretedMode(boolean) - Method in class org.mozilla.javascript.tools.shell.ShellContextFactory
- setIsReportingWarnings(boolean) - Method in class org.mozilla.javascript.tools.ToolErrorReporter
- setLanguageVersion(int) - Method in class org.mozilla.javascript.tools.shell.ShellContextFactory
- setOptimizationLevel(int) - Method in class org.mozilla.javascript.tools.debugger.Main
-
Deprecated.The method does nothing and is only present for compatibility.
- setOut(PrintStream) - Method in class org.mozilla.javascript.tools.shell.Global
- setOut(PrintStream) - Static method in class org.mozilla.javascript.tools.shell.Main
- setReturnValue(int) - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Sets the action to perform to end interruption.
- setRowHeight(int) - Method in class org.mozilla.javascript.tools.debugger.treetable.JTreeTable
-
Overridden to pass the new rowHeight to the tree.
- setRowHeight(int) - Method in class org.mozilla.javascript.tools.debugger.treetable.JTreeTable.TreeTableCellRenderer
-
Sets the row height of the tree, and forwards the row height to the table.
- setScope(Scriptable) - Method in class org.mozilla.javascript.tools.debugger.Main
-
Sets the scope to be used for script evaluation.
- setScopeProvider(ScopeProvider) - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Sets the ScopeProvider to be used.
- setScopeProvider(ScopeProvider) - Method in class org.mozilla.javascript.tools.debugger.Main
-
Sets the
ScopeProviderthat provides a scope to be used for script evaluation. - setSealedStdLib(boolean) - Method in class org.mozilla.javascript.tools.shell.Global
- setSize(int, int) - Method in class org.mozilla.javascript.tools.debugger.Main
-
Sets the debugger GUI frame dimensions.
- setSize(Dimension) - Method in class org.mozilla.javascript.tools.debugger.Main
-
Deprecated.Use
Main.setSize(int, int)instead. - setSourceProvider(SourceProvider) - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Sets the ScopeProvider to be used.
- setSourceProvider(SourceProvider) - Method in class org.mozilla.javascript.tools.debugger.Main
-
Sets the
SourceProviderthat provides the source to be displayed for script evaluation. - setStrictMode(boolean) - Method in class org.mozilla.javascript.tools.shell.ShellContextFactory
- setValueAt(Object, int, int) - Method in class org.mozilla.javascript.tools.debugger.treetable.TreeTableModelAdapter
- setValueAt(Object, Object, int) - Method in interface org.mozilla.javascript.tools.debugger.treetable.TreeTableModel
-
Sets the value for node
node, at column numbercolumn. - setVisible(boolean) - Method in class org.mozilla.javascript.tools.debugger.Main
-
Sets the visibility of the debugger GUI frame.
- setVisible(boolean) - Method in class org.mozilla.javascript.tools.debugger.SwingGui
-
Sets the visibility of the debugger GUI.
- setWarningAsError(boolean) - Method in class org.mozilla.javascript.tools.shell.ShellContextFactory
- ShellConsole - Class in org.mozilla.javascript.tools.shell
- ShellConsole() - Constructor for class org.mozilla.javascript.tools.shell.ShellConsole
- shellContextFactory - Static variable in class org.mozilla.javascript.tools.shell.Main
- ShellContextFactory - Class in org.mozilla.javascript.tools.shell
- ShellContextFactory() - Constructor for class org.mozilla.javascript.tools.shell.ShellContextFactory
- ShellLine - Class in org.mozilla.javascript.tools.shell
-
Deprecated.
- ShellLine() - Constructor for class org.mozilla.javascript.tools.shell.ShellLine
-
Deprecated.
- shouldSelectCell(EventObject) - Method in class org.mozilla.javascript.tools.debugger.treetable.AbstractCellEditor
- showFileWindow(String, int) - Method in class org.mozilla.javascript.tools.debugger.SwingGui
-
Shows a
FileWindowfor the given source, creating it if it doesn't exist yet. - source() - Method in class org.mozilla.javascript.tools.debugger.Dim.SourceInfo
-
Returns the source text.
- sourceInfo() - Method in class org.mozilla.javascript.tools.debugger.Dim.FunctionSource
-
Returns the SourceInfo object that describes the source of the function.
- sourceInfo() - Method in class org.mozilla.javascript.tools.debugger.Dim.StackFrame
-
Returns the SourceInfo object for the function.
- sourceInfo(String) - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Returns the SourceInfo object for the given URL.
- SourceProvider - Interface in org.mozilla.javascript.tools.debugger
-
Interface to provide a source of scripts to the debugger.
- SourceReader - Class in org.mozilla.javascript.tools
- SourceReader() - Constructor for class org.mozilla.javascript.tools.SourceReader
- spawn(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
-
The spawn function runs a given function or script in a different thread.
- STEP_INTO - Static variable in class org.mozilla.javascript.tools.debugger.Dim
- STEP_OUT - Static variable in class org.mozilla.javascript.tools.debugger.Dim
- STEP_OVER - Static variable in class org.mozilla.javascript.tools.debugger.Dim
- stopCellEditing() - Method in class org.mozilla.javascript.tools.debugger.treetable.AbstractCellEditor
- stringIsCompilableUnit(String) - Method in class org.mozilla.javascript.tools.debugger.Dim
-
Returns whether the given string is syntactically valid script.
- SwingGui - Class in org.mozilla.javascript.tools.debugger
-
GUI for the Rhino debugger.
- SwingGui(Dim, String) - Constructor for class org.mozilla.javascript.tools.debugger.SwingGui
-
Creates a new SwingGui.
- sync(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
-
The sync function creates a synchronized function (in the sense of a Java synchronized method) from an existing function.
T
- thisObj() - Method in class org.mozilla.javascript.tools.debugger.Dim.StackFrame
-
Returns the 'this' object for this frame.
- Timers - Class in org.mozilla.javascript.tools.shell
-
This class supports the "setTimeout" and "clearTimeout" methods of semi-standard JavaScript.
- Timers() - Constructor for class org.mozilla.javascript.tools.shell.Timers
- toint32(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
-
Convert the argument to int32 number.
- ToolErrorReporter - Class in org.mozilla.javascript.tools
-
Error reporter for tools.
- ToolErrorReporter(boolean) - Constructor for class org.mozilla.javascript.tools.ToolErrorReporter
- ToolErrorReporter(boolean, PrintStream) - Constructor for class org.mozilla.javascript.tools.ToolErrorReporter
- toUrl(String) - Static method in class org.mozilla.javascript.tools.SourceReader
- tree - Variable in class org.mozilla.javascript.tools.debugger.treetable.JTreeTable
-
A subclass of JTree.
- TreeTableCellEditor() - Constructor for class org.mozilla.javascript.tools.debugger.treetable.JTreeTable.TreeTableCellEditor
- TreeTableCellRenderer(TreeModel) - Constructor for class org.mozilla.javascript.tools.debugger.treetable.JTreeTable.TreeTableCellRenderer
- TreeTableModel - Interface in org.mozilla.javascript.tools.debugger.treetable
-
TreeTableModel is the model used by a JTreeTable.
- TreeTableModelAdapter - Class in org.mozilla.javascript.tools.debugger.treetable
-
This is a wrapper class takes a TreeTableModel and implements the table model interface.
- TreeTableModelAdapter(TreeTableModel, JTree) - Constructor for class org.mozilla.javascript.tools.debugger.treetable.TreeTableModelAdapter
U
- updateFileWindow(Dim.SourceInfo) - Method in class org.mozilla.javascript.tools.debugger.SwingGui
-
Update the source text for
sourceInfo. - updateSelectedPathsFromSelectedRows() - Method in class org.mozilla.javascript.tools.debugger.treetable.JTreeTable.ListToTreeSelectionModelWrapper
-
If
updatingListSelectionModelis false, this will reset the selected paths from the selected rows in the list selection model. - updateSourceText(Dim.SourceInfo) - Method in interface org.mozilla.javascript.tools.debugger.GuiCallback
-
Called when the source text of some script has been changed.
- updateSourceText(Dim.SourceInfo) - Method in class org.mozilla.javascript.tools.debugger.SwingGui
-
Called when the source text for a script has been updated.
- updateUI() - Method in class org.mozilla.javascript.tools.debugger.treetable.JTreeTable.TreeTableCellRenderer
-
updateUI is overridden to set the colors of the Tree's renderer to match that of the table.
- updateUI() - Method in class org.mozilla.javascript.tools.debugger.treetable.JTreeTable
-
Overridden to message super and forward the method to the tree.
- updatingListSelectionModel - Variable in class org.mozilla.javascript.tools.debugger.treetable.JTreeTable.ListToTreeSelectionModelWrapper
-
Set to true when we are updating the ListSelectionModel.
- url() - Method in class org.mozilla.javascript.tools.debugger.Dim.SourceInfo
-
Returns the script's origin URL.
V
- version(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
-
Get and set the language version.
- visibleRow - Variable in class org.mozilla.javascript.tools.debugger.treetable.JTreeTable.TreeTableCellRenderer
-
Last table/tree row asked to renderer.
W
- warning(String, String, int, String, int) - Method in class org.mozilla.javascript.tools.ToolErrorReporter
- write(String) - Method in class org.mozilla.javascript.tools.shell.ConsoleTextArea
- write(Context, Scriptable, Object[], Function) - Static method in class org.mozilla.javascript.tools.shell.Global
-
Print just as in "print," but without the trailing newline.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form