summaryrefslogtreecommitdiff
path: root/src/src/main/java/jline/CompletionHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/src/main/java/jline/CompletionHandler.java')
-rw-r--r--src/src/main/java/jline/CompletionHandler.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/src/main/java/jline/CompletionHandler.java b/src/src/main/java/jline/CompletionHandler.java
new file mode 100644
index 0000000..6f524da
--- /dev/null
+++ b/src/src/main/java/jline/CompletionHandler.java
@@ -0,0 +1,20 @@
+/*
+ * 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.io.*;
+import java.util.*;
+
+/**
+ * Handler for dealing with candidates for tab-completion.
+ *
+ * @author <a href="mailto:mwp1@cornell.edu">Marc Prud'hommeaux</a>
+ */
+public interface CompletionHandler {
+ boolean complete(ConsoleReader reader, List candidates, int position)
+ throws IOException;
+}