src/jdk.internal.le/share/classes/jdk/internal/jline/console/completer/CompletionHandler.java
changeset 52974 ddbd9744a3d5
parent 52973 a659ccd1888d
parent 52961 d67b37917e82
child 52975 35e2bbea78b2
child 53179 760293737af0
equal deleted inserted replaced
52973:a659ccd1888d 52974:ddbd9744a3d5
     1 /*
       
     2  * Copyright (c) 2002-2016, the original author or authors.
       
     3  *
       
     4  * This software is distributable under the BSD license. See the terms of the
       
     5  * BSD license in the documentation provided with this software.
       
     6  *
       
     7  * http://www.opensource.org/licenses/bsd-license.php
       
     8  */
       
     9 package jdk.internal.jline.console.completer;
       
    10 
       
    11 import jdk.internal.jline.console.ConsoleReader;
       
    12 
       
    13 import java.io.IOException;
       
    14 import java.util.List;
       
    15 
       
    16 /**
       
    17  * Handler for dealing with candidates for tab-completion.
       
    18  *
       
    19  * @author <a href="mailto:mwp1@cornell.edu">Marc Prud'hommeaux</a>
       
    20  * @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
       
    21  * @since 2.3
       
    22  */
       
    23 public interface CompletionHandler
       
    24 {
       
    25     boolean complete(ConsoleReader reader, List<CharSequence> candidates, int position) throws IOException;
       
    26 }