Constructor and description |
---|
RegexCompletor(String pattern) |
RegexCompletor(Pattern pattern) |
Check whether the whole buffer matches the configured pattern. If it does, the buffer is added to the candidates list (which indicates acceptance of the buffer string) and returns 0, i.e. the start of the buffer. This mimics the behaviour of SimpleCompletor.
If the buffer doesn't match the configured pattern, this returns -1 and the candidates list is left empty.