public final class NamedPathPruner extends TreePruner
TreePruner.ByDepth
Constructor and Description |
---|
NamedPathPruner(String spec)
Constructs a pruner by parsing a textual specification.
|
public NamedPathPruner(String spec) throws IllegalArgumentException
a,b[c,d]
will emit the top-level property a
but
none of its children, and the top-level property b
and only those
of its children named c
and d
.spec
- textual specification of treeIllegalArgumentException
- if the syntax is incorrectpublic TreePruner accept(Object node, Property prop)
TreePruner
accept
in class TreePruner
TreePruner
object
will be consulted to determine properties of the child object in turn.Copyright © 2013. All rights reserved.