|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
bsh.util.NameCompletionTable
public class NameCompletionTable
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...
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
NameCompletionTable()
|
Method Summary | |
---|---|
void |
add(NameCompletionTable table)
Add a NameCompletionTable, which is more optimized than the more general NameSource |
void |
add(NameSource source)
Add a NameSource which is monitored for names. |
java.lang.String[] |
completeName(java.lang.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(java.lang.String part,
java.util.List found)
Add any matching names to list (including any from other tables) |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode |
Constructor Detail |
---|
public NameCompletionTable()
Method Detail |
---|
public void add(NameCompletionTable table)
public void add(NameSource source)
protected void getMatchingNames(java.lang.String part, java.util.List found)
public java.lang.String[] completeName(java.lang.String part)
NameCompletion
completeName
in interface NameCompletion
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |