[Groovy] Interface IdentifierCompletor
Interface for classes that complete identifier tokens within a groovy Statement (Class, variable, keyword, method, ...) Similar to JLine Completor, but adapted for usage in GroovySyntaxCompletor
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
boolean |
complete(List<GroovySourceToken> tokens, List<CharSequence> candidates) @param tokens List of tokens, non empty, last token is an identifier token, previous token is not a dot |
Method Detail
boolean complete(List<GroovySourceToken> tokens, List<CharSequence> candidates)
- Parameters:
-
tokens
- List of tokens, non empty, last token is an identifier token, previous token is not a dot - candidates
- Returns:
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.5.14/html/gapi/org/codehaus/groovy/tools/shell/completion/IdentifierCompletor.html