001/*
002 * Copyright (c) 2002-2007, Marc Prud'hommeaux. All rights reserved.
003 *
004 * This software is distributable under the BSD license. See the terms of the
005 * BSD license in the documentation provided with this software.
006 */
007package jline;
008
009import java.io.*;
010import java.util.*;
011
012/**
013 *  Handler for dealing with candidates for tab-completion.
014 *
015 *  @author  <a href="mailto:mwp1@cornell.edu">Marc Prud'hommeaux</a>
016 */
017public interface CompletionHandler {
018    boolean complete(ConsoleReader reader, List candidates, int position)
019              throws IOException;
020}