public class GroupAdjacentWatch extends GroupingWatch
Constructor and Description |
---|
GroupAdjacentWatch(GroupVariableReference expression,
Feed out,
Stack<XPathContext> contextStack) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isStartOfNewGroup(boolean atStart,
XPathContext context)
Determine whether the current item is the start of a new group
|
void |
open()
Called at the start of the for-each-group instruction
|
close, endSelectedParentNode, getControllingExpression, getLocalContext, setControllingExpression, setOuterFeed, setWatchManager, startSelectedParentNode
getContext, getContextStack, getExpression, getParentExpressionFeed, getResult, setParentExpressionFeed
getAnchorNode, getNamespaceResolver, getPipelineConfiguration, getSelection, notifySelectedLeafNode, setAnchorNode, setNamespaceResolver, setPipelineConfiguration, setSelection
public GroupAdjacentWatch(GroupVariableReference expression, Feed out, Stack<XPathContext> contextStack)
public void open() throws XPathException
open
in interface Watch
open
in class GroupingWatch
XPathException
protected boolean isStartOfNewGroup(boolean atStart, XPathContext context) throws XPathException
isStartOfNewGroup
in class GroupingWatch
atStart
- true if this item is the first in the populationcontext
- the evaluation context. The item in question will be the
context itemXPathException
- if a dynamic error occursCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.