Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- addJShellErrorListener(JShellErrorListener) - Method in class com.github.fracpete.jshell.JShellExec
-
Adds the error listener to the internal list.
- addJShellExecListener(JShellExecListener) - Method in class com.github.fracpete.jshell.JShellExec
-
Adds the exec listener to the internal list.
- addJShellExecListener(JShellExecListener) - Method in class com.github.fracpete.jshell.JShellPanel
-
Adds the exec listener to the internal list.
- addJShellPanelListener(JShellPanelListener) - Method in class com.github.fracpete.jshell.JShellPanel
-
Adds the panel listener to the internal list.
C
- clearScriptOutput() - Method in class com.github.fracpete.jshell.JShellPanel
-
Clears the output of the script.
- com.github.fracpete.jshell - package com.github.fracpete.jshell
- com.github.fracpete.jshell.event - package com.github.fracpete.jshell.event
- com.github.fracpete.jshell.examples - package com.github.fracpete.jshell.examples
D
- debugMsg(String) - Method in class com.github.fracpete.jshell.JShellExec
-
Outputs the debugging message if debugging is enabled.
- DEFAULT_THEME - Static variable in class com.github.fracpete.jshell.JShellPanel
-
the default theme.
E
- Exec - Class in com.github.fracpete.jshell.examples
-
Shows how to execute code in the background.
- Exec() - Constructor for class com.github.fracpete.jshell.examples.Exec
- ExecErrors - Class in com.github.fracpete.jshell.examples
-
Shows how to execute code in the background and listen to errors.
- ExecErrors() - Constructor for class com.github.fracpete.jshell.examples.ExecErrors
- ExecEvents - Class in com.github.fracpete.jshell.examples
-
Shows how to execute code in the background.
- ExecEvents() - Constructor for class com.github.fracpete.jshell.examples.ExecEvents
F
- finishInit() - Method in class com.github.fracpete.jshell.JShellPanel
-
Finishes the initialization.
G
- getCode() - Method in class com.github.fracpete.jshell.JShellPanel
-
Returns the current code.
- getCompilerFlags() - Method in class com.github.fracpete.jshell.JShellPanel
-
Returns the compiler flags to supply to JShell (-C).
- getCurrentTheme() - Method in class com.github.fracpete.jshell.JShellPanel
-
Returns the currently selected theme.
- getDebug() - Method in class com.github.fracpete.jshell.JShellExec
-
Returns the debugging flag.
- getDebug() - Method in class com.github.fracpete.jshell.JShellPanel
-
Returns the debugging flag.
- getException() - Method in class com.github.fracpete.jshell.event.JShellErrorEvent
-
Returns the exception.
- getExecutable() - Method in class com.github.fracpete.jshell.JShellExec
-
Returns the jshell executable.
- getJShellExec() - Method in class com.github.fracpete.jshell.event.JShellExecEvent
-
Returns the JShellExec instance that generated the event.
- getJShellPanel() - Method in class com.github.fracpete.jshell.event.JShellPanelEvent
-
Returns the JShellPanel that initiated the event.
- getMessage() - Method in class com.github.fracpete.jshell.event.JShellErrorEvent
-
Returns the message.
- getOutput() - Method in class com.github.fracpete.jshell.JShellPanel
-
Returns the current output.
- getOutputType() - Method in class com.github.fracpete.jshell.JShellExec
-
Returns what output from the process to forward.
- getOutputType() - Method in class com.github.fracpete.jshell.JShellPanel
-
Returns what output from the process to forward.
- getRemoteRuntimeFlags() - Method in class com.github.fracpete.jshell.JShellPanel
-
Returns the remote runtime flags to supply to JShell (-R), used by the JVM executing the code (eg -javaagent:...).
- getRuntimeFlags() - Method in class com.github.fracpete.jshell.JShellPanel
-
Returns the runtime flags to supply to JShell (-J), used by JShell (eg -verbose).
- getStreamingProcessOwner() - Method in class com.github.fracpete.jshell.JShellExec
-
Returns the current recipient of the process output.
- getType() - Method in class com.github.fracpete.jshell.event.JShellExecEvent
-
Returns the event type.
- getType() - Method in class com.github.fracpete.jshell.event.JShellPanelEvent
-
Returns the event type.
- GUI - Class in com.github.fracpete.jshell.examples
-
Shows how to display the JShellPanel.
- GUI() - Constructor for class com.github.fracpete.jshell.examples.GUI
- GUIEvents - Class in com.github.fracpete.jshell.examples
-
Shows how to display the JShellPanel.
- GUIEvents() - Constructor for class com.github.fracpete.jshell.examples.GUIEvents
H
- hasException() - Method in class com.github.fracpete.jshell.event.JShellErrorEvent
-
Checks whether an exception is available.
I
- initGUI() - Method in class com.github.fracpete.jshell.JShellPanel
-
Initializes the widgets.
- initialize() - Method in class com.github.fracpete.jshell.JShellPanel
-
Initializes the members.
- isAvailable() - Method in class com.github.fracpete.jshell.JShellExec
-
Checks whether jshell executable is available.
- isAvailable() - Method in class com.github.fracpete.jshell.JShellPanel
-
Checks whether jshell executable is available.
- isRunning() - Method in class com.github.fracpete.jshell.JShellExec
-
Returns whether a script is currently running.
- isRunning() - Method in class com.github.fracpete.jshell.JShellPanel
-
Returns whether a script is currently running.
J
- JShellErrorEvent - Class in com.github.fracpete.jshell.event
-
Event that gets sent if an error occurred during JShell execution.
- JShellErrorEvent(JShellExec, String) - Constructor for class com.github.fracpete.jshell.event.JShellErrorEvent
-
Initializes the error message with no exception.
- JShellErrorEvent(JShellExec, String, Throwable) - Constructor for class com.github.fracpete.jshell.event.JShellErrorEvent
-
Initializes the error message.
- JShellErrorListener - Interface in com.github.fracpete.jshell.event
-
Interface for classes that react to JShell error messages.
- jshellErrorOccurred(JShellErrorEvent) - Method in interface com.github.fracpete.jshell.event.JShellErrorListener
-
Gets called when an error occurred.
- jshellErrorOccurred(JShellErrorEvent) - Method in class com.github.fracpete.jshell.JShellPanel
-
Gets called when an error occurred.
- JShellExec - Class in com.github.fracpete.jshell
-
For executing code via JShell.
- JShellExec() - Constructor for class com.github.fracpete.jshell.JShellExec
-
Initializes the execution.
- JShellExecEvent - Class in com.github.fracpete.jshell.event
-
Events sent by the
JShellExec. - JShellExecEvent(JShellExec, JShellExecEvent.EventType) - Constructor for class com.github.fracpete.jshell.event.JShellExecEvent
-
Constructs a prototypical Event.
- JShellExecEvent.EventType - Enum Class in com.github.fracpete.jshell.event
-
the type of event.
- jshellExecEventOccurred(JShellExecEvent) - Method in interface com.github.fracpete.jshell.event.JShellExecListener
-
Gets triggered with any event in the JShellPanel.
- jshellExecEventOccurred(JShellExecEvent) - Method in class com.github.fracpete.jshell.JShellPanel
-
Gets triggered with any event in the JShellPanel.
- JShellExecListener - Interface in com.github.fracpete.jshell.event
-
Interface for classes that listen to events of JShellExec.
- JShellPanel - Class in com.github.fracpete.jshell
-
Panel for performing scripting via jshell.
- JShellPanel() - Constructor for class com.github.fracpete.jshell.JShellPanel
- JShellPanelEvent - Class in com.github.fracpete.jshell.event
-
Events sent by the
JShellPanel. - JShellPanelEvent(JShellPanel, JShellPanelEvent.EventType) - Constructor for class com.github.fracpete.jshell.event.JShellPanelEvent
-
Constructs a prototypical Event.
- JShellPanelEvent.EventType - Enum Class in com.github.fracpete.jshell.event
-
the type of event.
- jshellPanelEventOccurred(JShellPanelEvent) - Method in interface com.github.fracpete.jshell.event.JShellPanelListener
-
Gets triggered with any event in the JShellPanel.
- JShellPanelListener - Interface in com.github.fracpete.jshell.event
-
Interface for classes that listen to events of the JShellPanel.
L
- loadScript() - Method in class com.github.fracpete.jshell.JShellPanel
-
Lets the user select a script to load.
- loadScript(File) - Method in class com.github.fracpete.jshell.JShellPanel
-
Loads the specified file.
M
- m_Available - Variable in class com.github.fracpete.jshell.JShellExec
-
whether scripting is available.
- m_ButtonOutputClear - Variable in class com.github.fracpete.jshell.JShellPanel
-
the button for clearing the output.
- m_ButtonOutputSave - Variable in class com.github.fracpete.jshell.JShellPanel
-
the button for saving the output.
- m_ButtonScriptLoad - Variable in class com.github.fracpete.jshell.JShellPanel
-
the button for loading a script.
- m_ButtonScriptRun - Variable in class com.github.fracpete.jshell.JShellPanel
-
the button for executing a script.
- m_ButtonScriptSave - Variable in class com.github.fracpete.jshell.JShellPanel
-
the button for saving as script.
- m_ButtonScriptStop - Variable in class com.github.fracpete.jshell.JShellPanel
-
the button for stopping a script.
- m_ComboBoxThemes - Variable in class com.github.fracpete.jshell.JShellPanel
-
the panel with the themes.
- m_CompilerFlags - Variable in class com.github.fracpete.jshell.JShellPanel
-
additional compiler flags to supply to JShell (-C).
- m_Debug - Variable in class com.github.fracpete.jshell.JShellExec
-
whether debugging is on.
- m_Exception - Variable in class com.github.fracpete.jshell.event.JShellErrorEvent
-
the optional exception.
- m_Exec - Variable in class com.github.fracpete.jshell.JShellPanel
-
for executing the script.
- m_Execution - Variable in class com.github.fracpete.jshell.JShellExec
-
executes the script.
- m_FileChooserOutput - Variable in class com.github.fracpete.jshell.JShellPanel
-
the filechooser for the output.
- m_FileChooserScript - Variable in class com.github.fracpete.jshell.JShellPanel
-
the filechooser for scripts.
- m_JShellErrorListeners - Variable in class com.github.fracpete.jshell.JShellExec
-
the listeners for errors.
- m_JShellExecListeners - Variable in class com.github.fracpete.jshell.JShellExec
-
the listeners that listen for changes.
- m_JShellPanelListeners - Variable in class com.github.fracpete.jshell.JShellPanel
-
the listeners that listen for changes.
- m_Message - Variable in class com.github.fracpete.jshell.event.JShellErrorEvent
-
the error message.
- m_RemoteRuntimeFlags - Variable in class com.github.fracpete.jshell.JShellPanel
-
additional remote runtime flags to supply to JShell (-R).
- m_RuntimeFlags - Variable in class com.github.fracpete.jshell.JShellPanel
-
additional runtime flags to supply to JShell (-J).
- m_SplitPane - Variable in class com.github.fracpete.jshell.JShellPanel
-
for splitting code and output.
- m_StreamingProcessOwner - Variable in class com.github.fracpete.jshell.JShellExec
-
the streaming process owner to forward the process output to.
- m_TextCode - Variable in class com.github.fracpete.jshell.JShellPanel
-
the text area for the script.
- m_TextOutput - Variable in class com.github.fracpete.jshell.JShellPanel
-
for the jshell output.
- m_Type - Variable in class com.github.fracpete.jshell.event.JShellExecEvent
-
the event type.
- m_Type - Variable in class com.github.fracpete.jshell.event.JShellPanelEvent
-
the event type.
- main(String[]) - Static method in class com.github.fracpete.jshell.examples.Exec
- main(String[]) - Static method in class com.github.fracpete.jshell.examples.ExecErrors
- main(String[]) - Static method in class com.github.fracpete.jshell.examples.ExecEvents
- main(String[]) - Static method in class com.github.fracpete.jshell.examples.GUI
- main(String[]) - Static method in class com.github.fracpete.jshell.examples.GUIEvents
- main(String[]) - Static method in class com.github.fracpete.jshell.JShellPanel
-
For testing only.
N
- notifyJShellErrorListeners(JShellErrorEvent) - Method in class com.github.fracpete.jshell.JShellExec
-
Notifies all the listeners with the specified event.
- notifyJShellExecListeners(JShellExecEvent) - Method in class com.github.fracpete.jshell.JShellExec
-
Notifies all the exec listeners with the specified event.
- notifyJShellPanelListeners(JShellPanelEvent) - Method in class com.github.fracpete.jshell.JShellPanel
-
Notifies all the listeners with the specified panel event.
O
- OUTPUT_CLEARED - Enum constant in enum class com.github.fracpete.jshell.event.JShellExecEvent.EventType
- OUTPUT_CLEARED - Enum constant in enum class com.github.fracpete.jshell.event.JShellPanelEvent.EventType
- OUTPUT_SAVE_FAILURE - Enum constant in enum class com.github.fracpete.jshell.event.JShellExecEvent.EventType
- OUTPUT_SAVE_FAILURE - Enum constant in enum class com.github.fracpete.jshell.event.JShellPanelEvent.EventType
- OUTPUT_SAVE_SUCESS - Enum constant in enum class com.github.fracpete.jshell.event.JShellExecEvent.EventType
- OUTPUT_SAVE_SUCESS - Enum constant in enum class com.github.fracpete.jshell.event.JShellPanelEvent.EventType
P
- processOutput(String, boolean) - Method in class com.github.fracpete.jshell.JShellExec
-
Processes the incoming line.
- processOutput(String, boolean) - Method in class com.github.fracpete.jshell.JShellPanel
-
Processes the incoming line.
R
- removeJShellErrorListener(JShellErrorListener) - Method in class com.github.fracpete.jshell.JShellExec
-
Removes the listener to the internal list.
- removeJShellExecListener(JShellExecListener) - Method in class com.github.fracpete.jshell.JShellExec
-
Removes the exec listener to the internal list.
- removeJShellExecListener(JShellExecListener) - Method in class com.github.fracpete.jshell.JShellPanel
-
Removes the exec listener to the internal list.
- removeJShellExecListener(JShellPanelListener) - Method in class com.github.fracpete.jshell.JShellPanel
-
Removes the panel listener to the internal list.
- runScript() - Method in class com.github.fracpete.jshell.JShellPanel
-
Executes the script.
- runScript(String) - Method in class com.github.fracpete.jshell.JShellExec
-
Executes the script with no flags.
- runScript(String, List<String>, List<String>, List<String>) - Method in class com.github.fracpete.jshell.JShellExec
-
Executes the script.
S
- saveScript() - Method in class com.github.fracpete.jshell.JShellPanel
-
Lets the user save the script to a file.
- saveScriptOutput() - Method in class com.github.fracpete.jshell.JShellPanel
-
Lets the user save the script output to a file.
- SCRIPT_FINISHED - Enum constant in enum class com.github.fracpete.jshell.event.JShellExecEvent.EventType
- SCRIPT_LOAD_FAILURE - Enum constant in enum class com.github.fracpete.jshell.event.JShellExecEvent.EventType
- SCRIPT_LOAD_FAILURE - Enum constant in enum class com.github.fracpete.jshell.event.JShellPanelEvent.EventType
- SCRIPT_LOAD_SUCCESS - Enum constant in enum class com.github.fracpete.jshell.event.JShellExecEvent.EventType
- SCRIPT_LOAD_SUCCESS - Enum constant in enum class com.github.fracpete.jshell.event.JShellPanelEvent.EventType
- SCRIPT_RUN - Enum constant in enum class com.github.fracpete.jshell.event.JShellExecEvent.EventType
- SCRIPT_RUN_FAILURE - Enum constant in enum class com.github.fracpete.jshell.event.JShellExecEvent.EventType
- SCRIPT_RUN_SETUP_FAILURE - Enum constant in enum class com.github.fracpete.jshell.event.JShellExecEvent.EventType
- SCRIPT_RUN_SUCCESS - Enum constant in enum class com.github.fracpete.jshell.event.JShellExecEvent.EventType
- SCRIPT_SAVE_FAILURE - Enum constant in enum class com.github.fracpete.jshell.event.JShellExecEvent.EventType
- SCRIPT_SAVE_FAILURE - Enum constant in enum class com.github.fracpete.jshell.event.JShellPanelEvent.EventType
- SCRIPT_SAVE_SUCCESS - Enum constant in enum class com.github.fracpete.jshell.event.JShellExecEvent.EventType
- SCRIPT_SAVE_SUCCESS - Enum constant in enum class com.github.fracpete.jshell.event.JShellPanelEvent.EventType
- SCRIPT_STOP - Enum constant in enum class com.github.fracpete.jshell.event.JShellExecEvent.EventType
- setCompilerFlags(List<String>) - Method in class com.github.fracpete.jshell.JShellPanel
-
Sets the compiler flags to supply to JShell (-C).
- setCurrentTheme(String) - Method in class com.github.fracpete.jshell.JShellPanel
-
Sets the current theme.
- setDebug(boolean) - Method in class com.github.fracpete.jshell.JShellExec
-
Sets the debugging flag.
- setDebug(boolean) - Method in class com.github.fracpete.jshell.JShellPanel
-
Sets the debugging flag.
- setRemoteRuntimeFlags(List<String>) - Method in class com.github.fracpete.jshell.JShellPanel
-
Sets the remote runtime flags to supply to JShell (-R), used by the JVM executing the code (eg -javaagent:...).
- setRuntimeFlags(List<String>) - Method in class com.github.fracpete.jshell.JShellPanel
-
Sets the runtime flags to supply to JShell (-J), used by JShell (eg -verbose).
- setStreamingProcessOwner(StreamingProcessOwner) - Method in class com.github.fracpete.jshell.JShellExec
-
Sets the object to stream the output of the process to.
- showErrorMessage(String) - Method in class com.github.fracpete.jshell.JShellExec
-
Outputs the error message.
- showErrorMessage(String, Throwable) - Method in class com.github.fracpete.jshell.JShellExec
-
Outputs the error message.
- stopScript() - Method in class com.github.fracpete.jshell.JShellExec
-
Stops a running script.
- stopScript() - Method in class com.github.fracpete.jshell.JShellPanel
-
Stops a running script.
T
- THEMES - Static variable in class com.github.fracpete.jshell.JShellPanel
-
the available themes.
- toString() - Method in class com.github.fracpete.jshell.event.JShellErrorEvent
-
Returns a string representation of the event.
U
- updateButtons() - Method in class com.github.fracpete.jshell.JShellPanel
-
Updates the state of the buttons.
- updateTheme() - Method in class com.github.fracpete.jshell.JShellPanel
-
Updates the theme.
V
- valueOf(String) - Static method in enum class com.github.fracpete.jshell.event.JShellExecEvent.EventType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.github.fracpete.jshell.event.JShellPanelEvent.EventType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.github.fracpete.jshell.event.JShellExecEvent.EventType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.github.fracpete.jshell.event.JShellPanelEvent.EventType
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form