public class CompositeTreeTransformer extends java.lang.Object implements TreeTransformer
Constructor and Description |
---|
CompositeTreeTransformer() |
CompositeTreeTransformer(java.util.List<TreeTransformer> tt) |
Modifier and Type | Method and Description |
---|---|
void |
addTransformer(TreeTransformer tt) |
java.lang.String |
toString() |
Tree |
transformTree(Tree t)
Does whatever one needs to do to a particular tree.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
apply
public CompositeTreeTransformer()
public CompositeTreeTransformer(java.util.List<TreeTransformer> tt)
public void addTransformer(TreeTransformer tt)
public Tree transformTree(Tree t)
TreeTransformer
Tree
, and could itself
work recursively, but the canonical usage is to invoke this method
via the Tree.transform()
method, which will apply the
transformer in a bottom-up manner to each local Tree
,
and hence the implementation of TreeTransformer
should
merely examine and change a local (one-level) Tree
.transformTree
in interface TreeTransformer
t
- A tree. Classes implementing this interface can assume
that the tree passed in is not null
.Tree
public java.lang.String toString()
toString
in class java.lang.Object