@Deprecated class GroovySyntaxCompleter extends Object implements Completer
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<IdentifierCompleter> identifierCompleters, Completer filenameCompleter) |
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.