| Type | Name and description |
|---|---|
java.util.regex.Pattern |
pattern |
| Constructor and description |
|---|
RegexCompletor(java.lang.String pattern) |
RegexCompletor(java.util.regex.Pattern pattern) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
complete(LineReader reader, ParsedLine line, java.util.List<Candidate> candidates) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
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).
If the buffer doesn't match the configured pattern, the candidates list is left empty.