程序包 jline

接口 ArgumentCompletor.ArgumentDelimiter

所有已知实现类:
ArgumentCompletor.AbstractArgumentDelimiter, ArgumentCompletor.WhitespaceArgumentDelimiter
封闭类:
ArgumentCompletor

public static interface ArgumentCompletor.ArgumentDelimiter
The ArgumentCompletor.ArgumentDelimiter allows custom breaking up of a String into individual arguments in order to dispatch the arguments to the nested Completor.
作者:
Marc Prud'hommeaux
  • 方法概要

    修饰符和类型
    方法
    说明
    delimit(String buffer, int argumentPosition)
    Break the specified buffer into individual tokens that can be completed on their own.
    boolean
    isDelimiter(String buffer, int pos)
    Returns true if the specified character is a whitespace parameter.
  • 方法详细资料

    • delimit

      ArgumentCompletor.ArgumentList delimit(String buffer, int argumentPosition)
      Break the specified buffer into individual tokens that can be completed on their own.
      参数:
      buffer - the buffer to split
      argumentPosition - the current position of the cursor in the buffer
      返回:
      the tokens
    • isDelimiter

      boolean isDelimiter(String buffer, int pos)
      Returns true if the specified character is a whitespace parameter.
      参数:
      buffer - the complete command buffer
      pos - the index of the character in the buffer
      返回:
      true if the character should be a delimiter