blob: aa6cdf744e0cf0bbfbfd1b7343e91ebe39e2c0f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/*
* Copyright (c) 2002-2007, Marc Prud'hommeaux. All rights reserved.
*
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*/
package jline;
import java.util.*;
/**
* <p>
* A completor that does nothing. Useful as the last item in an
* {@link ArgumentCompletor}.
* </p>
*
* @author <a href="mailto:mwp1@cornell.edu">Marc Prud'hommeaux</a>
*/
public class NullCompletor implements Completor {
/**
* Returns -1 always, indicating that the the buffer is never
* handled.
*/
public int complete(final String buffer, int cursor, List candidates) {
return -1;
}
}
|