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
|
void |
export(ExpressionPresenter out)
Diagnostic print of expression structure.
|
ExpressionCompiler |
getExpressionCompiler()
Return the compiler of the KeyFn expression
|
boolean |
getInternal() |
KeyManager |
getKeyManager() |
NamespaceResolver |
getNamespaceResolver() |
int |
getSpecialProperties(Expression[] arguments)
Get the static properties of this expression (other than its type).
|
StructuredQName |
getStaticKeyName()
Get the key name, if known statically.
|
KeyDefinitionSet |
getStaticKeySet() |
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
|
equals, exportAttributes, getArity, getCardinality, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getStaticBaseUriString, getStreamingAdjunct, importAttributes, makeCall, makeFunction, makeFunctionCall, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, typeCheckCalleratomize, deepEquals, effectiveBooleanValue, getStringValue, getStringValueCS, isArray, isMap, optimize, simplify, typeCheckgetLength, head, itemAt, iterate, reduce, subsequenceclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLength, head, itemAt, reduce, subsequencepublic StructuredQName getStaticKeyName()
public KeyDefinitionSet getStaticKeySet()
public KeyManager getKeyManager()
public boolean getInternal()
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 void export(ExpressionPresenter out)
export in interface Functionexport in class SystemFunctionout - public ExpressionCompiler getExpressionCompiler()
getExpressionCompiler in class SystemFunctionpublic 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 expressionCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.