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