程序包 jline

类 MultiCompletor

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

public class MultiCompletor extends Object implements Completor

A completor that contains multiple embedded completors. This differs from the ArgumentCompletor, in that the nested completors are dispatched individually, rather than delimited by arguments.

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

    • MultiCompletor

      public MultiCompletor()
      Construct a MultiCompletor with no embedded completors.
    • MultiCompletor

      public MultiCompletor(List completors)
      Construct a MultiCompletor with the specified list of Completor instances.
    • MultiCompletor

      public MultiCompletor(Completor[] completors)
      Construct a MultiCompletor with the specified Completor instances.
  • 方法详细资料

    • complete

      public int complete(String buffer, int pos, List cand)
      从接口复制的说明: Completor
      Populates candidates with a list of possible completions for the buffer. The candidates list will not be sorted before being displayed to the user: thus, the complete method should sort the List before returning.
      指定者:
      complete 在接口中 Completor
      参数:
      buffer - the buffer
      cand - the List of candidates to populate
      返回:
      the index of the buffer for which the completion will be relative
    • setCompletors

      public void setCompletors(Completor[] completors)
    • getCompletors

      public Completor[] getCompletors()