Top Description Inners Methods
bsh

public Interface NameSource

Known Direct Implementers
bsh.classpath.BshClassPath, bsh.NameSpace
Imports
java.util.*

This interface supports name completion, which is used primarily for command line tools, etc. It provides a flat source of "names" in a space. For example all of the classes in the classpath or all of the variables in a namespace (or all of those).

NameSource is the lightest weight mechanism for sources which wish to support name completion. In the future it might be better for NameSpace to implement NameCompletion directly in a more native and efficient fasion. However in general name competion is used for human interaction and therefore does not require high performance.

See Also
bsh.util.NameCompletion, bsh.util.NameCompletionTable

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Method Summary

Modifier and TypeMethod and Description
public void
public String[]

Method Detail

addNameSourceListenerback to summary
public void addNameSourceListener(NameSource.Listener listener)
getAllNamesback to summary
public String[] getAllNames()
bsh back to summary

public Interface NameSource.Listener


Method Summary

Modifier and TypeMethod and Description
public void

Method Detail

nameSourceChangedback to summary
public void nameSourceChanged(NameSource src)