Package: org.apache.groovy.groovysh.completion.antlr4

## [Groovy] Class ImportsSyntaxCompleter

- org.apache.groovy.groovysh.completion.antlr4.ImportsSyntaxCompleter

- All Implemented Interfaces and Traits:
    IdentifierCompleter

      class ImportsSyntaxCompleter
      extends Object

  Completer completing imported classnames

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `private Map` | `cachedImports`
    `private List` | `preimportedClassNames`
    `private Groovysh` | `shell`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `ImportsSyntaxCompleter (Groovysh shell)`
    `ImportsSyntaxCompleter ()`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `void` | `collectImportedSymbols(String importSpec, Collection matches)` finds matching imported classes or static methods Parameters: `importSpec` - an import statement without the leading 'import ' or trailing semicolon `matches` - all names matching the importSpec will be added to this Collection
    `` | `boolean` | `complete(List tokens, List candidates)`
    `` | `boolean` | `findMatchingImportedClassesCached(String prefix, String importSpec, List candidates)`
    `` | `boolean` | `findMatchingPreImportedClasses(String prefix, Collection matches)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Property Detail

    - #### private final Map cachedImports

    - #### private List preimportedClassNames

    - #### private final Groovysh shell

  - ### Constructor Detail

    - #### ImportsSyntaxCompleter(Groovysh shell)

    - #### ImportsSyntaxCompleter()

  - ### Method Detail

    - #### void collectImportedSymbols(String importSpec, Collection matches)

      finds matching imported classes or static methods

      Parameters:
        `importSpec` - an import statement without the leading 'import ' or trailing semicolon
        `matches` - all names matching the importSpec will be added to this Collection

    - #### @OverrideOverride boolean complete(List tokens, List candidates)

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

    - #### boolean findMatchingPreImportedClasses(String prefix, Collection matches)