程序包 bsh.util

接口 NameCompletion

所有已知实现类:
NameCompletionTable

public interface NameCompletion
The interface for name completion.
  • 方法概要

    修饰符和类型
    方法
    说明
    Return an array containing a string element of the maximum unambiguous namespace completion or, if there is no common prefix, return the list of ambiguous names.
  • 方法详细资料

    • completeName

      String[] completeName(String part)
      Return an array containing a string element of the maximum unambiguous namespace completion or, if there is no common prefix, return the list of ambiguous names. e.g. input: "java.l" output: [ "java.lang." ] input: "java.lang." output: [ "java.lang.Thread", "java.lang.Integer", ... ] Note: Alternatively, make a NameCompletionResult object someday...