net.sf.saxon.functions

Class Remove

public class Remove extends SystemFunction

The XPath 2.0 remove() function
Method Summary
ItemTypegetItemType(TypeHierarchy th)
Determine the data type of the items in the sequence
SequenceIteratoriterate(XPathContext context)
Evaluate the function to return an iteration of selected nodes.
Expressionsimplify(StaticContext env)
Simplify.

Method Detail

getItemType

public ItemType getItemType(TypeHierarchy th)
Determine the data type of the items in the sequence

Parameters: th

Returns: the type of the input sequence

iterate

public SequenceIterator iterate(XPathContext context)
Evaluate the function to return an iteration of selected nodes.

simplify

public Expression simplify(StaticContext env)
Simplify. Recognize remove(seq, 1) as a TailExpression.