程序包 bsh.util
类 NameCompletionTable
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
bsh.util.NameCompletionTable
- 所有已实现的接口:
NameCompletion
,Serializable
,Cloneable
,Iterable
,Collection
,List
,RandomAccess
NameCompletionTable is a utility that implements simple name completion for
a collection of names, NameSources, and other NameCompletionTables.
This implementation uses a trivial linear search and comparison...
- 另请参阅:
-
字段概要
从类继承的字段 java.util.AbstractList
modCount
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
add
(NameSource source) Add a NameSource which is monitored for names.void
add
(NameCompletionTable table) Add a NameCompletionTable, which is more optimized than the more general NameSourceString[]
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.protected void
getMatchingNames
(String part, List found) Add any matching names to list (including any from other tables)从类继承的方法 java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
从类继承的方法 java.util.AbstractCollection
containsAll, toString
从接口继承的方法 java.util.Collection
parallelStream, stream, toArray
从接口继承的方法 java.util.List
containsAll
-
构造器详细资料
-
NameCompletionTable
public NameCompletionTable()
-
-
方法详细资料
-
add
Add a NameCompletionTable, which is more optimized than the more general NameSource -
add
Add a NameSource which is monitored for names. Unimplemented - behavior is broken... no updates -
getMatchingNames
Add any matching names to list (including any from other tables) -
completeName
从接口复制的说明:NameCompletion
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...- 指定者:
completeName
在接口中NameCompletion
-