程序包 jline

类 NullCompletor

java.lang.Object
jline.NullCompletor
所有已实现的接口:
Completor

public class NullCompletor extends Object implements Completor

A completor that does nothing. Useful as the last item in an ArgumentCompletor.

作者:
Marc Prud'hommeaux
  • 构造器详细资料

    • NullCompletor

      public NullCompletor()
  • 方法详细资料

    • complete

      public int complete(String buffer, int cursor, List candidates)
      Returns -1 always, indicating that the the buffer is never handled.
      指定者:
      complete 在接口中 Completor
      参数:
      buffer - the buffer
      candidates - the List of candidates to populate
      返回:
      the index of the buffer for which the completion will be relative