public class TreeRestricter
extends java.lang.Object
Constructor and Description |
---|
TreeRestricter(Node root,
int units,
java.lang.String[] names,
boolean inclusion) |
TreeRestricter(Tree t,
java.lang.String[] names,
boolean inclusion) |
Modifier and Type | Method and Description |
---|---|
pal.tree.TreeRestricter.RNode |
construct(Node peer,
java.lang.String[] names,
boolean inclusion,
boolean isRoot) |
Node |
generateNode() |
Tree |
generateTree() |
public TreeRestricter(Node root, int units, java.lang.String[] names, boolean inclusion)
root
- The root of the treeunits
- the units of the treenames
- the names of the nodes to either exclude, or includeinclusion
- if true the names supplied mark leaves to include, else mark leaves to excludepublic TreeRestricter(Tree t, java.lang.String[] names, boolean inclusion)
root
- The root of the treeunits
- the units of the treenames
- the names of the nodes to either exclude, or includeinclusion
- if true the names supplied mark leaves to include, else mark leaves to exclude