< prev index next >

jdk/src/jdk.jline/share/classes/jdk/internal/jline/console/completer/CandidateListCompletionHandler.java

Print this page


   1 /*
   2  * Copyright (c) 2002-2012, 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 jline.console.completer;
  10 
  11 import jline.console.ConsoleReader;
  12 import jline.console.CursorBuffer;
  13 
  14 import java.io.IOException;
  15 import java.util.ArrayList;
  16 import java.util.Collection;
  17 import java.util.HashSet;
  18 import java.util.List;
  19 import java.util.Locale;
  20 import java.util.ResourceBundle;
  21 import java.util.Set;
  22 
  23 /**
  24  * A {@link CompletionHandler} that deals with multiple distinct completions
  25  * by outputting the complete list of possibilities to the console. This
  26  * mimics the behavior of the
  27  * <a href="http://www.gnu.org/directory/readline.html">readline</a> library.
  28  *
  29  * @author <a href="mailto:mwp1@cornell.edu">Marc Prud'hommeaux</a>
  30  * @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
  31  * @since 2.3
  32  */


   1 /*
   2  * Copyright (c) 2002-2012, 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 import jdk.internal.jline.console.CursorBuffer;
  13 
  14 import java.io.IOException;
  15 import java.util.ArrayList;
  16 import java.util.Collection;
  17 import java.util.HashSet;
  18 import java.util.List;
  19 import java.util.Locale;
  20 import java.util.ResourceBundle;
  21 import java.util.Set;
  22 
  23 /**
  24  * A {@link CompletionHandler} that deals with multiple distinct completions
  25  * by outputting the complete list of possibilities to the console. This
  26  * mimics the behavior of the
  27  * <a href="http://www.gnu.org/directory/readline.html">readline</a> library.
  28  *
  29  * @author <a href="mailto:mwp1@cornell.edu">Marc Prud'hommeaux</a>
  30  * @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
  31  * @since 2.3
  32  */


< prev index next >