net.sf.saxon.functions
public class KeyFn extends SystemFunction
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) |
int | computeSpecialProperties()
Get the static properties of this expression (other than its type). |
Expression | copy()
Copy an expression. |
StructuredQName | getStaticKeyName()
Get the key name, if known statically. |
static KeyFn | internalKeyCall(KeyDefinitionSet keySet, String name, Expression value, Expression doc)
Non-standard constructor to create an internal call on key() with a known key definition |
SequenceIterator | iterate(XPathContext context)
Enumerate the results of the expression |
Expression | preEvaluate(ExpressionVisitor visitor)
preEvaluate: this method suppresses compile-time evaluation by doing nothing |
Expression | simplify(ExpressionVisitor visitor)
Simplify: add a third 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
Returns: the copy of the original expression
Returns: the key name if known, otherwise null
Parameters: keySet the set of KeyDefinitions (always a single KeyDefinition) name the name allocated to the key (first argument of the function) value the value being searched for (second argument of the function) doc the document being searched (third argument)
Returns: a call on the key() function
Parameters: visitor the expression visitor
Parameters: visitor the expression visitor