Groovy 2.2.0

org.codehaus.groovy.tools.shell.completion
[Groovy] Class ImportsSyntaxCompletor

java.lang.Object
  org.codehaus.groovy.tools.shell.completion.ImportsSyntaxCompletor
All Implemented Interfaces:
IdentifierCompletor

class ImportsSyntaxCompletor

Completor completing imported classnames


Property Summary
static String STATIC_IMPORT_PATTERN

Map cachedImports

List preimportedClassNames

Groovysh shell

 
Constructor Summary
ImportsSyntaxCompletor(Groovysh shell)

 
Method Summary
void collectImportedSymbols(String importSpec, Collection matches)

finds matching imported classes or static methods

boolean complete(List tokens, List candidates)

boolean findMatchingImportedClassesCached(String prefix, String importSpec, List candidates)

boolean findMatchingPreImportedClasses(String prefix, Collection matches)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

STATIC_IMPORT_PATTERN

static final String STATIC_IMPORT_PATTERN


cachedImports

Map cachedImports


preimportedClassNames

List preimportedClassNames


shell

Groovysh shell


 
Constructor Detail

ImportsSyntaxCompletor

ImportsSyntaxCompletor(Groovysh shell)


 
Method Detail

collectImportedSymbols

void collectImportedSymbols(String importSpec, Collection matches)
finds matching imported classes or static methods
Parameters:
prefix
importSpec
matches
Returns:


complete

@Override
boolean complete(List tokens, List candidates)


findMatchingImportedClassesCached

boolean findMatchingImportedClassesCached(String prefix, String importSpec, List candidates)


findMatchingPreImportedClasses

boolean findMatchingPreImportedClasses(String prefix, Collection matches)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.