|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.tools.shell.completion.GroovySyntaxCompletor
class GroovySyntaxCompletor
Implements the Completor interface to provide competions for GroovyShell by tokenizing the buffer and invoking other classes depending on the tokens found.
Nested Class Summary | |
---|---|
static enum |
GroovySyntaxCompletor.CompletionCase
|
static class |
GroovySyntaxCompletor.InStringException
|
Field Summary | |
---|---|
protected String[] |
classes
|
protected static Logger |
log
|
Constructor Summary | |
GroovySyntaxCompletor(Groovysh shell, ReflectionCompletor reflectionCompletor, List identifierCompletors, Completer filenameCompletor)
|
Method Summary | |
---|---|
int
|
complete(String bufferLine, int cursor, List candidates)
|
int
|
completeIdentifier(List tokens, List candidates)
|
static org.codehaus.groovy.antlr.parser.GroovyLexer
|
createGroovyLexer(String src)
|
static GroovySyntaxCompletor.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 |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
protected String[] classes
protected static final Logger log
Constructor Detail |
---|
GroovySyntaxCompletor(Groovysh shell, ReflectionCompletor reflectionCompletor, List identifierCompletors, Completer filenameCompletor)
Method Detail |
---|
int complete(String bufferLine, int cursor, List candidates)
int completeIdentifier(List tokens, List candidates)
static org.codehaus.groovy.antlr.parser.GroovyLexer createGroovyLexer(String src)
static GroovySyntaxCompletor.CompletionCase getCompletionCase(List tokens)
static boolean isCommand(String bufferLine, CommandRegistry registry)
static boolean tokenizeBuffer(String bufferLine, List previousLines, List result)
Copyright © 2003-2013 The Codehaus. All rights reserved.