public class CompositeTreeTransformer extends java.lang.Object implements TreeTransformer
| Constructor and Description |
|---|
CompositeTreeTransformer() |
CompositeTreeTransformer(java.util.List<TreeTransformer> tt) |
CompositeTreeTransformer(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, waitapplypublic CompositeTreeTransformer()
public CompositeTreeTransformer(java.util.List<TreeTransformer> tt)
public CompositeTreeTransformer(TreeTransformer... tt)
public void addTransformer(TreeTransformer tt)
public Tree transformTree(Tree t)
TreeTransformerTree, 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 TreeTransformert - A tree. Classes implementing this interface can assume
that the tree passed in is not null.Treepublic java.lang.String toString()
toString in class java.lang.Object