public final class NamedPathPruner extends TreePruner
TreePruner.ByDepth
Constructor and Description |
---|
NamedPathPruner(java.lang.String spec)
Constructs a pruner by parsing a textual specification.
|
Modifier and Type | Method and Description |
---|---|
TreePruner |
accept(java.lang.Object node,
Property prop)
Called before Hudson writes a new property.
|
public NamedPathPruner(java.lang.String spec) throws java.lang.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 treejava.lang.IllegalArgumentException
- if the syntax is incorrectpublic TreePruner accept(java.lang.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.