public class ParentAxisRule extends XPathRule
..
", the instruction to select the immediate parent node.
It may also apply filter restrictions to the parent node, in which case,
it may also return the empty list.Constructor and Description |
---|
ParentAxisRule()
Creates a ParentAxisRule that returns any parent node.
|
ParentAxisRule(Filter filter)
Creates a ParentAxisRule that returns only parent nodes passed by the
supplied Filter.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Content> |
apply(Content context)
Applies this rule to the context node, returning any matching nodes.
|
public ParentAxisRule()
public ParentAxisRule(Filter filter)
filter
- a restriction on the parent node.public java.util.List<Content> apply(Content context)