class GroovySyntaxCompleter extends Object implements jline.console.completer.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, jline.console.completer.Completer filenameCompleter) |
Type Params | Return Type | Name and description |
---|---|---|
|
int |
complete(String bufferLine, int cursor, List<CharSequence> candidates) |
|
int |
completeIdentifier(List<Token> tokens, List<CharSequence> candidates) |
|
static Object |
createTokenStream(String text) |
|
static GroovySyntaxCompleter.CompletionCase |
getCompletionCase(List<Token> tokens) |
|
static boolean |
isCommand(String bufferLine, CommandRegistry registry) |
|
static boolean |
tokenizeBuffer(String bufferLine, List<String> previousLines, List<Token> result) Adds to result the identified tokens for the bufferLines |
Copyright © 2003-2022 The Apache Software Foundation. All rights reserved.