class GroovySyntaxCompletor
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 | Name and description |
---|---|
int |
complete(String bufferLine, int cursor, List<CharSequence> candidates) |
int |
completeIdentifier(List<GroovySourceToken> tokens, List<CharSequence> candidates) |
static org.codehaus.groovy.antlr.parser.GroovyLexer |
createGroovyLexer(String src) |
static GroovySyntaxCompletor.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-2016 The Apache Software Foundation. All rights reserved.