public abstract static class TreeAppendable.Visitor
extends java.lang.Object
visitor
can be used
to manipulate an existing TreeAppendable
or to create a completely new one recursively.
Implementors may override visit(String)
and visit(TreeAppendable)
Constructor and Description |
---|
TreeAppendable.Visitor() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
visit(java.lang.String string)
Manipulate the given string and return the result.
|
protected TreeAppendable |
visit(TreeAppendable original)
Manipulate the given appendable or return a new one.
|
protected void |
visitChildren(TreeAppendable parent)
Traverses the children of the given appendable and manipulates it in-place.
|
protected TreeAppendable visit(TreeAppendable original)
original
- the visited TreeAppendable
protected void visitChildren(TreeAppendable parent)
parent
- the appendable whose children should be visited.protected java.lang.String visit(java.lang.String string)
string
- the visited String