bsh.util

Class NameCompletionTable

public class NameCompletionTable extends ArrayList implements NameCompletion

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...
Constructor Summary
NameCompletionTable()
Method Summary
voidadd(NameCompletionTable table)
Add a NameCompletionTable, which is more optimized than the more general NameSource
voidadd(NameSource source)
Add a NameSource which is monitored for names.
String[]completeName(String part)
Unimplemented - need a collection here
protected voidgetMatchingNames(String part, List found)
Add any matching names to list (including any from other tables)

Constructor Detail

NameCompletionTable

public NameCompletionTable()

Method Detail

add

public void add(NameCompletionTable table)
Add a NameCompletionTable, which is more optimized than the more general NameSource

add

public void add(NameSource source)
Add a NameSource which is monitored for names. Unimplemented - behavior is broken... no updates

completeName

public String[] completeName(String part)
Unimplemented - need a collection here

getMatchingNames

protected void getMatchingNames(String part, List found)
Add any matching names to list (including any from other tables)
B) 2000 pat@pat.net :-)