public final class NamedPathPruner extends TreePruner
TreePruner.ByDepth
Constructor and Description |
---|
NamedPathPruner(String spec)
Constructs a pruner by parsing a textual specification.
|
Modifier and Type | Method and Description |
---|---|
TreePruner |
accept(Object node,
Property prop)
Called before Hudson writes a new property.
|
Range |
getRange() |
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.public Range getRange()
getRange
in class TreePruner
Copyright © 2014. All rights reserved.