class ImportsSyntaxCompleter extends Object implements IdentifierCompleter
Completer completing imported classnames
Type | Name and description |
---|---|
Map<String, Collection<String>> |
cachedImports |
List<String> |
preimportedClassNames |
Groovysh |
shell |
Constructor and description |
---|
ImportsSyntaxCompleter(Groovysh shell) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
collectImportedSymbols(String importSpec, Collection<String> matches) finds matching imported classes or static methods |
|
boolean |
complete(List<Token> tokens, List<CharSequence> candidates) |
|
boolean |
findMatchingImportedClassesCached(String prefix, String importSpec, List<String> candidates) |
|
boolean |
findMatchingPreImportedClasses(String prefix, Collection<String> matches) |
finds matching imported classes or static methods
importSpec
- an import statement without the leading 'import ' or trailing semicolonmatches
- all names matching the importSpec will be added to this CollectionCopyright © 2003-2022 The Apache Software Foundation. All rights reserved.