@SuppressWarnings(value="deprecation")
class Main
extends Object
Boots and runs the interactive groovysh console.
| Modifiers | Name | Description |
|---|---|---|
protected static class |
Main.ExtraConsoleCommands |
Registers the extra console commands that augment the interactive shell. |
| Modifiers | Name | Description |
|---|---|---|
static String |
INTERPRETER_MODE_PREFERENCE_KEY |
Preference key that controls whether groovysh starts in interpreter mode. |
| Constructor and description |
|---|
Main() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static Path |
getUserStateDirectory()Returns the user state directory used by groovysh for persisted files. |
|
static void |
main(String[] args)Launches groovysh as a standalone JVM process. |
|
static int |
start(Map<String, ?> initialBindings, String[] args)Programmatic entry point for embedding groovysh. |
|
static int |
start(String[] args)Programmatic entry point for embedding groovysh. |
Preference key that controls whether groovysh starts in interpreter mode.
Returns the user state directory used by groovysh for persisted files.
Launches groovysh as a standalone JVM process.
args - command-line argumentsProgrammatic entry point for embedding groovysh.
args - CLI-like arguments (same as main(String[])).initialBindings - binding variables for the GroovyEngineProgrammatic entry point for embedding groovysh.
args - CLI-like arguments (same as main(String[])).Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.