org.crosswire.jsword.passage
Class AbstractKeyList.NameVisitor
java.lang.Object
org.crosswire.jsword.passage.DefaultKeyVisitor
org.crosswire.jsword.passage.AbstractKeyList.NameVisitor
- All Implemented Interfaces:
- KeyVisitor
- Direct Known Subclasses:
- AbstractKeyList.OsisIDVisitor, AbstractKeyList.OsisRefVisitor
- Enclosing class:
- AbstractKeyList
static class AbstractKeyList.NameVisitor
- extends DefaultKeyVisitor
The NameVisitor
constructs a readable representation of the
Passage.
Method Summary |
String |
toString()
|
void |
visitLeaf(Key key)
We've found a leaf node in a Key tree, and are giving the visitor a
chance to do processing based on it. |
buffer
protected StringBuilder buffer
AbstractKeyList.NameVisitor
public AbstractKeyList.NameVisitor()
- Create a
NameVisitor
.
visitLeaf
public void visitLeaf(Key key)
- Description copied from interface:
KeyVisitor
- We've found a leaf node in a Key tree, and are giving the visitor a
chance to do processing based on it.
- Specified by:
visitLeaf
in interface KeyVisitor
- Overrides:
visitLeaf
in class DefaultKeyVisitor
- Parameters:
key
- The found leaf node.
toString
public String toString()
- Overrides:
toString
in class Object