net.sf.saxon.functions
public class Id extends SystemFunction
Field Summary | |
---|---|
static int | ELEMENT_WITH_ID |
static int | ID |
Method Summary | |
---|---|
PathMap.PathMapNodeSet | addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet)
Add a representation of a doc() call or similar function to a PathMap.
|
void | checkArguments(ExpressionVisitor visitor)
Static analysis: prevent sorting of the argument |
int | computeSpecialProperties()
Get the static properties of this expression (other than its type). |
static SequenceIterator | getIdMultiple(DocumentInfo doc, SequenceIterator idrefs, int operation)
Get an iterator over the nodes that have an id equal to one of the values is a set of whitespace separated
strings |
static SequenceIterator | getIdMultiple(DocumentInfo doc, SequenceIterator idrefs)
Get an iterator over the nodes that have an id equal to one of the values is a set of whitespace separated
strings. |
static SequenceIterator | getIdSingle(DocumentInfo doc, String idrefs, int operation)
Get an iterator over the nodes that have an id equal to one of the values is a whitespace separated
string |
static SequenceIterator | getIdSingle(DocumentInfo doc, String idrefs)
2-argument version of getIdSingle, retained to support Java code compiled using Saxon 9.1.
|
SequenceIterator | iterate(XPathContext context)
Evaluate the function to return an iteration of selected nodes. |
Expression | preEvaluate(ExpressionVisitor visitor)
preEvaluate: this method suppresses compile-time evaluation by doing nothing |
Expression | simplify(ExpressionVisitor visitor)
Simplify: add a second implicit argument, the context document |
Expression | typeCheck(ExpressionVisitor visitor, ItemType contextItemType)
Type-check the expression. |
Parameters: pathMap the PathMap to which the expression should be added pathMapNodeSet
Returns: the pathMapNode representing the focus established by this expression, in the case where this expression is the first operand of a path expression or filter expression
Parameters: doc The document to be searched idrefs an iterator over a set of strings each of which is a string containing zero or more whitespace-separated ID values to be found in the document
Returns: an iterator over the nodes whose ID is one of the specified values
Throws: XPathException
Parameters: doc The document to be searched idrefs an iterator over a set of strings each of which is a string containing zero or more whitespace-separated ID values to be found in the document
Returns: an iterator over the nodes whose ID is one of the specified values
Throws: XPathException
Parameters: doc The document to be searched idrefs a string containing zero or more whitespace-separated ID values to be found in the document operation either ID or ELEMENT_WITH_ID
Returns: an iterator over the nodes whose ID is one of the specified values
Throws: XPathException
Parameters: doc The document to be searched idrefs a string containing zero or more whitespace-separated ID values to be found in the document
Returns: an iterator over the nodes whose ID is one of the specified values
Throws: XPathException
Parameters: visitor an expression visitor
Parameters: visitor an expression visitor