@DeprecatedDeprecated class GroovySyntaxCompleter extends Object
Implements the Completer interface to provide completions for GroovyShell by tokenizing the buffer and invoking other classes depending on the tokens found.
| Modifiers | Name | Description |
|---|---|---|
static enum |
GroovySyntaxCompleter.CompletionCase |
|
static class |
GroovySyntaxCompleter.InStringException |
| Constructor and description |
|---|
GroovySyntaxCompleter
(Groovysh shell, ReflectionCompleter reflectionCompleter, IdentifierCompleter classnameCompleter, List identifierCompleters, Completer filenameCompleter) |
GroovySyntaxCompleter
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
int |
complete(String bufferLine, int cursor, List candidates) |
|
int |
completeIdentifier(List tokens, List candidates) |
|
static GroovyLexer |
createGroovyLexer(String src) |
|
static GroovySyntaxCompleter.CompletionCase |
getCompletionCase(List tokens) |
|
static boolean |
isCommand(String bufferLine, CommandRegistry registry) |
|
static boolean |
tokenizeBuffer(String bufferLine, List previousLines, List result)Adds to result the identified tokens for the bufferLines
|
Copyright © 2003-2020 The Apache Software Foundation. All rights reserved.