| gnu.lists.PositionConsumer
All known Subclasses: gnu.xquery.util.RelativeStepFilter, gnu.lists.TreeList, gnu.xml.XMLPrinter, gnu.xml.XMLFilter,
PositionConsumer | public interface PositionConsumer (Code) | | An object that can be "fed" a TreePosition, and will do something with it.
That "something" can be printing it, copy it, filter it - or ignore it.
|
Method Summary | |
public void | consume(SeqPosition position) Consume node at current position. | public void | writePosition(AbstractSequence seq, int ipos) Consume a single position pair.
This PositionConsumer may assume the sequence does no reference
management; i.e. |
consume | public void consume(SeqPosition position)(Code) | | Consume node at current position.
The caller may invalidate or change the position after consume returns,
so if the consumer wants to save it, it needs to copy it.
|
writePosition | public void writePosition(AbstractSequence seq, int ipos)(Code) | | Consume a single position pair.
This PositionConsumer may assume the sequence does no reference
management; i.e. that copyPos is trivial and releasePos is
a no-op. If that is not the case, use consume(TreePosition) instead.
|
|
|