@DeprecatedDeprecated class GroovySyntaxCompletor extends Object
Implements the Completor interface to provide competions for GroovyShell by tokenizing the buffer and invoking other classes depending on the tokens found.
Modifiers | Name | Description |
---|---|---|
static enum |
GroovySyntaxCompletor.CompletionCase |
|
static class |
GroovySyntaxCompletor.InStringException |
Constructor and description |
---|
GroovySyntaxCompletor
(Groovysh shell, ReflectionCompletor reflectionCompletor, IdentifierCompletor classnameCompletor, List identifierCompletors, Completer filenameCompletor) |
GroovySyntaxCompletor
() |
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.