@Deprecated class GroovySyntaxCompletor extends Object implements Completer
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<IdentifierCompletor> identifierCompletors, Completer filenameCompletor) |
Type Params | Return Type | Name and description |
---|---|---|
|
int |
complete(String bufferLine, int cursor, List<CharSequence> candidates) |
|
int |
completeIdentifier(List<GroovySourceToken> tokens, List<CharSequence> candidates) |
|
static GroovyLexer |
createGroovyLexer(String src) |
|
static GroovySyntaxCompleter.CompletionCase |
getCompletionCase(List<GroovySourceToken> tokens) |
|
static boolean |
isCommand(String bufferLine, CommandRegistry registry) |
|
static boolean |
tokenizeBuffer(String bufferLine, List<String> previousLines, List<GroovySourceToken> result) Adds to result the identified tokens for the bufferLines |
Adds to result the identified tokens for the bufferLines
Copyright © 2003-2021 The Apache Software Foundation. All rights reserved.