An interactive shell for evaluating Groovy code from the command-line (aka. groovysh).
Modifiers | Name | Description |
---|---|---|
static String |
AUTOINDENT_PREFERENCE_KEY |
|
static String |
METACLASS_COMPLETION_PREFIX_LENGTH_PREFERENCE_KEY |
Type | Name and description |
---|---|
BufferManager |
buffers |
Closure |
defaultErrorHook |
Closure |
defaultResultHook |
Closure |
errorHook |
String |
evictedLine |
FileHistory |
history |
boolean |
historyFull |
List |
imports |
int |
indentSize |
Interpreter |
interp |
PackageHelper |
packageHelper |
Parser |
parser |
Closure |
resultHook |
InteractiveShellRunner |
runner |
Type | Name and description |
---|---|
void |
displayBuffer(List buffer) Display the given buffer. |
Object |
execute(String line) Execute a single line, where the line may be a command or Groovy code (complete or incomplete). |
protected Object |
executeCommand(String line) |
String |
getImportStatements() |
String |
getIndentPrefix() Calculate probably desired indentation based on parenthesis balance and last char, as well as what the user used last as indentation. |
File |
getUserStateDirectory() |
String |
renderPrompt() |
int |
run(String[] args) |
int |
run(String commandLine) |
Methods inherited from class | Name |
---|---|
class Shell |
execute, findCommand, isExecutable, leftShift, leftShift, parseLine, register |
Display the given buffer.
Execute a single line, where the line may be a command or Groovy code (complete or incomplete).
Calculate probably desired indentation based on parenthesis balance and last char, as well as what the user used last as indentation.
Copyright © 2003-2014 The Codehaus. All rights reserved.