public abstract class SuperId extends SystemFunction
Modifier and Type | Class and Description |
---|---|
static class |
SuperId.ElementWithId |
static class |
SuperId.Id |
Modifier and Type | Field and Description |
---|---|
static int |
ELEMENT_WITH_ID |
static int |
ID |
Constructor and Description |
---|
SuperId() |
Modifier and Type | Method and Description |
---|---|
Sequence |
call(XPathContext context,
Sequence[] arguments)
Evaluate the expression
|
static SequenceIterator |
getIdMultiple(TreeInfo 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 |
getIdSingle(TreeInfo 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
|
abstract int |
getOp() |
int |
getSpecialProperties(Expression[] arguments)
Get the static properties of this expression (other than its type).
|
equals, export, exportAttributes, getArity, getCardinality, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getExpressionCompiler, 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 static final int ID
public static final int ELEMENT_WITH_ID
public abstract int getOp()
public int getSpecialProperties(Expression[] arguments)
getSpecialProperties
in class SystemFunction
arguments
- the actual arguments to the callpublic static SequenceIterator getIdSingle(TreeInfo doc, String idrefs, int operation) throws XPathException
doc
- The document to be searchedidrefs
- a string containing zero or more whitespace-separated ID values to be found in the documentoperation
- either ID
or ELEMENT_WITH_ID
XPathException
- if an error occurspublic static SequenceIterator getIdMultiple(TreeInfo doc, SequenceIterator idrefs, int operation) throws XPathException
doc
- The document to be searchedidrefs
- 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 documentoperation
- distinguishes id() and element-with-id()XPathException
- if an error occurspublic Sequence call(XPathContext context, Sequence[] arguments) throws XPathException
context
- the dynamic evaluation contextarguments
- the values of the arguments, supplied as SequenceIteratorsXPathException
- if a dynamic error occurs during the evaluation of the expressionCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.