public interface Algorithm
Modifier and Type | Method and Description |
---|---|
Node |
select(Node owner,
Direction dir,
TraversalContext context)
Traverse from owner, in direction dir.
|
Node |
selectFirst(TraversalContext context)
Return the first traversable node for the specified context (root).
|
Node |
selectLast(TraversalContext context)
Return the last traversable node for the specified context (root).
|
Node select(Node owner, Direction dir, TraversalContext context)
Node selectFirst(TraversalContext context)
context
- the context that contains the rootNode selectLast(TraversalContext context)
context
- the context that contains the root