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, typeCheckCaller
atomize, deepEquals, effectiveBooleanValue, getStringValue, getStringValueCS, isArray, isMap, optimize, simplify, typeCheck
getLength, head, itemAt, iterate, reduce, subsequence
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLength, head, itemAt, reduce, subsequence
public 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 SystemFunction
arguments
- public void export(ExpressionPresenter out)
export
in interface Function
export
in class SystemFunction
out
- public ExpressionCompiler getExpressionCompiler()
getExpressionCompiler
in class SystemFunction
public 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.