java.io.Serializable, javax.xml.transform.SourceLocator, LocationProvider, SaxonLocator, EvaluableItem, SequenceIterable, InstructionInfo, org.xml.sax.Locatorpublic abstract class CollatingFunction extends SystemFunction
| Modifier and Type | Field | Description |
|---|---|---|
protected StringCollator |
stringCollator |
EVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticPropertiesargumentoperation| Constructor | Description |
|---|---|
CollatingFunction() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
checkArguments(ExpressionVisitor visitor) |
Method called during static type checking
|
Expression |
copy() |
Copy an expression.
|
protected GenericAtomicComparer |
getAtomicComparer(int arg,
XPathContext context) |
Get a GenericAtomicComparer that can be used to compare values.
|
protected StringCollator |
getCollator(int arg,
XPathContext context) |
Get a collator suitable for comparing strings.
|
java.net.URI |
getExpressionBaseURI() |
Get the saved static base URI
|
StringCollator |
getStringCollator() |
Get the collation if known statically, as a StringCollator object
|
addToPathMap, adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeStaticProperties, display, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, evaluatePendingUpdates, explain, findParentOf, getCardinality, getColumnNumber, getColumnNumber, getConstructType, getContainer, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getIntrinsicDependencies, getLineNumber, getLineNumber, getLocationId, getLocationProvider, getObjectName, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, isUpdatingExpression, iterate, iterateEvents, markTailFunctionCalls, process, resetLocalStaticProperties, setContainer, setFiltered, setFlattened, setLocationId, staticTypeCheck, suppressValidation, typeErroraddExternalFunctionCallToPathMap, checkArgumentCount, equals, explain, getArguments, getDisplayName, getFunctionName, getNumberOfArguments, hashCode, iterateSubExpressions, preEvaluate, promote, replaceSubExpression, setArguments, setFunctionName, simplify, simplifyArguments, toString, typeCheckclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddContextDocumentArgument, addDocToPathMap, computeCardinality, computeSpecialProperties, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, makeSystemFunction, optimize, setDetails, useContextItemAsDefaultprotected StringCollator stringCollator
public void checkArguments(ExpressionVisitor visitor) throws XPathException
SystemFunctioncheckArguments in class SystemFunctionvisitor - the expression visitorXPathExceptionpublic java.net.URI getExpressionBaseURI()
public StringCollator getStringCollator()
public Expression copy()
copy in class SystemFunctionprotected GenericAtomicComparer getAtomicComparer(int arg, XPathContext context) throws XPathException
The difference between this method and getCollator(int, net.sf.saxon.expr.XPathContext) is that a
GenericAtomicComparer is capable of comparing values of any atomic type, not only
strings. It is therefore called by functions such as compare, deep-equal, index-of, and
min() and max() where the operands may include a mixture of strings and other types.
arg - the position of the argument (starting at 0) containing the collation name.
If this argument was not supplied, the default collation is usedcontext - The dynamic evaluation context.XPathExceptionprotected StringCollator getCollator(int arg, XPathContext context) throws XPathException
getAtomicComparer(int, net.sf.saxon.expr.XPathContext))
when it is known that the values to be compared are always strings.arg - The argument position (counting from zero) that holds the collation
URI if presentcontext - The dynamic contextXPathException