public class KeyFn extends SystemFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
KeyFn.SubtreeFilter
Mapping class to filter nodes that have the origin node as an ancestor-or-self
|
| Constructor and Description |
|---|
KeyFn() |
| Modifier and Type | Method and Description |
|---|---|
Sequence |
call(XPathContext context,
Sequence[] arguments)
Evaluate the expression
|
Expression |
fixArguments(Expression... arguments)
Allow the function to create an optimized call based on the values of the actual arguments.
|
KeyManager |
getKeyManager() |
NamespaceResolver |
getNamespaceResolver() |
int |
getSpecialProperties(Expression[] arguments)
Get the static properties of this expression (other than its type).
|
static Expression |
internalKeyCall(KeyManager keyManager,
KeyDefinitionSet keySet,
String name,
Expression value,
Expression doc,
RetainedStaticContext rsc)
Factory method to create an internal call on key() with a known key definition
|
protected static Sequence |
search(KeyManager keyManager,
XPathContext context,
Sequence sought,
NodeInfo origin,
KeyDefinitionSet selectedKeySet) |
equals, export, exportAttributes, getArity, getCardinality, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getExpressionCompiler, getFunctionItemType, getFunctionName, getIntegerBounds, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getStaticBaseUriString, getStreamingAdjunct, importAttributes, isTrustedResultType, makeCall, makeFunction, makeFunctionCall, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, typeCheckCalleratomize, deepEquals, effectiveBooleanValue, getStringValue, getStringValueCS, isArray, isMap, simplify, typeCheckgetLength, head, itemAt, iterate, reduce, subsequenceclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLength, head, itemAt, reduce, subsequencepublic KeyManager getKeyManager()
public NamespaceResolver getNamespaceResolver()
public static Expression internalKeyCall(KeyManager keyManager, KeyDefinitionSet keySet, String name, Expression value, Expression doc, RetainedStaticContext rsc)
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)public int getSpecialProperties(Expression[] arguments)
getSpecialProperties in class SystemFunctionarguments - public Expression fixArguments(Expression... arguments) throws XPathException
fixArguments in class SystemFunctionarguments - the supplied arguments to the function call. Note: modifying the contents
of this array should not be attempted, it is likely to have no effect.XPathException - if an error is detectedpublic Sequence call(XPathContext context, Sequence[] arguments) throws XPathException
context - the dynamic evaluation contextarguments - the values of the arguments, supplied as SequencesXPathException - if a dynamic error occurs during the evaluation of the expressionprotected static Sequence search(KeyManager keyManager, XPathContext context, Sequence sought, NodeInfo origin, KeyDefinitionSet selectedKeySet) throws XPathException
XPathExceptionCopyright (c) 2004-2015 Saxonica Limited. All rights reserved.